git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 21eb6ae) | patch
Fix buffer allocations in encoding conversion routines so that they won't
2009年2月28日 18:49:42 +0000 (18:49 +0000)
2009年2月28日 18:49:42 +0000 (18:49 +0000)
commit 876b37d50ab70cae8cde5337ec27cec649ef1677
Fix buffer allocations in encoding conversion routines so that they won't
fail on zero-length inputs. This isn't an issue in normal use because the
conversion infrastructure skips calling the converters for empty strings.
However a problem was created by yesterday's patch to check whether the
right conversion function is supplied in CREATE CONVERSION. The most
future-proof fix seems to be to make the converters safe for this corner case.
src/backend/utils/mb/conversion_procs/cyrillic_and_mic/cyrillic_and_mic.c diff | blob | blame | history
src/backend/utils/mb/conversion_procs/euc_jp_and_sjis/euc_jp_and_sjis.c diff | blob | blame | history
src/backend/utils/mb/conversion_procs/euc_tw_and_big5/euc_tw_and_big5.c diff | blob | blame | history
src/backend/utils/mb/conversion_procs/latin2_and_win1250/latin2_and_win1250.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /