Re: PostgreSQL vs SQL/XML Standards
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Chapman Flack <chap@anastigmatix.net>, Markus Winand <markus.winand@winand.at>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-03-08T18:34:17Z
Lists: pgsql-hackers
(I spent some time trying to reproduce the original bug, but was interrupted for lunch before getting a useful installation. I find it a bit strange that it doesn't crash in x86_64, mind ...) On 2019-Mar-08, Pavel Stehule wrote: > It fixes current issue, but I afraid so these two routines are not > replaceable. xmlFreeNodeList doesn't release xmlFreeDtd, XML_ATTRIBUTE_NODE > is not checked. :-( > Maybe we can call explicitly xmlFreeDoc instead xmlFreeNode > > some like > > if (cur_copy->type == XML_DOCUMENT_NODE) > xmlFreeDoc((xmlDocPtr) cur_copy); > else > xmlFreeNode(cur_copy); > > This looks most correct fix for me. What do you think? Seems like that should work, yeah ... -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Commits
-
Improve documentation about our XML functionality
- 728c49779ba8 11.6 landed
- 603a28b44973 10.11 landed
-
Improve documentation about our XML functionality.
- 12d46ac392d0 12.0 landed
-
Add volatile qualifier missed in commit 2e616dee9.
- b2b819019f44 12.0 landed
-
Fix crash with old libxml2
- 2e616dee9e60 12.0 landed
-
Fix minor deficiencies in XMLTABLE, xpath(), xmlexists()
- 251cf2e27bec 12.0 cited
-
Fix the BY {REF,VALUE} clause of XMLEXISTS/XMLTABLE
- eaaa5986ad03 12.0 landed
-
doc: Update README.links
- b060e6c1f5b4 12.0 landed
-
XPath fixes:
- 3963574d1338 8.3.0 cited