Subject: pkg/31838: pkg-config patch-ab passes NULL pointer to fprintf
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 10/16/2005 19:26:01
>Number:         31838
>Category:       pkg
>Synopsis:       pkg-config patch-ab passes NULL pointer to fprintf
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 16 19:26:00 +0000 2005
>Originator:     john heasley
>Release:        Solaris 2.9
System: SunOS yew 5.9 Generic_118558-09 sun4u sparc SUNW,Sun-Fire-280R
Architecture: sparc64
Machine: sparc64
The logging fprintf added to pkg-config in patch patch-ab passes
ver->version which is NULL (~ line 494), causing a segfault on solaris for
devel/atk build.
with the atk build started,
./pkg-config --atleast-version 2.0.0 glib-2.0 gobject-2.0 gmodule-no-export-2.0

I am not sure what the intention was, but it seems that it ought to
use req->version rather than ver->version.