]> granicus.if.org Git - postgresql/commit
pg_dump: Fix inconsistent sscanf() conversions
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 19 Feb 2016 01:12:38 +0000 (20:12 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 19 Feb 2016 01:12:38 +0000 (20:12 -0500)
commita914a0414232e30943f7b2ffd997d74bd018a7b1
tree3f431ce19d74fb22dc56c99e7e2f85ae1533743b
parent19a541143a09c067ec8cac77ec6a64eb5b1b662b
pg_dump: Fix inconsistent sscanf() conversions

It was using %u to read a string that was earlier produced by snprintf with %d
into a signed integer variable.  This seems to work in practice but is
incorrect.

found by cppcheck
src/bin/pg_dump/pg_backup_custom.c
src/bin/pg_dump/pg_backup_directory.c