Bug 1271005 - libxml2: incorrect handling of XPath function arguments in error case
libxml2: incorrect handling of XPath function arguments in error case
Status: NEW
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libxml2 (Show other bugs)
Unspecified Unspecified
unspecified Severity medium
: rc
: ---
Assigned To: Daniel Veillard
Depends On:
  Show dependency treegraph
Reported: 2015-10-12 17:29 EDT by Tomas Hoger
Modified: 2017-10-03 21:16 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tomas Hoger 2015-10-12 17:29:28 EDT
Description of problem:

See upstream commit:


A malformed XSLT can cause XPath code in libxml2 to mishandle function argument stack and cause valuePop() to unexpectedly return NULL, possibly leading to crash.

Steps to Reproduce:

Reproducer taken from:


<xsl:stylesheet version="1.0"
<!-- xsl:output method="text" indent="no"/ -->
<xsl:template match="*">
<xsl:value-of select="generate-id()=generate-id(key('none', $nonexistent))"/>

Crash can be reproduced with xsltproc as: xsltproc bad.xsl bad.xsl (the XSL file is also specified as XML file to transform, but other XML input would do).  This also was the cause of PHP bug 1260711.

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