Improve error handling of xml2 with libxml2 OOMs

Edit
ID 5794
Title Improve error handling of xml2 with libxml2 OOMs
CI (CFBot) Summary
Stats (from CFBot) Patch version: v4, Patch count: 2, First patch: +62−16, All patches: +356−166
Topic Bug Fixes
Created 2025-06-03 04:17:23
Last modified 2025-06-03 04:17:23 (5 days ago)
Latest email 2025-06-08 08:33:17 (1 hour ago)
Status
2025-07: Needs review
Target version stable
Authors Michael Paquier (michael-kun)
Reviewers Jim Jones (jimus)Become reviewer
Committer
Links
Emails
BUG #18943: Return value of a function 'xmlBufferCreate' is dereferenced at xpath.c:177 without checking for NUL
First at 2025-06-01 19:05:25 by PG Bug reporting form <noreply at postgresql.org>
Latest at 2025-06-08 08:33:17 by Jim Jones <jim.jones at uni-muenster.de>
Latest attachment (v4-0001-Improve-error-handling-with-calls-to-libxml2.patch) at 2025-06-08 02:19:29 from Michael Paquier <michael at paquier.xyz>
    Attachment (v4-0001-Improve-error-handling-with-calls-to-libxml2.patch) at 2025-06-08 02:19:29 from Michael Paquier <michael at paquier.xyz> (Patch: Yes)
    Attachment (v3-0001-xml2-Fix-error-handling-in-corner-cases.patch) at 2025-06-06 05:54:40 from Michael Paquier <michael at paquier.xyz> (Patch: Yes)
    Attachment (v2-0001-xml2-Fix-error-handling-in-corner-cases.patch) at 2025-06-05 04:52:46 from Michael Paquier <michael at paquier.xyz> (Patch: Yes)
    Attachment (0001-xml2-Fix-error-handling-in-corner-cases.patch) at 2025-06-02 05:21:24 from Michael Paquier <michael at paquier.xyz> (Patch: Yes)
History
When Who What
2025-06-06 10:27:06 Jim Jones (jimus) Added jimus as reviewer
2025-06-03 04:17:23 Michael Paquier (michael-kun) Attached mail thread 18943-2f2a04ab03904598@postgresql.org
2025-06-03 04:17:23 Michael Paquier (michael-kun) Created patch record
Edit