FreeBSD Bugzilla – Attachment 168874 Details for
Bug 205695
devel/pkgconf: pkgconf segfault when a require is specified with version number and the required .pc file is empty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add an upstream commit to fix the crash
pkgconf.patch (text/plain), 1.18 KB, created by
Ting-Wei Lan
on 2016-04-01 16:36:35 UTC
(
hide
)
Description:
Add an upstream commit to fix the crash
Filename:
MIME Type:
Creator:
Ting-Wei Lan
Created:
2016-04-01 16:36:35 UTC
Size:
1.18 KB
patch
obsolete
>Index: files/patch-git-a892af7 >=================================================================== >--- files/patch-git-a892af7 (revision 0) >+++ files/patch-git-a892af7 (working copy) >@@ -0,0 +1,26 @@ >+From a892af7464bb960cae59222fe416dd89f58821c6 Mon Sep 17 00:00:00 2001 >+From: William Pitcock <nenolod@dereferenced.org> >+Date: Thu, 21 Jan 2016 11:08:36 -0500 >+Subject: [PATCH] pkg: tolerate NULL in pkgconf_compare_version() (closes #85) >+ >+--- >+ libpkgconf/pkg.c | 6 ++++++ >+ 1 file changed, 6 insertions(+) >+ >+diff --git pkg.c pkg.c >+index 076ccff..41b1ee7 100644 >+--- pkg.c >++++ pkg.c >+@@ -528,6 +528,12 @@ pkgconf_compare_version(const char *a, const char *b) >+ bool isnum; >+ >+ /* optimization: if version matches then it's the same version. */ >++ if (a == NULL) >++ return 1; >++ >++ if (b == NULL) >++ return -1; >++ >+ if (!strcasecmp(a, b)) >+ return 0; >+ > >Property changes on: files/patch-git-a892af7 >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 205695
: 168874