diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-01-12 14:36:09 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-01-12 14:36:09 -0800 |
commit | 8cc43dafc8f0d4ca04aa162573a44016f45ea364 (patch) | |
tree | 060b49468c211f1a8cdc8b02347ea7882d1e26a4 /.gitignore | |
parent | 7aeaad3e34413e7bdf78696484fa6c502c5e0617 (diff) |
modules/compose: fix segfault introduced by 83e41d
It was assumed (n_modules - n_overlayable) would give the number
of non-overlayable modules appropriate as base layers. But with
the skipping of hermetic and experimental modules the base_idx
could be out of reach leaving layers NULL after the loop, which
will segfault later when strlen() assumes it's non-NULL.
This commit does the simple thing and also counts the unusable
modules to subtract from those eligible for base layers along
with n_overlayable.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions