Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acfaa59 commit e684ab5Copy full SHA for e684ab5
src/backend/access/transam/xlog.c
@@ -9481,7 +9481,7 @@ do_pg_stop_backup(char *labelfile, bool waitforarchive)
9481
* during the backup.
9482
*/
9483
ptr = strstr(remaining, "BACKUP FROM:");
9484
- if (sscanf(ptr, "BACKUP FROM: %19s\n", backupfrom) != 1)
+ if (!ptr || sscanf(ptr, "BACKUP FROM: %19s\n", backupfrom) != 1)
9485
ereport(ERROR,
9486
(errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
9487
errmsg("invalid data in file \"%s\"", BACKUP_LABEL_FILE)));
0 commit comments