Skip to content

Commit 56ed864

Browse files
ZackerySpytzzooba
authored andcommitted
bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687)
1 parent 6ef726a commit 56ed864

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
@@ -521,7 +521,7 @@ fixupMultiSZ(wchar_t **str, wchar_t *data, int len)
521521
Q = data + len;
522522
for (P = data, i = 0; P < Q && *P != '\0'; P++, i++) {
523523
str[i] = P;
524-
for(; *P != '\0'; P++)
524+
for (; P < Q && *P != '\0'; P++)
525525
;
526526
}
527527
}

0 commit comments

Comments
 (0)