PG Bug reporting form <noreply@postgresql.org> writes:
> I have a reproducible case of segfaulting pg_restore when trying to restore
> from pg_dump of a different version. Specifically at least pg_restore from
> 10 crashes from pg_dump 12.
When I try that I get
pg_restore: [archiver] unsupported version (1.14) in file header
and that test is done first thing in ReadHead(), before the place
you identify. I suspect you are dealing with a corrupt archive
file, not a version mismatch.
regards, tom lane