Re: Unbounded %s in sscanf

Daniel Gustafsson <daniel@yesql.se>

From: Daniel Gustafsson <daniel@yesql.se>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2021-07-30T15:48:49Z
Lists: pgsql-hackers

Attachments

I took another look at this today, and propose to push the attached.  The
pg_dump fix goes all the way back to 9.6 whereas the pg_basebackup fix is from
11 and onwards.  The adjacent shadowed variable bug in pg_dump is also present
since 9.6.

Thoughts?

--
Daniel Gustafsson		https://vmware.com/

Commits

  1. Fix bug in TOC file error message printing

  2. Fix sscanf limits in pg_basebackup and pg_dump

  3. Fix sscanf limits in pg_dump