Crash using --variable=varname when varname does not exist

Sylvain Joyeux sylvain.joyeux at m4x.org
Tue Oct 4 06:19:11 PDT 2005


> Which architecture is this?
ppc32

The problem is in pkg.c +1244, you do
	str->str[str->len - 1] = '\0';

which, obviously, is off-buffer if str->len == 0

Sylvain


More information about the pkg-config mailing list