diff options
author | Bruce Momjian | 2014-02-15 16:50:56 +0000 |
---|---|---|
committer | Bruce Momjian | 2014-02-15 16:50:56 +0000 |
commit | 32be1c8e900b89a89ec5e3a064c6b6010869d062 (patch) | |
tree | da21f7ad6a4b5d02aba0033292fd0a07b140485a /src | |
parent | a0d8947acb8b4300cc771b0d5a2f53e4e5148a40 (diff) |
Remove use of sscanf in pg_upgrade, and add C comment to pg_dump
Per report from Jackie Chang
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pg_dump/pg_backup_directory.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/pg_dump/pg_backup_directory.c b/src/bin/pg_dump/pg_backup_directory.c index 71b96bd9180..1bed8a9fea5 100644 --- a/src/bin/pg_dump/pg_backup_directory.c +++ b/src/bin/pg_dump/pg_backup_directory.c @@ -452,6 +452,7 @@ _LoadBlobs(ArchiveHandle *AH, RestoreOptions *ropt) char fname[MAXPGPATH]; char path[MAXPGPATH]; + /* Can't overflow because line and fname are the same length. */ if (sscanf(line, "%u %s\n", &oid, fname) != 2) exit_horribly(modulename, "invalid line in large object TOC file \"%s\": \"%s\"\n", fname, line); |