aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist
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:50:44 -0400
commit8b81b99b89de186aeda9baabf4e1b6bd792d54b9 (patch)
treeffa62c5f7fcc6868abcf931e25a19541376272f6 /src/backend/access/gist
parent460bfd07b38f6495314c01499fca49f5f4a68a38 (diff)
downloadpostgresql-8b81b99b89de186aeda9baabf4e1b6bd792d54b9.tar.gz
postgresql-8b81b99b89de186aeda9baabf4e1b6bd792d54b9.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')
0 files changed, 0 insertions, 0 deletions