postgresql/src
Tom Lane bb36c51fcd Fix several bugs in tsvectorin, including crash due to uninitialized field and
miscomputation of required palloc size.  The crash could only occur if the
input contained lexemes both with and without positions, which is probably not
common in practice.  The miscomputation would definitely result in wasted
space.  Also fix some inconsistent coding around alignment of strings and
positions in a tsvector value; these errors could also lead to crashes given
mixed with/without position data and a machine that's picky about alignment.
And be more careful about checking for overflow of string offsets.

Patch is only against HEAD --- I have not looked to see if same bugs are
in back-branch contrib/tsearch2 code.
2007-10-23 00:51:23 +00:00
..
backend Fix several bugs in tsvectorin, including crash due to uninitialized field and 2007-10-23 00:51:23 +00:00
bin Use 'token' not 'lexeme' to describe the output of a parser. 2007-10-16 18:02:26 +00:00
include Adjust ts_debug's output as per my proposal of yesterday: show the 2007-10-22 20:13:37 +00:00
interfaces Fix the inadvertent libpq ABI breakage discovered by Martin Pitt: the 2007-10-13 20:18:42 +00:00
makefiles Teach pgxs.mk and Install.pm how to install files from a contrib module 2007-10-16 16:00:00 +00:00
pl Fix plperl and pltcl to include the name of the current function when 2007-10-05 17:06:11 +00:00
port Add missing entry for PG_WIN1250 encoding, per gripe from Pavel Stehule. 2007-10-17 15:24:04 +00:00
template Use SYSV semaphores rather than POSIX on Darwin >= 6.0 (i.e., OS X 10.2 2007-09-26 00:32:46 +00:00
test Migrate the former contrib/txid module into core. This will make it easier 2007-10-13 23:06:28 +00:00
timezone Update timezone data files to release 2007h of the zic database. 2007-10-04 19:06:59 +00:00
tools Teach pgxs.mk and Install.pm how to install files from a contrib module 2007-10-16 16:00:00 +00:00
tutorial Fix PGXS conventions so that extensions can be built against Postgres 2007-06-26 22:05:04 +00: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 Testing commit stuff 2006-07-10 15:50:02 +00:00
Makefile Tsearch2 functionality migrates to core. The bulk of this work is by 2007-08-21 01:11:32 +00:00
Makefile.global.in Change initdb and CREATE DATABASE to actively reject attempts to create 2007-09-28 22:25:49 +00:00
Makefile.shlib Change $(CC) to $(COMPILER) on Solaris gcc so -m64 is passed into the 2007-02-20 22:45:57 +00:00
nls-global.mk When merging PO files, take into consideration translations in other PO 2006-04-05 13:40:15 +00:00
win32.mak Update supported standalone VC++ version to 7.1+ only, and fix 2007-08-03 10:47:11 +00:00