mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-15 08:20:16 +08:00
e3e3087d87
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. |
||
---|---|---|
.. | ||
expected | ||
sql | ||
.gitignore | ||
dict_xsyn--1.0.sql | ||
dict_xsyn--unpackaged--1.0.sql | ||
dict_xsyn.c | ||
dict_xsyn.control | ||
Makefile | ||
xsyn_sample.rules |