Skip to content

Commit

Permalink
bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (pytho…
Browse files Browse the repository at this point in the history
…nGH-12687)

(cherry picked from commit 56ed864)
  • Loading branch information
ZackerySpytz committed Apr 22, 2019
1 parent 44a2c4a commit 3ab55ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PC/_winreg.c
Expand Up @@ -727,7 +727,7 @@ fixupMultiSZ(char **str, char *data, int len)
Q = data + len;
for (P = data, i = 0; P < Q && *P != '\0'; P++, i++) {
str[i] = P;
for(; *P != '\0'; P++)
for (; P < Q && *P != '\0'; P++)
;
}
}
Expand Down

0 comments on commit 3ab55ac

Please sign in to comment.