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)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
  • Loading branch information
ZackerySpytz authored and miss-islington committed Apr 22, 2019
1 parent 4508bc3 commit c026c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PC/winreg.c
Expand Up @@ -520,7 +520,7 @@ fixupMultiSZ(wchar_t **str, wchar_t *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 c026c8b

Please sign in to comment.