From: Zackery Spytz Date: Mon, 22 Apr 2019 17:01:32 +0000 (-0600) Subject: bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687) X-Git-Tag: v3.8.0a4~138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=56ed86490cb8221c874d432461d77702437f63e5;p=thirdparty%2FPython%2Fcpython.git bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687) --- diff --git a/PC/winreg.c b/PC/winreg.c index ae0c292b7172..28b316ae2f4c 100644 --- a/PC/winreg.c +++ b/PC/winreg.c @@ -521,7 +521,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++) ; } }