]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[Backport r46602 | neal.norwitz]
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 6 Oct 2006 18:59:10 +0000 (18:59 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 6 Oct 2006 18:59:10 +0000 (18:59 +0000)
commit5e27a6cb0b64eab189b474bd91f23c05cab94cb2
treea4f4bb91967d0bc63310bdc01ee8376993dea8c7
parent08d7a49e81346562bf63fd1b30e57d978c829601
[Backport r46602 | neal.norwitz]

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)
Parser/tokenizer.c