libpkgconf/personality.c


Log

Author Commit Date CI Message
Tobias Stoeckmann 9e16d270 2020-05-24T23:13:19 libpkgconf: personality: fix out of boundary access It is possible to set the instruction pointer to undefined values by using an operator larger than ':' in ASCII. Since the personality function array does not have 256 entries, an invalid operator can overflow the array. Proof of concept: $ echo "a _ b" > poc $ ln -s $(which pkgconf) poc-pkgconf $ ./poc-pkgconf
Ariadne Conill 48dc665a 2019-10-19T00:56:17 personality: add support for WantDefaultStatic setting
Ariadne Conill 2adafc27 2019-08-23T12:47:22 libpkgconf: personality: return the default personality if loading a personality file failed
Alexander Tsoy db9c1e96 2019-06-07T19:19:28 fix the order of header includes config.h should be included before stdinc.h, otherwise large file support is not enabled. Downstream bug: https://bugs.gentoo.org/687548
William Pitcock 43ca536b 2019-05-06T15:13:17 lite: disable some bloat
Ignacio Casal Quinteiro c9dffb85 2018-09-17T15:19:18 Fix build on windows with meson
Graham Ollis 273d1d04 2018-05-29T17:36:04 use pkgconf_strlcpy On Debian/Ubuntu I get: CC libpkgconf/personality.lo libpkgconf/personality.c: In function ‘load_personality_with_path’: libpkgconf/personality.c:195:3: warning: implicit declaration of function ‘strlcpy’ [-Wimplicit-function-declaration] strlcpy(pathbuf, path, sizeof pathbuf); ^~~~~~~ CC libpkgconf/parser.lo CCLD libpkgconf.la ar: `u' modifier ignored since `D' is the default (see `U') CC cli/pkgconf-main.o CC cli/pkgconf-getopt_long.o CC cli/pkgconf-renderer-msvc.o CCLD pkgconf ./.libs/libpkgconf.so: undefined reference to `strlcpy'
William Pitcock 3ccc4454 2018-05-10T13:36:22 libpkgconf: personality: ensure the path list is properly initialized before searching for triplets
William Pitcock 40897f24 2018-05-09T22:52:27 libpkgconf: personality: remove const from the default personality, since it's not really const
William Pitcock e6ce6c8e 2018-05-09T22:39:39 libpkgconf: personality: fixups
William Pitcock 75134829 2018-05-09T22:08:28 libpkgconf: personality: fill in the rest of the personality parser
William Pitcock 9439b683 2018-05-09T19:27:53 libpkgconf: personality: add stub cross personality loader
William Pitcock 6b0e346c 2018-05-09T17:07:26 libpkgconf: refactor building the dir lists into separate concerns
William Pitcock 854490c5 2018-05-09T16:54:21 libpkgconf: add basic support for cross-compile personality objects