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/
v4-0002-Fix-bug-in-TOC-file-error-message-printing.patch
Description: Binary data
v4-0001-Fix-sscanf-limits-in-pg_basebackup-and-pg_dump.patch
Description: Binary data