Re: pg_parse_json() should not leak token copies on failure

From: Jacob Champion <jacob(dot)champion(at)enterprisedb(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_parse_json() should not leak token copies on failure
Date: 2024-05-24 15:43:01
Message-ID: CAOYmi+nRDX5HNHFg76w-4zjJ2TJHbVg6K1Xj2P64vV7v9-wxrQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Apr 30, 2024 at 2:29 PM Jacob Champion
<jacob(dot)champion(at)enterprisedb(dot)com> wrote:
> Attached is a draft patch to illustrate what I mean, but it's
> incomplete: it only solves the problem for scalar values.

(Attached is a v2 of that patch; in solving a frontend leak I should
probably not introduce a backend segfault.)

--Jacob

Attachment Content-Type Size
v2-0001-WIP-fix-leak-of-scalar-value-on-lex-failure.patch application/octet-stream 2.1 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2024-05-24 15:48:34 Re: warn if GUC set to an invalid shared library
Previous Message Tomas Vondra 2024-05-24 15:40:41 Re: commitfest.postgresql.org is no longer fit for purpose