From: Alexander Barkov Date: February 28 2011 9:08am Subject: bzr commit into mysql-5.1 branch (alexander.barkov:3605) Bug#44332 Bug#59901 Bug#11766725 List-Archive: http://lists.mysql.com/commits/132089 X-Bug: 44332,59901,11766725 Message-Id: <201102280908.p1S98VW4022566@bar.myoffice.izhnet.ru> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0074897558221790059==" --===============0074897558221790059== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline #At file:///home/bar/mysql-bzr/mysql-5.1.b59901/ based on revid:build@stripped 3605 Alexander Barkov 2011-02-28 Bug#11766725 (Bug#59901) EXTRACTVALUE STILL BROKEN AFTER FIX FOR BUG #44332 Problem: a byte behind the end of input string was read in case of a broken XML not having a quote or doublequote character closing a string value. Fix: changing condition not to read behind the end of input string @ mysql-test/r/xml.result @ mysql-test/t/xml.test Adding tests @ strings/xml.c When checking if the closing quote/doublequote was found, using p->cur[0] us unsafe, as p->cur can point to the byte after the value. Comparing p->cur to p->beg instead. modified: mysql-test/r/xml.result mysql-test/t/xml.test strings/xml.c === modified file 'mysql-test/r/xml.result' --- a/mysql-test/r/xml.result 2011-01-18 06:38:41 +0000 +++ b/mysql-test/r/xml.result 2011-02-28 09:02:46 +0000 @@ -1124,4 +1124,12 @@ Warning 1525 Incorrect XML value: 'parse SELECT UPDATEXML(CONVERT(_latin1'