Skip site navigation (1) Skip section navigation (2)

Re: pg_restore loops forever past EOF for corrupt custom archive files

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Chad Wagner" <chad(dot)wagner(at)gmail(dot)com>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: pg_restore loops forever past EOF for corrupt custom archive files
Date: 2007-08-05 16:35:41
Message-ID: 22424.1186331741@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
"Chad Wagner" <chad(dot)wagner(at)gmail(dot)com> writes:
> This patch modifies the ReadStr function in pg_backup_archiver.c to validate
> the result of *AH->ReadBufPtr matches the value of l.

If we're trying to defend against premature EOF, this hardly seems like
a sufficient patch.

			regards, tom lane

In response to

Responses

pgsql-patches by date

Next:From: Chad WagnerDate: 2007-08-05 17:18:36
Subject: Re: pg_restore loops forever past EOF for corrupt custom archive files
Previous:From: Chad WagnerDate: 2007-08-05 02:38:31
Subject: pg_restore loops forever past EOF for corrupt custom archive files

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group