xmlconcat(NULL) crash

Started by Peter Eisentrautover 17 years ago1 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Due to some code reshuffling, xmlconcat(NULL) will crash in 8.3 and 8.4.
The pfree(buf.data) in ExecEvalXml() frees a buffer that is actuall
only initialized in the XMLFOREST case. So then the xmlconcat(NULL)
falls through to the pfree() it crashes. I have attached a patch for
8.3 and 8.4 to clean this up.

Attachments:

xmlconcat-null-fix-84.difftext/plain; name=xmlconcat-null-fix-84.diff; x-mac-creator=0; x-mac-type=0Download+56-15
xmlconcat-null-fix-83.difftext/plain; name=xmlconcat-null-fix-83.diff; x-mac-creator=0; x-mac-type=0Download+67-21