mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-9194: Fix the bounds checking in winreg.c's fixupMultiSZ() (GH-12687)
This commit is contained in:
parent
6ef726af3e
commit
56ed86490c
1 changed files with 1 additions and 1 deletions
|
@ -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++)
|
||||
;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue