Allan McRae pushed to branch master at Pacman / Pacman


Commits:
5c75a55c by Andrew Gregory at 2024-02-07T12:27:26+00:00
allow freeing partial db package cache

The free function was checking DB_STATUS_PKGCACHE, which is only set
once the package cache has been fully built.

Signed-off-by: Andrew Gregory <[email protected]>

- - - - -
edd57c8b by Andrew Gregory at 2024-02-07T12:27:26+00:00
perform cleanup on sync db parsing errors

Cleanup was only being performed when libarchive failed to actually read
the file.

Signed-off-by: Andrew Gregory <[email protected]>

- - - - -
fde59b99 by Andrew Gregory at 2024-02-07T12:27:26+00:00
be_package: delay freeing archive resource

The error path uconditinally tries to free the archive, leading to a
double-free segmentation fault if the error path is triggered after
already freeing it.

Signed-off-by: Andrew Gregory <[email protected]>

- - - - -
0a394144 by Andrew Gregory at 2024-02-07T12:27:26+00:00
validate package metadata after loading

alpm has certain requirements for package metadata necessary for proper
functioning, name and version in particular.  These requirements are
already enforced in makepkg, but nowhere in alpm.

Exceptions are treated as errors for non-local packages because they
cannot be installed without potentially resulting in undefined behavior.
Exceptions for local packages are treated as warnings because they are
already installed, so any damage has already been done, and the user
would otherwise have no way to uninstall them.

Signed-off-by: Andrew Gregory <[email protected]>

- - - - -


10 changed files:

- lib/libalpm/be_local.c
- lib/libalpm/be_package.c
- lib/libalpm/be_sync.c
- lib/libalpm/db.c
- lib/libalpm/package.c
- lib/libalpm/package.h
- test/pacman/meson.build
- + test/pacman/tests/pkg-meta-invalid-name-file.py
- + test/pacman/tests/pkg-meta-invalid-name-local.py
- + test/pacman/tests/pkg-meta-invalid-name-sync.py


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

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


Reply via email to