summaryrefslogtreecommitdiff
path: root/doc/src/sgml/ref/close.sgml
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-11-03 19:17:59 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-11-03 19:17:59 -0400
commit3fbfd40b37eaf2db8698df1b5e41bc0fd6c80b51 (patch)
tree6ab2e472f9197b0dbe6252159077fe29e7169672 /doc/src/sgml/ref/close.sgml
parent9b3c35a9db418379fc760105df04ac30810f9c88 (diff)
Fix bogus code in contrib/ tsearch dictionary examples.
Both dict_int and dict_xsyn were blithely assuming that whatever memory palloc gives back will be pre-zeroed. This would typically work for just about long enough to run their regression tests, and no longer :-(. The pre-9.0 code in dict_xsyn was even lamer than that, as it would happily give back a pointer to the result of palloc(0), encouraging its caller to access off the end of memory. Again, this would just barely fail to fail as long as memory contained nothing but zeroes. Per a report from Rodrigo Hjort that code based on these examples didn't work reliably.
Diffstat (limited to 'doc/src/sgml/ref/close.sgml')
0 files changed, 0 insertions, 0 deletions