Skip to content

Commit dadc347

Browse files
miss-islingtonZackerySpytz
authored andcommitted
bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687) (GH-12910)
(cherry picked from commit 56ed864) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
1 parent fbe2a13 commit dadc347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PC/winreg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ fixupMultiSZ(wchar_t **str, wchar_t *data, int len)
520520
Q = data + len;
521521
for (P = data, i = 0; P < Q && *P != '\0'; P++, i++) {
522522
str[i] = P;
523-
for(; *P != '\0'; P++)
523+
for (; P < Q && *P != '\0'; P++)
524524
;
525525
}
526526
}

0 commit comments

Comments
 (0)