This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: segfault/assert in tokenizer
Type: Stage:
Components: Unicode Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: loewis Nosy List: doerwalter, glchapman, loewis
Priority: normal Keywords:

Created on 2004-12-21 22:02 by doerwalter, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
fail.py doerwalter, 2004-12-21 22:02
evilascii.py doerwalter, 2004-12-21 22:02
Messages (3)
msg23790 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2004-12-21 22:02
The attached script fail.py (with the attached codec 
evilascii.py) leads to a segfault in both Python 2.3 and 
2.4. With a debug build I get:

python: Parser/tokenizer.c:367: fp_readl: Assertion 
`strlen(str) < (size_t)size' failed.
Aborted

Assigning to Martin, because this seems to be PEP 263 
related.
msg23791 - (view) Author: Greg Chapman (glchapman) Date: 2005-01-13 15:47
Logged In: YES 
user_id=86307

I just posted a patch for this here:

www.python.org/sf/1101726

I'd appreciate any comments/corrections.
msg23792 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2005-07-12 22:00
Logged In: YES 
user_id=89016

OK, patch www.python.org/sf/1101726 has been applied.
History
Date User Action Args
2022-04-11 14:56:08adminsetgithub: 41354
2004-12-21 22:02:08doerwaltercreate