aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeBitmapHeapscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-01-13 13:07:10 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-01-13 13:07:10 -0500
commitc3ccc9ee584b9b015dd9c1931e261e21f3961e5f (patch)
tree4163a71611ce3c65cb93088d31297402d3ba0c1a /src/backend/executor/nodeBitmapHeapscan.c
parent866a1f0923b67373701a578e98b74ab2458f74db (diff)
downloadpostgresql-c3ccc9ee584b9b015dd9c1931e261e21f3961e5f.tar.gz
postgresql-c3ccc9ee584b9b015dd9c1931e261e21f3961e5f.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/executor/nodeBitmapHeapscan.c')
0 files changed, 0 insertions, 0 deletions