diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2007-08-23 16:16:11 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2007-08-23 16:16:11 +0000 |
commit | fa87632f794111d7b5382b34f26754c891fb1312 (patch) | |
tree | f7b51466f6f33621220bf1ab6a74b5c5c3d3400d /src/backend/commands/indexcmds.c | |
parent | c2e2ad79890faa2429a8dab4a34a509ef79c05f9 (diff) |
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/commands/indexcmds.c')
0 files changed, 0 insertions, 0 deletions