summaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_backup_tar.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2007-08-23 16:16:27 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2007-08-23 16:16:27 +0000
commit10a81b3f2faccd319d671979ff39042778dd6274 (patch)
treecd20a5350a7d3dbd464900217bc4f1ab32a2c52d /src/bin/pg_dump/pg_backup_tar.c
parentffaaaf9918fdd1405f196314202fa126ac65c149 (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/bin/pg_dump/pg_backup_tar.c')
0 files changed, 0 insertions, 0 deletions