]> granicus.if.org Git - python/commit
Patch #1357836:
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 2 Jun 2006 06:23:00 +0000 (06:23 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 2 Jun 2006 06:23:00 +0000 (06:23 +0000)
commitd21a7fffb14117e60525613040acb519c7977b5c
tree0892be1350fe05c9972818cb5ba6fde9d07f05d9
parent752968eaf8648525b05a7036ae640b870643c0c2
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