aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-09-06 14:50:28 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-09-06 14:51:12 -0400
commitb2658c348eeb12d4cf87c21e05ddb5d97e4f043b (patch)
treea911fd8171f513ade1be95885639b4e52ea5112a /src/backend/access/gist/gistscan.c
parent305c5ed6d7fbadac07a100939c4545bd21416552 (diff)
downloadpostgresql-b2658c348eeb12d4cf87c21e05ddb5d97e4f043b.tar.gz
postgresql-b2658c348eeb12d4cf87c21e05ddb5d97e4f043b.zip
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.
Diffstat (limited to 'src/backend/access/gist/gistscan.c')
0 files changed, 0 insertions, 0 deletions