pacman/lib
Allan McRae 6398aef09d _alpm_archive_fgets(): bail early if reached end of block
Bailing early when there are 0 blocks remaining means that we do not call
memchr on a NULL string (although with a 0 size parameter).  Fixes issues
reported using -fsanitise=address,undefined

Signed-off-by: Allan McRae <allan@archlinux.org>
(cherry picked from commit 4dc21b965b)
2024-05-10 16:57:08 +10:00
..
libalpm _alpm_archive_fgets(): bail early if reached end of block 2024-05-10 16:57:08 +10:00