Bug 806982 - xmllint crashes on xpath containing '/../'
Summary: xmllint crashes on xpath containing '/../'
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: libxml2
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-03-26 17:05 UTC by Daniel Berrangé
Modified: 2012-03-27 06:46 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-27 06:46:01 UTC
Type: ---


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.