summaryrefslogtreecommitdiff
path: root/src/backend/commands/analyze.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-05-28 12:36:04 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-05-28 12:36:30 -0400
commitab7c5a90828472c2261048a7195ab9218b55e296 (patch)
treee9d477b5899590479a6c3ee8415889e51a920284 /src/backend/commands/analyze.c
parent722548e4309c28631ada292fe6cad04ae8f9c151 (diff)
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/commands/analyze.c')
0 files changed, 0 insertions, 0 deletions