pg_restore loops forever past EOF for corrupt custom archive files - Mailing list pgsql-patches

From Chad Wagner
Subject pg_restore loops forever past EOF for corrupt custom archive files
Date
Msg-id 81961ff50708041938h196b2cbeg9f7d8af81befc224@mail.gmail.com
Whole thread Raw
Responses Re: pg_restore loops forever past EOF for corrupt custom archive files
List 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

pgsql-patches by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Repair cosmetic damage (done by pg_indent?)
Next
From: Tom Lane
Date:
Subject: Re: pg_restore loops forever past EOF for corrupt custom archive files