pgsql: Fix sscanf limits in pg_dump

2021-10-19 Thread Daniel Gustafsson
Fix sscanf limits in pg_dump Make sure that the string parsing is limited by the size of the destination buffer. The buffer is bounded by MAXPGPATH, and thus the limit must be inserted via preprocessor expansion and the buffer increased by one to account for the terminator. There is no risk of ov

pgsql: Fix sscanf limits in pg_dump

2021-10-19 Thread Daniel Gustafsson
Fix sscanf limits in pg_dump Make sure that the string parsing is limited by the size of the destination buffer. The buffer is bounded by MAXPGPATH, and thus the limit must be inserted via preprocessor expansion and the buffer increased by one to account for the terminator. There is no risk of ov