aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Staletic <boris.staletic@protonmail.com>2024-03-29 18:30:05 +0100
committerFabian Groffen <grobian@gentoo.org>2024-04-08 21:26:59 +0200
commit9594126239e0d21b88c3b8c535b6635b4a8b8892 (patch)
treec7fea74ab5b3cca354fda7b61798a0d40bd71b35 /qglsa.c
parenttests: Avoid buffer underflow when checking rmspace result (diff)
downloadportage-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 'qglsa.c')
0 files changed, 0 insertions, 0 deletions