diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/cPickle.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Modules/cPickle.c b/Modules/cPickle.c index f8a3c1c..54a1151 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c @@ -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) |