Fix crash when specified filename has no path separators #36

Merged
bdrewery merged 1 commits from fix-crash-without-pathseps into master 2012-08-25 22:15:08 +00:00
bdrewery commented 2012-08-25 21:37:03 +00:00 (Migrated from github.com)

When running pkgconf without any path separators, a crash occurs. This happens when compiling Unreal3.2 with libtre:

tre.pc


prefix=/usr/home/bryan/Unreal3.2/extras/regexp
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: TRE
Description: TRE regexp matching library
Version: 0.8.0
Libs: -L${libdir} -ltre
Cflags: -I${includedir}
$ pkgconf tre.pc
Segmentation fault: 11 (core dumped)
When running `pkgconf` without any path separators, a crash occurs. This happens when compiling Unreal3.2 with libtre: ## tre.pc <pre> prefix=/usr/home/bryan/Unreal3.2/extras/regexp exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: TRE Description: TRE regexp matching library Version: 0.8.0 Libs: -L${libdir} -ltre Cflags: -I${includedir} </pre> <pre> $ pkgconf tre.pc Segmentation fault: 11 (core dumped) </pre>
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#36
There is no content yet.