Re: BUG #18274: Error 'invalid XML content'
Dmitry Koval <d.koval@postgrespro.ru>
From: Dmitry Koval <d.koval@postgrespro.ru>
To: Michael Paquier <michael@paquier.xyz>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2024-01-16T13:55:34Z
Lists: pgsql-bugs
Attachments
- v2-0001-Added-support-of-XML_PARSE_HUGE-flag-for-XML-docu.patch (text/plain) patch v2-0001
Hi! Thanks for the recommendations. >- Document in a comment why a fake root node is necessary (aka the > current routines don't give enough control over the limits you'd >like to enforce). Comment expanded (see src/backend/utils/adt/xml.c). >- The top comment of xml_parse() still mentions >xmlParseBalancedChunkMemory() as an effect of 483bdb2afec9, so this >needs to be updated. Updated. >Also, it may be worth double-checking if there are other things marked >as deprecated in the upstream doc, and switch to "newer" things. I found another deprecated function xmlSubstituteEntitiesDefault [1] (contrib/xml2). xmlSubstituteEntitiesDefault was removed and added the XML_PARSE_NOENT flag in functions xmlReadMemory instead it. [1]https://gnome.pages.gitlab.gnome.org/libxml2/devhelp/libxml2-parser.html#xmlSubstituteEntitiesDefault -- With best regards, Dmitry Koval Postgres Professional: http://postgrespro.com
Commits
-
xml2: Replace deprecated routines with recommended ones
- 4b0e5d601291 12.19 landed
- bb418aeee270 13.15 landed
- 6fa5e67e832b 14.12 landed
- 689ba4f1c406 15.7 landed
- 7c93f31dee5f 16.3 landed
- 65c5864d7fac 17.0 landed
-
Revert "Add support for parsing of large XML data (>= 10MB)"
- f2743a7d70e7 17.0 landed
-
Add support for parsing of large XML data (>= 10MB)
- 2197d06224a1 17.0 landed