This change brings two security fixes:
- Infinite recursion, when a pc(5) file requires itself through a path (GHSA-qcp5-98c5-hvh7).
- Exponential memory growth throughself-referential variable expansion (GHSA-fr7f-m8jv-4qcm).
Obtained from https://github.com/pkgconf/pkgconf/archive/refs/tags/pkgconf-3.0.11.tar.gz SHA1: ca10ae7df0168c8df07fcf6c1ef073b198d31adb - SHA256: d2c8a0965d5b80dcc454cc999ad5edb8bfbc4d8e65cde7a6f19a5cb7ecaf3377 - SHA512: 9bf7de6177f068181b0617dd4f56550758456122fa00e80075739e900a353d827ba31483ccb696de2cecd0eb04eaca904ddd5e09385f28765b51c23209fed7f4 - Sponsored by: The FreeBSD Foundation --- Makefile.am | 12 ++++ Makefile.lite | 2 +- NEWS | 22 ++++++++ README.md | 7 ++- cli/main.c | 2 + cli/spdxtool/core.c | 1 + cli/spdxtool/software.c | 1 + configure.ac | 2 +- libpkgconf/bytecode.c | 46 +++++++++++++++ libpkgconf/libpkgconf.h | 4 +- libpkgconf/pkg.c | 56 ++++++++++++++----- libpkgconf/tuple.c | 5 +- meson.build | 2 +- t/basic/variable-pcfiledir-fullpath.test | 3 + t/parser/variable-self-reference-growth.test | 5 ++ t/solver/path-requires-alias.test | 6 ++ t/solver/path-requires-file.test | 6 ++ t/solver/path-requires-query-control.test | 3 + t/solver/path-requires-traversal.test | 6 ++ tests/api/test-bytecode.c | 31 ++++++++++ tests/lib-path-requires/inside/alias.pc | 4 ++ tests/lib-path-requires/inside/file.pc | 4 ++ tests/lib-path-requires/inside/traversal.pc | 4 ++ .../outside/hidden-sibling.pc | 4 ++ tests/lib-path-requires/outside/hidden.pc | 4 ++ tests/lib1/variable-self-reference-growth.pc | 8 +++ 26 files changed, 226 insertions(+), 24 deletions(-) create mode 100644 t/basic/variable-pcfiledir-fullpath.test create mode 100644 t/parser/variable-self-reference-growth.test create mode 100644 t/solver/path-requires-alias.test create mode 100644 t/solver/path-requires-file.test create mode 100644 t/solver/path-requires-query-control.test create mode 100644 t/solver/path-requires-traversal.test create mode 100644 tests/lib-path-requires/inside/alias.pc create mode 100644 tests/lib-path-requires/inside/file.pc create mode 100644 tests/lib-path-requires/inside/traversal.pc create mode 100644 tests/lib-path-requires/outside/hidden-sibling.pc create mode 100644 tests/lib-path-requires/outside/hidden.pc create mode 100644 tests/lib1/variable-self-reference-growth.pc