postgresql/contrib/pg_trgm
Tom Lane fc27b40681 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:20 -05:00
..
data trgm - Trigram matching for PostgreSQL 2004-05-31 17:18:12 +00:00
expected Fix contrib/pg_trgm's similarity() function for trigram-free strings. 2013-02-13 14:07:17 -05:00
sql Fix contrib/pg_trgm's similarity() function for trigram-free strings. 2013-02-13 14:07:17 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
pg_trgm--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:36 -04:00
pg_trgm--unpackaged--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:36 -04:00
pg_trgm.control Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
trgm.h pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
trgm_gin.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
trgm_gist.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
trgm_op.c Fix possible buffer overrun in contrib/pg_trgm. 2014-01-13 13:07:20 -05:00