Bug 806982

Summary: xmllint crashes on xpath containing '/../'
Product: [Fedora] Fedora Reporter: Daniel BerrangĂ© <berrange>
Component: libxml2Assignee: Daniel Veillard <veillard>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: c.david86, veillard
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-27 06:46:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Daniel Berrangé 2012-03-26 17:05:31 UTC
Description of problem:

$ xmllint  --xpath '/../foo' -
<foo/>
Segmentation fault

I'd expect an error message of some kind instead of a crash

Version-Release number of selected component (if applicable):
libxml2-2.7.8-6.fc16.x86_64

How reproducible:
Always

Comment 1 Daniel Veillard 2012-03-27 06:46:01 UTC
Gahh, fixed upstream, the problem was limited to xmllint though :-)

http://git.gnome.org/browse/libxml2/commit/?id=bdc64d6d5f5f30982279af23cfa2d3ab08ba34c4


paphio:~/XML -> xmllint --xpath '/../foo' tst.xml
XPath set is empty
paphio:~/XML -> echo $?
10
paphio:~/XML -> 

One more reason to make that upstream release I have been promising for months !

Daniel