]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Defend against null error message reported by libxml2.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Feb 2019 18:30:42 +0000 (13:30 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 8 Feb 2019 18:31:15 +0000 (13:31 -0500)
commit7821a4d60ed677ce19646383a2fc2e9e56319d5f
tree55b4fdf2c99652ee208619d22046df93f6b77727
parenta61291ccde224a8df4b17b441b293ee9fbf513ce
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
src/backend/utils/adt/xml.c