aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-11-03 19:17:48 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-11-03 19:17:48 -0400
commite3e3087d8717c26cd1c4581ba29274ac214eb816 (patch)
tree7560f858a60622db010625f33e668c816919ec81 /src/backend/access/transam/xlogfuncs.c
parenta0d2f05a0d433ab68ec378744ff920562a5ef681 (diff)
downloadpostgresql-e3e3087d8717c26cd1c4581ba29274ac214eb816.tar.gz
postgresql-e3e3087d8717c26cd1c4581ba29274ac214eb816.zip
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 'src/backend/access/transam/xlogfuncs.c')
0 files changed, 0 insertions, 0 deletions