Re: Fix use-after-free when XMLSERIALIZE(... INDENT) output exceeds 1GB

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jim Jones <jim(dot)jones(at)uni-muenster(dot)de>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Fix use-after-free when XMLSERIALIZE(... INDENT) output exceeds 1GB
Date: 2026-11-02 01:47:47
Message-ID: 820807.1793584067@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jim Jones <jim(dot)jones(at)uni-muenster(dot)de> writes:
> While investigating a libxml2 behaviour I found a bug in
> xmltotext_with_options(): xmlserialize(.. indent) can crash the backend.

Ugh, that's a pretty obvious thinko in hindsight :-(.
Pushed, thanks for the patch!

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Richard Guo 2026-11-02 01:45:33 Re: bug: query returns different result with and without memoization.