Bug 205695

Summary: devel/pkgconf: pkgconf segfault when a require is specified with version number and the required .pc file is empty
Product: Ports & Packages Reporter: Ting-Wei Lan <lantw44>
Component: Individual Port(s)Assignee: Baptiste Daroussin <bapt>
Status: Closed FIXED    
Severity: Affects Only Me Keywords: needs-qa
Priority: --- Flags: bugzilla: maintainer-feedback? (bapt)
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/pkgconf/pkgconf/issues/85
Attachments:
Description Flags
Add an upstream commit to fix the crash none

Description Ting-Wei Lan 2015-12-29 14:14:35 UTC
Upstream bug report:
https://github.com/pkgconf/pkgconf/issues/85


Steps to reproduce:
1. Create a empty file called 'a.pc'.

2. Create a file called 'b.pc' which lists 'a' in Requires:
Name: b
Version: 3
Requires: a >= 2

3. Run 'pkgconf --modversion b'.
Segmentation fault (core dumped)


This problem can happen when the system crashes and the content of .pc file is lost.
Comment 1 Ting-Wei Lan 2016-04-01 16:36:35 UTC
Created attachment 168874 [details]
Add an upstream commit to fix the crash