load_string(): Force use of unsigned compare in a context that was
clearly (but incorrectly) assuming it.
This commit is contained in:
parent
f8197d4f9f
commit
bf5ca65c2d
|
@ -2822,11 +2822,13 @@ load_string(Unpicklerobject *self) {
|
|||
if (*p=='\\') nslash++;
|
||||
else nslash=0;
|
||||
}
|
||||
if (*p==q)
|
||||
{
|
||||
for (p++; *p; p++) if (*p > ' ') goto insecure;
|
||||
if (*p == q) {
|
||||
for (p++; *p; p++)
|
||||
if (*(unsigned char *)p > ' ')
|
||||
goto insecure;
|
||||
}
|
||||
else goto insecure;
|
||||
else
|
||||
goto insecure;
|
||||
/********************************************/
|
||||
|
||||
UNLESS (eval_dict)
|
||||
|
|
Loading…
Reference in New Issue