BUG #18943: Return value of a function 'xmlBufferCreate' is dereferenced at xpath.c:177 without checking for NUL

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: maralist86(at)mail(dot)ru
Subject: BUG #18943: Return value of a function 'xmlBufferCreate' is dereferenced at xpath.c:177 without checking for NUL
Date: 2025-06-01 19:05:25
Message-ID: 18943-2f2a04ab03904598@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18943
Logged by: Karavaev Alexey
Email address: maralist86(at)mail(dot)ru
PostgreSQL version: 17.5
Operating system: alt workstation 10.4 x86_64
Description:

Return value of a function 'xmlBufferCreate' is dereferenced at xpath.c:177
without checking for NULL, but it is usually checked for this function.
The function 'xmlBufferCreate' may return NULL, and in some cases the code
xmlStrdup(buf->content) will throw an error.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message vignesh C 2025-06-02 03:13:37 Re: Logical replication 'invalid memory alloc request size 1585837200' after upgrading to 17.5
Previous Message Tom Lane 2025-05-31 23:46:25 Re: BUG #18925: Heap-buffer-overflow: pglz_compress with pglz_stategy_always