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

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #18943: Return value of a function 'xmlBufferCreate' is dereferenced at xpath.c:177 without checking for NUL
Дата
Msg-id aETzMep2fGfB0AIp@paquier.xyz
обсуждение исходный текст
Ответ на Re: BUG #18943: Return value of a function 'xmlBufferCreate' is dereferenced at xpath.c:177 without checking for NUL  (Jim Jones <jim.jones@uni-muenster.de>)
Ответы Re: BUG #18943: Return value of a function 'xmlBufferCreate' is dereferenced at xpath.c:177 without checking for NUL
Список pgsql-bugs
On Fri, Jun 06, 2025 at 12:22:30PM +0200, Jim Jones wrote:
> So, perhaps this?
>
> if (xmlAddChildList(root, content_nodes) == NULL ||
>     xmlerrcxt->err_occurred)
>   xml_ereport(xmlerrcxt,
>      ERROR, ERRCODE_OUT_OF_MEMORY,
>      "could not add content nodes to root element");

ERRCODE_INTERNAL_ERROR would be more adapted, I'm only seeing error
code paths caused by inconsistencies in the nodes.

I have updated the patches with the attached, splitting the parts for
contrib/xml2/ and the backend into two parts.  These touch error paths
that are very unlikely going to be hit in practice, so let's do all
that once v19 opens for business only on HEAD.
--
Michael

Вложения

В списке pgsql-bugs по дате отправления: