pg_restore loops forever past EOF for corrupt custom archive files

From: "Chad Wagner" <chad(dot)wagner(at)gmail(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: pg_restore loops forever past EOF for corrupt custom archive files
Date: 2007-08-05 02:38:31
Message-ID: 81961ff50708041938h196b2cbeg9f7d8af81befc224@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

This patch modifies the ReadStr function in pg_backup_archiver.c to validate
the result of *AH->ReadBufPtr matches the value of l. The resulting error
is:

pg_restore: [archiver] expected 410 bytes, only got 275 bytes

Attachment Content-Type Size
pg_restore.diff application/octet-stream 1.1 KB

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2007-08-05 16:35:41 Re: pg_restore loops forever past EOF for corrupt custom archive files
Previous Message Gregory Stark 2007-08-04 22:02:36 Re: Repair cosmetic damage (done by pg_indent?)