Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Conway2005-06-22 02:00:47 +0000
committerNeil Conway2005-06-22 02:00:47 +0000
commit05db8b501b7807cf730a7c1b8a95d05ca694070b (patch)
tree23e0841dbc09e2da8d40a3e574fcc94c54f9d245 /src/backend/commands/dbcommands.c
parent06ecacded604d6d04b77e119a87a78f759b6b171 (diff)
Correct some code in pg_restore when reading the header of a tar archive:
(1) The code doesn't initialize `sum', so the initial "does the checksum match?" test is wrong. (2) The loop that is intended to check for a "null block" just checks the first byte of the tar block 512 times, rather than each of the 512 bytes one time (!), which I'm guessing was the intent. It was only through sheer luck that this worked in the first place. Per Coverity static analysis performed by EnterpriseDB.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions