aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-08-23 16:16:20 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-08-23 16:16:20 +0000
commit08e72a644af745cd01314f8440e6d5f0334b1917 (patch)
treee86839689adc8dc451bcda0ff8f282a6f8ca15c6 /src/tutorial/funcs.c
parent42110a6a6a3f15ea1ca1e81fbf3417322bdecff7 (diff)
downloadpostgresql-08e72a644af745cd01314f8440e6d5f0334b1917.tar.gz
postgresql-08e72a644af745cd01314f8440e6d5f0334b1917.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/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions