aboutsummaryrefslogtreecommitdiff
path: root/src/backend/regex/regexec.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-01-13 13:07:26 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2014-01-13 13:07:26 -0500
commit72cce2c7806dbe872176d5af929b7f280f144d48 (patch)
tree1d07d61970a7457b71e02745cdb0e8c591d5a9ce /src/backend/regex/regexec.c
parent492b6854179e89ae5ad6a6580f39145ec800b70e (diff)
downloadpostgresql-72cce2c7806dbe872176d5af929b7f280f144d48.tar.gz
postgresql-72cce2c7806dbe872176d5af929b7f280f144d48.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/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions