<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.hoenzb
        {mso-style-name:hoenzb;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1F497D">Hi Ross,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1F497D">I think, there was a web-page delay. Patch 3/3 is already there:
<a href="http://lists.openembedded.org/pipermail/openembedded-core/2016-December/130046.html">
http://lists.openembedded.org/pipermail/openembedded-core/2016-December/130046.html</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1F497D">Andrej<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Burton, Ross [mailto:ross.burton@intel.com]
<br>
<b>Sent:</b> 12. decembra 2016 14:44<br>
<b>To:</b> Valek, Andrej (CT DD DS EU SK BT)<br>
<b>Cc:</b> OE-core<br>
<b>Subject:</b> Re: [OE-core] [PATCH 1/3] libxml2: Necessary changes before fixing CVE-2016-5131 Fix comaparation with root node in xmlXPathCmpNodes and NULL pointer deref in XPointer<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">I see part 1 and 2 but no part 3.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Also, have you asked upstream if they'll be making a point release with these in?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Ross<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 12 December 2016 at 13:20, Andrej Valek &lt;<a href="mailto:andrej.valek@siemens.com" target="_blank">andrej.valek@siemens.com</a>&gt; wrote:<o:p></o:p></p>
<p class="MsoNormal">xpath:<br>
&nbsp;- Check for errors after evaluating first operand.<br>
&nbsp;- Add sanity check for empty stack.<br>
&nbsp;- Include comparation in changes from xmlXPathCmpNodesExt to xmlXPathCmpNodes<br>
<br>
Signed-off-by: Andrej Valek &lt;<a href="mailto:andrej.valek@siemens.com">andrej.valek@siemens.com</a>&gt;<br>
Signed-off-by: Pascal Bach &lt;<a href="mailto:pascal.bach@siemens.com">pascal.bach@siemens.com</a>&gt;<br>
---<br>
&nbsp;.../libxml2/libxml2-fix_node_comparison.patch&nbsp; &nbsp; &nbsp; | 67 &#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;&#43;<br>
&nbsp;meta/recipes-core/libxml/<a href="http://libxml2_2.9.4.bb" target="_blank">libxml2_2.9.4.bb</a>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |&nbsp; 1 &#43;<br>
&nbsp;2 files changed, 68 insertions(&#43;)<br>
&nbsp;create mode 100644 meta/recipes-core/libxml/libxml2/libxml2-fix_node_comparison.patch<br>
<br>
diff --git a/meta/recipes-core/libxml/libxml2/libxml2-fix_node_comparison.patch b/meta/recipes-core/libxml/libxml2/libxml2-fix_node_comparison.patch<br>
new file mode 100644<br>
index 0000000..11718bb<br>
--- /dev/null<br>
&#43;&#43;&#43; b/meta/recipes-core/libxml/libxml2/libxml2-fix_node_comparison.patch<br>
@@ -0,0 &#43;1,67 @@<br>
&#43;libxml2-2.9.4: Fix comparison with root node in xmlXPathCmpNodes and NULL pointer deref in XPointer<br>
&#43;<br>
&#43;xpath:<br>
&#43; - Check for errors after evaluating first operand.<br>
&#43; - Add sanity check for empty stack.<br>
&#43; - Include comparation in changes from xmlXPathCmpNodesExt to xmlXPathCmpNodes<br>
&#43;<br>
&#43;Upstream-Status: Backported<br>
&#43; - [<a href="https://git.gnome.org/browse/libxml2/commit/?id=c1d1f7121194036608bf555f08d3062a36fd344b" target="_blank">https://git.gnome.org/browse/libxml2/commit/?id=c1d1f7121194036608bf555f08d3062a36fd344b</a>]<br>
&#43; - [<a href="https://git.gnome.org/browse/libxml2/commit/?id=a005199330b86dada19d162cae15ef9bdcb6baa8" target="_blank">https://git.gnome.org/browse/libxml2/commit/?id=a005199330b86dada19d162cae15ef9bdcb6baa8</a>]<br>
&#43;CVE: necessary changes for fixing CVE-2016-5131<br>
&#43;Signed-off-by: Andrej Valek &lt;<a href="mailto:andrej.valek@siemens.com">andrej.valek@siemens.com</a>&gt;<br>
&#43;Signed-off-by: Pascal Bach &lt;<a href="mailto:pascal.bach@siemens.com">pascal.bach@siemens.com</a>&gt;<br>
&#43;<br>
&#43;diff --git a/result/XPath/xptr/viderror b/result/XPath/xptr/viderror<br>
&#43;new file mode 100644<br>
&#43;index 0000000..d589882<br>
&#43;--- /dev/null<br>
&#43;&#43;&#43;&#43; b/result/XPath/xptr/viderror<br>
&#43;@@ -0,0 &#43;1,4 @@<br>
&#43;&#43;<br>
&#43;&#43;========================<br>
&#43;&#43;Expression: xpointer(non-existing-fn()/range-to(id('chapter2')))<br>
&#43;&#43;Object is empty (NULL)<br>
&#43;diff --git a/test/XPath/xptr/viderror b/test/XPath/xptr/viderror<br>
&#43;new file mode 100644<br>
&#43;index 0000000..da8c53b<br>
&#43;--- /dev/null<br>
&#43;&#43;&#43;&#43; b/test/XPath/xptr/viderror<br>
&#43;@@ -0,0 &#43;1 @@<br>
&#43;&#43;xpointer(non-existing-fn()/range-to(id('chapter2')))<br>
&#43;diff --git a/xpath.c b/xpath.c<br>
&#43;index 113bce6..d992841 100644<br>
&#43;--- a/xpath.c<br>
&#43;&#43;&#43;&#43; b/xpath.c<br>
&#43;@@ -3342,13 &#43;3342,13 @@ xmlXPathCmpNodes(xmlNodePtr node1, xmlNodePtr node2) {<br>
&#43;&nbsp; &nbsp; &nbsp; * compute depth to root<br>
&#43;&nbsp; &nbsp; &nbsp; */<br>
&#43;&nbsp; &nbsp; &nbsp;for (depth2 = 0, cur = node2;cur-&gt;parent != NULL;cur = cur-&gt;parent) {<br>
&#43;-&nbsp; &nbsp; &nbsp; if (cur == node1)<br>
&#43;&#43;&nbsp; &nbsp; &nbsp; if (cur-&gt;parent == node1)<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return(1);<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp;depth2&#43;&#43;;<br>
&#43;&nbsp; &nbsp; &nbsp;}<br>
&#43;&nbsp; &nbsp; &nbsp;root = cur;<br>
&#43;&nbsp; &nbsp; &nbsp;for (depth1 = 0, cur = node1;cur-&gt;parent != NULL;cur = cur-&gt;parent) {<br>
&#43;-&nbsp; &nbsp; &nbsp; if (cur == node2)<br>
&#43;&#43;&nbsp; &nbsp; &nbsp; if (cur-&gt;parent == node2)<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return(-1);<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp;depth1&#43;&#43;;<br>
&#43;&nbsp; &nbsp; &nbsp;}<br>
&#43;@@ -14005,9 &#43;14005,14 @@ xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op)<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlNodeSetPtr oldset;<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int i, j;<br>
&#43;<br>
&#43;-&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (op-&gt;ch1 != -1)<br>
&#43;&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (op-&gt;ch1 != -1) {<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;total &#43;=<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;xmlXPathCompOpEval(ctxt, &amp;comp-&gt;steps[op-&gt;ch1]);<br>
&#43;&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CHECK_ERROR0;<br>
&#43;&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&#43;&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (ctxt-&gt;value == NULL) {<br>
&#43;&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XP_ERROR0(XPATH_INVALID_OPERAND);<br>
&#43;&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (op-&gt;ch2 == -1)<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;return (total);<br>
&#43;<br>
diff --git a/meta/recipes-core/libxml/<a href="http://libxml2_2.9.4.bb" target="_blank">libxml2_2.9.4.bb</a> b/meta/recipes-core/libxml/<a href="http://libxml2_2.9.4.bb" target="_blank">libxml2_2.9.4.bb</a><br>
index 1fed90b..66a8940 100644<br>
--- a/meta/recipes-core/libxml/<a href="http://libxml2_2.9.4.bb" target="_blank">libxml2_2.9.4.bb</a><br>
&#43;&#43;&#43; b/meta/recipes-core/libxml/<a href="http://libxml2_2.9.4.bb" target="_blank">libxml2_2.9.4.bb</a><br>
@@ -19,6 &#43;19,7 @@ SRC_URI = &quot;<a href="ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz;name=libtar" target="_blank">ftp://xmlsoft.org/libxml2/libxml2-${PV}.tar.gz;name=libtar</a> \<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file://run-ptest \<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file://python-sitepackages-dir.patch \<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file://libxml-m4-use-pkgconfig.patch \<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;file://libxml2-fix_node_comparison.patch \<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; file://libxml2-CVE-2016-5131.patch \<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&quot;<br>
<span style="color:#888888"><br>
<span class="hoenzb">--</span><br>
<span class="hoenzb">2.1.4</span><br>
<br>
<span class="hoenzb">--</span><br>
<span class="hoenzb">_______________________________________________</span><br>
<span class="hoenzb">Openembedded-core mailing list</span><br>
<span class="hoenzb"><a href="mailto:Openembedded-core@lists.openembedded.org">Openembedded-core@lists.openembedded.org</a></span><br>
<span class="hoenzb"><a href="http://lists.openembedded.org/mailman/listinfo/openembedded-core" target="_blank">http://lists.openembedded.org/mailman/listinfo/openembedded-core</a></span></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</div>
</body>
</html>