postgresql/src/test/mb
Tom Lane c61a2f5841 Change the backend to reject strings containing invalidly-encoded multibyte
characters in all cases.  Formerly we mostly just threw warnings for invalid
input, and failed to detect it at all if no encoding conversion was required.
The tighter check is needed to defend against SQL-injection attacks as per
CVE-2006-2313 (further details will be published after release).  Embedded
zero (null) bytes will be rejected as well.  The checks are applied during
input to the backend (receipt from client or COPY IN), so it no longer seems
necessary to check in textin() and related routines; any string arriving at
those functions will already have been validated.  Conversion failure
reporting (for characters with no equivalent in the destination encoding)
has been cleaned up and made consistent while at it.

Also, fix a few longstanding errors in little-used encoding conversion
routines: win1251_to_iso, win866_to_iso, euc_tw_to_big5, euc_tw_to_mic,
mic_to_euc_tw were all broken to varying extents.

Patches by Tatsuo Ishii and Tom Lane.  Thanks to Akio Ishida and Yasuo Ohgaki
for identifying the security issues.
2006-05-21 20:05:21 +00:00
..
expected Change the backend to reject strings containing invalidly-encoded multibyte 2006-05-21 20:05:21 +00:00
sql unbreak unicode/utf8 test 2005-06-24 15:12:00 +00:00
mbregress.sh unbreak unicode/utf8 test 2005-06-24 15:12:00 +00:00
README Remove all traces of multibyte and locale options. Clean up comments 2002-09-03 21:45:44 +00:00

README for multibyte regression test
							1998/7/22
							Tatsuo Ishii

This directory contains a set of tests for multibyte supporting
extentions for PostgreSQL. To run the test, simply type:

% mbregress.sh