diff options
author | Boris Staletic <boris.staletic@protonmail.com> | 2024-03-29 18:30:05 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2024-04-08 21:26:59 +0200 |
commit | 9594126239e0d21b88c3b8c535b6635b4a8b8892 (patch) | |
tree | c7fea74ab5b3cca354fda7b61798a0d40bd71b35 /autogen.sh | |
parent | tests: Avoid buffer underflow when checking rmspace result (diff) | |
download | portage-utils-9594126239e0d21b88c3b8c535b6635b4a8b8892.tar.gz portage-utils-9594126239e0d21b88c3b8c535b6635b4a8b8892.tar.bz2 portage-utils-9594126239e0d21b88c3b8c535b6635b4a8b8892.zip |
libq/xarray: Handle NULL arrays in xarraysort()
Some invocations of `q` may try to call `xarraysort(NULL, 0)`.
One example is `qlop -a foo` where `foo` was never unmerged.
Instead of requiring every call of `xarraysort()` to take care of `NULL`
arguments, `xarraysort()` now exits early if `arr->eles == NULL`.
Closes: https://github.com/gentoo/portage-utils/pull/28
Signed-off-by: Boris Staletic <boris.staletic@protonmail.com>
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions