Serhiy Storchaka added the comment: It should be self->string_size, not PyBytes_GET_SIZE(self->buf).
Thank you for your report and your patch John. Here is revised patch with tests based on Martin's test. Larry, perhaps this bug is grave enough to be fixed in RC3. ---------- components: +Extension Modules, IO stage: -> patch review Added file: http://bugs.python.org/file40330/scan_eol_Buffer_Over-read_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24989> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com