bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687)

(cherry picked from commit 56ed86490c)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-04-22 10:20:33 -07:00 committed by GitHub
parent 5407aaf18b
commit 7038deed09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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++)
;
}
}