[issue25678] int() from a buffer reads past the buffer boundaries

Sven Berkvens-Matthijsse report at bugs.python.org
Fri Nov 20 13:18:01 EST 2015


Sven Berkvens-Matthijsse added the comment:

Eryk, could the tests in the path file that you posted regarding int() and float() be incorrect in the sense that buffer(...)[a:b] returns a str() and not another buffer() (and will thus always be NUL terminated and not exhibit the problem, whether or not the C source have been patch)? I think the tests should be using buffer(..., a, b) instead.

May I say that I am very, very impressed by the speed with which this has been picked up? Thank you all for your impressive work!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25678>
_______________________________________


More information about the Python-bugs-list mailing list