postgresql/src
Tom Lane 30c62561a8 Fix potential memory clobber in tsvector_concat().
tsvector_concat() allocated its result workspace using the "conservative"
estimate of the sum of the two input tsvectors' sizes.  Unfortunately that
wasn't so conservative as all that, because it supposed that the number of
pad bytes required could not grow.  Which it can, as per test case from
Jesper Krogh, if there's a mix of lexemes with positions and lexemes
without them in the input data.  The fix is to assume that we might add
a not-previously-present pad byte for each and every lexeme in the two
inputs; which really is conservative, but it doesn't seem worthwhile to
try to be more precise.

This is an aboriginal bug in tsvector_concat, so back-patch to all
versions containing it.
2011-08-26 16:51:52 -04:00
..
backend Fix potential memory clobber in tsvector_concat(). 2011-08-26 16:51:52 -04:00
bin Properly quote SQL/MED generic options in pg_dump output. 2011-08-25 12:38:22 -04:00
include Fix race condition in relcache init file invalidation. 2011-08-16 13:12:17 -04:00
interfaces Fix previous patch so it also works if not USE_SSL (mea culpa). 2011-07-24 23:29:21 -04:00
makefiles Fix assorted issues with build and install paths containing spaces. 2011-06-14 16:03:20 -04:00
pl Fix assorted issues with build and install paths containing spaces. 2011-06-14 16:03:20 -04:00
port Tag 8.4.8. 2011-04-15 00:17:14 -03:00
template Tweak configure to attempt to add -qnoansialias to CFLAGS whenever running 2009-02-11 20:02:40 +00:00
test Fix nested PlaceHolderVar expressions that appear only in targetlists. 2011-08-09 00:49:11 -04:00
timezone Update time zone data files to tzdata release 2011f. 2011-04-13 18:04:46 -04:00
tools Back-patch Fix bat file quoting of %ENV from commit 19b7fac8. 2011-07-04 10:12:27 -04:00
tutorial Remove copyright mention of Andrew Yu, per author's permission. 2010-02-02 18:52:06 +00:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:08 +02:00
bcc32.mak Remove old-style win32 client-only visual c++ build infrastructure for everything except 2007-03-05 14:18:38 +00:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Add the possibility to specify an explicit validator function for foreign-data 2009-02-24 10:06:36 +00:00
Makefile.global.in Back-patch creation of tar.bz2 tarball during "make dist". 2011-07-03 16:40:28 -04:00
Makefile.shlib Fix assorted issues with build and install paths containing spaces. 2011-06-14 16:03:20 -04:00
nls-global.mk Do not msgmerge against /dev/null; merge against the pot file itself 2009-01-20 09:58:50 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00