Commit 84efbaec authored by Zackery Spytz's avatar Zackery Spytz Committed by Miss Islington (bot)

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



(cherry picked from commit 56ed8649)



https://bugs.python.org/issue9194
parent 44a2c4aa
......@@ -727,7 +727,7 @@ fixupMultiSZ(char **str, char *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++)
;
}
}
......
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