postgresql/src
Tom Lane 8b81b99b89 Avoid possibly accessing off the end of memory in SJIS2004 conversion.
The code in shift_jis_20042euc_jis_2004() would fetch two bytes even when
only one remained in the string.  Since conversion functions aren't
supposed to assume null-terminated input, this poses a small risk of
fetching past the end of memory and incurring SIGSEGV.  No such crash has
been identified in the field, but we've certainly seen the equivalent
happen in other code paths, so patch this one all the way back.

Report and patch by Noah Misch.
2011-09-06 14:50:44 -04:00
..
backend Avoid possibly accessing off the end of memory in SJIS2004 conversion. 2011-09-06 14:50:44 -04:00
bin Adjust translator comment format to xgettext expectations 2011-09-05 19:03:51 -03:00
include Fix #include problems in 9.1 branch. 2011-09-04 19:10:09 -04:00
interfaces Fix brace indentation of commit 5ad0e899f0 to fit PostgreSQL style. 2011-09-02 10:44:14 +02:00
makefiles Fix pgxs.mk to always add --dbname=$(CONTRIB_TESTDB) to REGRESS_OPTS. 2011-08-24 15:17:03 -04:00
pl Guard against using plperl's Makefile without specifying --with-perl. 2011-09-04 20:07:38 -04:00
port Fix typo in pg_srand48 (srand48 in older branches). 2011-09-03 16:17:39 -04:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Add expected isolationtester output when prepared xacts are disabled 2011-08-25 17:45:57 -03:00
timezone Update time zone data files to tzdata release 2011i. 2011-09-05 14:46:50 -04:00
tools Fix MinGW build, broken by my previous patch to add a setlocale() wrapper 2011-09-01 14:04:19 +03:00
tutorial Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02: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 Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Make distprep and *clean build targets recurse into all subdirectories. 2011-07-03 13:55:27 -04:00
Makefile.shlib Use single quotes in preference to double quotes for protecting pathnames. 2011-06-15 21:45:50 -04:00
nls-global.mk Fix makefile logic to not break the build when xgettext is missing 2010-10-14 23:16:46 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00