Allan McRae pushed to branch master at Pacman / Pacman


Commits:
6e6d3f18 by morganamilo at 2024-02-09T11:14:38+10:00
libalpm: don't use atio for pkgreason

atio's behaviour is undefined if the input is not valid. Also it does
all sorts of whitespace and prefix handling which we don't need for
pkgreason.

Instead of going into UB on invalid input we now return EXPLICIT as the
fallback and print an error. However we don't actually error out as the
DB parsing tries to be error tolerant.

Signed-off-by: Allan McRae <[email protected]>

- - - - -
0649a66e by Allan McRae at 2024-02-09T11:14:38+10:00
Add ALPM_PKG_REASON_UNKNOWN type

Return ALPM_PKG_REASON_UNKNOWN when parsing of %REASON% in the local
database fails.

Signed-off-by: Allan McRae <[email protected]>

- - - - -


3 changed files:

- lib/libalpm/alpm.h
- lib/libalpm/be_local.c
- lib/libalpm/deps.c


View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/compare/0a394144b22f02b5956e89833ff91e9e232a3e17...0649a66ee555853a4d8b8ec6280cd601f9de43e3

-- 
View it on GitLab: 
https://gitlab.archlinux.org/pacman/pacman/-/compare/0a394144b22f02b5956e89833ff91e9e232a3e17...0649a66ee555853a4d8b8ec6280cd601f9de43e3
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to