[Python-checkins] CVS: python/dist/src/Modules cPickle.c,2.68,2.69
Tim Peters
tim_one@users.sourceforge.net
Mon, 12 Nov 2001 14:26:12 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv27392/python/Modules
Modified Files:
cPickle.c
Log Message:
load_string(): Force use of unsigned compare in a context that was
clearly (but incorrectly) assuming it.
Index: cPickle.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cPickle.c,v
retrieving revision 2.68
retrieving revision 2.69
diff -C2 -d -r2.68 -r2.69
*** cPickle.c 2001/11/09 10:06:23 2.68
--- cPickle.c 2001/11/12 22:26:10 2.69
***************
*** 2822,2831 ****
if (*p=='\\') nslash++;
else nslash=0;
! }
! if (*p==q)
! {
! for (p++; *p; p++) if (*p > ' ') goto insecure;
! }
! else goto insecure;
/********************************************/
--- 2822,2833 ----
if (*p=='\\') nslash++;
else nslash=0;
! }
! if (*p == q) {
! for (p++; *p; p++)
! if (*(unsigned char *)p > ' ')
! goto insecure;
! }
! else
! goto insecure;
/********************************************/