Patch #1357836:
commitc93683494ac0fba96b9a62700022cba38565c472
authorneal.norwitz <neal.norwitz@6015fed2-1504-0410-9fe1-9d1591cc4771>
Fri, 2 Jun 2006 06:23:00 +0000 (2 06:23 +0000)
committerneal.norwitz <neal.norwitz@6015fed2-1504-0410-9fe1-9d1591cc4771>
Fri, 2 Jun 2006 06:23:00 +0000 (2 06:23 +0000)
tree2633dfc836c0b56729a426c8d25265f2b2e0ce5d
parentcf80b96d61d116b471146030b0644cd85faebaa5
Patch #1357836:

Prevent an invalid memory read from test_coding in case the done flag is set.
In that case, the loop isn't entered.  I wonder if rather than setting
the done flag in the cases before the loop, if they should just exit early.

This code looks like it should be refactored.

Backport candidate (also the early break above if decoding_fgets fails)

git-svn-id: http://svn.python.org/projects/python/trunk@46602 6015fed2-1504-0410-9fe1-9d1591cc4771
Parser/tokenizer.c