[issue1134] Parsing a simple script eats all of your memory

Amaury Forgeot d'Arc report at bugs.python.org
Wed Nov 14 11:27:22 CET 2007


Amaury Forgeot d'Arc added the comment:

fp_readl is indeed broken in several ways:
- decoding_buffer should be reset to NULL when all data has been read
(buflen <= size).
- the (buflen > size) case will cause an error on the next pass, since
the function cannot handle PyBytesObject.

IOW, the function is always wrong ;-)

I have a correction ready (jafo's patch already addresses the first
case), but cannot access svn here. I will try to provide a patch + test
cases later tonight.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1134>
__________________________________


More information about the Python-bugs-list mailing list