aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/constraint.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-01-13 13:07:17 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-01-13 13:07:17 -0500
commit299498d6d11c851bab107313a4ca1bf2644881b6 (patch)
tree648871ccf4f74a72c65b8346a5cd020860dc268f /src/backend/commands/constraint.c
parentf6d6b42f2b1a9cbc5d1a8eb0c0d76eb27eecc0e2 (diff)
downloadpostgresql-299498d6d11c851bab107313a4ca1bf2644881b6.tar.gz
postgresql-299498d6d11c851bab107313a4ca1bf2644881b6.zip
Fix possible buffer overrun in contrib/pg_trgm.
Allow for the possibility that folding a string to lower case makes it longer (due to replacing a character with a longer multibyte character). This doesn't change the number of trigrams that will be extracted, but it does affect the required size of an intermediate buffer in generate_trgm(). Per bug #8821 from Ufuk Kayserilioglu. Also install some checks that the input string length is not so large as to cause overflow in the calculations of palloc request sizes. Back-patch to all supported versions.
Diffstat (limited to 'src/backend/commands/constraint.c')
0 files changed, 0 insertions, 0 deletions