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

Поиск
Список
Период
Сортировка
От Chad Wagner
Тема Re: pg_restore loops forever past EOF for corrupt custom archive files
Дата
Msg-id 81961ff50708051018q9df446bra87ce9b58bcae9ed@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pg_restore loops forever past EOF for corrupt custom archive files  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_restore loops forever past EOF for corrupt custom archive files  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-patches

On 8/5/07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"Chad Wagner" <chad.wagner@gmail.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.

I agree, but it is better than nothing.  If you have some suggestions or other areas of the pg_restore code that I should take a look at then I don't mind doing so.

The patch at least raises awareness to this problem.

В списке pgsql-patches по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_restore loops forever past EOF for corrupt custom archive files
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg_restore loops forever past EOF for corrupt custom archive files