Commit bf5ca65c authored by Tim Peters's avatar Tim Peters

load_string(): Force use of unsigned compare in a context that was

clearly (but incorrectly) assuming it.
parent f8197d4f
......@@ -2821,12 +2821,14 @@ load_string(Unpicklerobject *self) {
if (*p==q && nslash%2==0) break;
if (*p=='\\') nslash++;
else nslash=0;
}
if (*p==q)
{
for (p++; *p; p++) if (*p > ' ') goto insecure;
}
else goto insecure;
}
if (*p == q) {
for (p++; *p; p++)
if (*(unsigned char *)p > ' ')
goto insecure;
}
else
goto insecure;
/********************************************/
UNLESS (eval_dict)
......
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