aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistproc.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-08-23 16:16:05 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-08-23 16:16:05 +0000
commitd68b66984c00c9364caaa1fa8c3bf60403e1df89 (patch)
tree5009b6f6818745aa5e95196f16f7cd1434d3c6df /src/backend/access/gist/gistproc.c
parentbbb7e05c32fb6e1a67dbd3eeaed97c106c277d95 (diff)
downloadpostgresql-d68b66984c00c9364caaa1fa8c3bf60403e1df89.tar.gz
postgresql-d68b66984c00c9364caaa1fa8c3bf60403e1df89.zip
Fix combo_decrypt() to throw an error for zero-length input when using a
padded encryption scheme. Formerly it would try to access res[(unsigned) -1], which resulted in core dumps on 64-bit machines, and was certainly trouble waiting to happen on 32-bit machines (though in at least the known case it was harmless because that byte would be overwritten after return). Per report from Ken Colson; fix by Marko Kreen.
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions