[Python-checkins] CVS: python/dist/src/Parser parsetok.c,2.23,2.24
Barry Warsaw
python-dev@python.org
Thu, 17 Aug 2000 22:04:11 -0700
Update of /cvsroot/python/python/dist/src/Parser
In directory slayer.i.sourceforge.net:/tmp/cvs-serv32294
Modified Files:
parsetok.c
Log Message:
PyParser_ParseString(): When the err_ret structure is initialized, the
fields token and expected must also be initialized, otherwise the
tests in parsetok() can generate uninitialized memory read errors.
This quiets an Insure warning.
Index: parsetok.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/parsetok.c,v
retrieving revision 2.23
retrieving revision 2.24
diff -C2 -r2.23 -r2.24
*** parsetok.c 2000/07/22 19:20:54 2.23
--- parsetok.c 2000/08/18 05:04:08 2.24
***************
*** 37,40 ****
--- 37,42 ----
err_ret->offset = 0;
err_ret->text = NULL;
+ err_ret->token = -1;
+ err_ret->expected = -1;
if ((tok = PyTokenizer_FromString(s)) == NULL) {