Allan McRae pushed to branch master at Pacman / Pacman


Commits:
4dc21b96 by Allan McRae at 2024-04-08T10:34:10+00:00
_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 <al...@archlinux.org>

- - - - -


1 changed file:

- lib/libalpm/util.c


View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/commit/4dc21b965b891042edc951d53f9ce93bf265cdfd

-- 
View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/commit/4dc21b965b891042edc951d53f9ce93bf265cdfd
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to