postgresql/contrib/pg_trgm
Tom Lane c3ccc9ee58 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.
2014-01-13 13:07:10 -05:00
..
data
expected
sql
.gitignore
Makefile
pg_trgm--1.0--1.1.sql
pg_trgm--1.1.sql
pg_trgm--unpackaged--1.0.sql
pg_trgm.control
trgm_gin.c
trgm_gist.c
trgm_op.c Fix possible buffer overrun in contrib/pg_trgm. 2014-01-13 13:07:10 -05:00
trgm_regexp.c
trgm.h