pgsql: Defend against null error message reported by libxml2.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Defend against null error message reported by libxml2.
Дата
Msg-id E1gsAw1-0003ik-HI@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Defend against null error message reported by libxml2.

While this isn't really supposed to happen, it can occur in OOM
situations and perhaps others.  Instead of crashing, substitute
"(no message provided)".

I didn't worry about localizing this text, since we aren't
localizing anything else here; besides, if we're on the edge of
OOM, it's unlikely gettext() would work.

Report and fix by Sergio Conde Gómez in bug #15624.

Discussion: https://postgr.es/m/15624-4dea54091a2864e6@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0edef16d76beb8286cc832e4e1daf1f16b3d8f4a

Modified Files
--------------
src/backend/utils/adt/xml.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Doc: fix thinko in description of how to escape a backslash inb
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: First-draft release notes for 11.2.