diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2011-05-28 12:36:04 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2011-05-28 12:36:04 -0400 |
commit | 5e1365a9650678a531106120e40676a9417971f1 (patch) | |
tree | 7d07b838d14c74ec7070cb6b621ba62b8d18814c /src/backend/access/gist/gist.c | |
parent | 4c60a77508ee4f4d895629905265d79feaab108c (diff) | |
download | postgresql-5e1365a9650678a531106120e40676a9417971f1.tar.gz postgresql-5e1365a9650678a531106120e40676a9417971f1.zip |
Fix null-dereference crash in parse_xml_decl().
parse_xml_decl's header comment says you can pass NULL for any unwanted
output parameter, but it failed to honor this contract for the "standalone"
flag. The only currently-affected caller is xml_recv, so the net effect is
that sending a binary XML value containing a standalone parameter in its
xml declaration would crash the backend. Per bug #6044 from Christopher
Dillard.
In passing, remove useless initializations of parse_xml_decl's output
parameters in xml_parse.
Back-patch to 8.3, where this code was introduced.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions