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-25T12:12:07Z
Lists: pgsql-bugs
> he security team has discussed 2197d06224a1 after a report from > coverity regarding the effects that issues like [1] would create in > the backend, and concluded that this patch should be reverted because > this could cause the backend to waste plently of CPU and/or memory > even if the application applied checks on the size of the data given > in input, and libxml2 does not offer guarantees that input limits are > respected under XML_PARSE_HUGE. Thanks for info! I agree that reverting a patch is a good idea if there are concerns about server resources (XML is used by few users and there are even fewer users who need to parse elements larger than 10Mb). For such users it is better to create custom PostgreSQL build. -- 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