[Git][pacman/pacman][release/7.1.x] Prevent overflow when sorting package download order
Allan McRae pushed to branch release/7.1.x at Pacman / Pacman Commits: cb7452f6 by Allan McRae at 2026-02-05T09:53:42+10:00 Prevent overflow when sorting package download order When comparing the package download size, the difference is cast to an int. This results in an integer overflow for very large packages. Return -1, 0, or 1 to indicate relative size to avoid the overflow. Fixes #305. Signed-off-by: Allan McRae <allan@archlinux.org> - - - - - 1 changed file: - lib/libalpm/dload.c View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/commit/cb7452f63414291b52061166... -- View it on GitLab: https://gitlab.archlinux.org/pacman/pacman/-/commit/cb7452f63414291b52061166... You're receiving this email because of your account on gitlab.archlinux.org.
participants (1)
-
Allan McRae (@allan)