Kaydet (Commit) dadc3478 authored tarafından Miss Islington (bot)'s avatar Miss Islington (bot) Kaydeden (comit) Ned Deily

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

(cherry picked from commit 56ed8649)
Co-authored-by: 's avatarZackery Spytz <zspytz@gmail.com>
üst fbe2a139
...@@ -520,7 +520,7 @@ fixupMultiSZ(wchar_t **str, wchar_t *data, int len) ...@@ -520,7 +520,7 @@ fixupMultiSZ(wchar_t **str, wchar_t *data, int len)
Q = data + len; Q = data + len;
for (P = data, i = 0; P < Q && *P != '\0'; P++, i++) { for (P = data, i = 0; P < Q && *P != '\0'; P++, i++) {
str[i] = P; str[i] = P;
for(; *P != '\0'; P++) for (; P < Q && *P != '\0'; P++)
; ;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment