Revision fc27b406817f303e38fbc86d857cead2a5116668 authored by Tom Lane on 13 January 2014, 18:07:20 UTC, committed by Tom Lane on 13 January 2014, 18:07:20 UTC
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.
1 parent 5143dfd
History
File Mode Size
config
contrib
doc
src
.gitignore -rw-r--r-- 360 bytes
COPYRIGHT -rw-r--r-- 1.2 KB
GNUmakefile.in -rw-r--r-- 3.7 KB
Makefile -rw-r--r-- 1.5 KB
README -rw-r--r-- 1.3 KB
README.git -rw-r--r-- 816 bytes
aclocal.m4 -rw-r--r-- 385 bytes
configure -rwxr-xr-x 850.2 KB
configure.in -rw-r--r-- 62.7 KB

README

back to top