[Git][pacman/pacman][master] 2 commits: libalpm: don't use atio for pkgreason
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 <allan@archlinux.org> - - - - - 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 <allan@archlinux.org> - - - - - 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/0a394144b22f02b5956e898... -- View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/compare/0a394144b22f02b5956e898... You're receiving this email because of your account on gitlab.archlinux.org.
participants (1)
-
Allan McRae (@allan)