Skip to content

Commit

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

(cherry picked from commit 56ed864)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
  • Loading branch information
2 people authored and ned-deily committed May 2, 2019
1 parent fbe2a13 commit dadc347
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 dadc347

Please sign in to comment.