pgsql: Fix sscanf limits in pg_basebackup and pg_dump

2021-10-19 Thread Daniel Gustafsson
Fix sscanf limits in pg_basebackup and pg_dump Make sure that the string parsing is limited by the size of the destination buffer. In pg_basebackup the available values sent from the server is limited to two characters so there was no risk of overflow. In pg_dump the buffer is bounded by MAXPGPA

pgsql: Fix sscanf limits in pg_basebackup and pg_dump

2021-10-19 Thread Daniel Gustafsson
Fix sscanf limits in pg_basebackup and pg_dump Make sure that the string parsing is limited by the size of the destination buffer. In pg_basebackup the available values sent from the server is limited to two characters so there was no risk of overflow. In pg_dump the buffer is bounded by MAXPGPA

pgsql: Fix sscanf limits in pg_basebackup and pg_dump

2021-10-19 Thread Daniel Gustafsson
Fix sscanf limits in pg_basebackup and pg_dump Make sure that the string parsing is limited by the size of the destination buffer. In pg_basebackup the available values sent from the server is limited to two characters so there was no risk of overflow. In pg_dump the buffer is bounded by MAXPGPA

pgsql: Fix sscanf limits in pg_basebackup and pg_dump

2021-10-19 Thread Daniel Gustafsson
Fix sscanf limits in pg_basebackup and pg_dump Make sure that the string parsing is limited by the size of the destination buffer. In pg_basebackup the available values sent from the server is limited to two characters so there was no risk of overflow. In pg_dump the buffer is bounded by MAXPGPA

pgsql: Fix sscanf limits in pg_basebackup and pg_dump

2021-10-19 Thread Daniel Gustafsson
Fix sscanf limits in pg_basebackup and pg_dump Make sure that the string parsing is limited by the size of the destination buffer. In pg_basebackup the available values sent from the server is limited to two characters so there was no risk of overflow. In pg_dump the buffer is bounded by MAXPGPA