aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-06-22 02:12:19 +0000
committerNeil Conway <neilc@samurai.com>2005-06-22 02:12:19 +0000
commit0592a1ebc1f5aa2c91025d1cc631e9c6cccff245 (patch)
tree9c0f9d56a0c91a1bcc8e7eabe00e2f9bfb5d907a /src/backend/access/gist/gist.c
parenta6f0dee7757aa843eb021c051fb2e85b03efc05e (diff)
downloadpostgresql-0592a1ebc1f5aa2c91025d1cc631e9c6cccff245.tar.gz
postgresql-0592a1ebc1f5aa2c91025d1cc631e9c6cccff245.zip
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/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions