[issue40958] ASAN/UBSAN: heap-buffer-overflow in pegen.c

Pablo Galindo Salgado report at bugs.python.org
Fri Jun 12 09:12:57 EDT 2020


Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:

I theorize that this happens when the error points to the end of the line. I assume that the difference between col_offset and PyUnicode_GET_LENGTH(line) may be still bigger than 1 if the line contains some Unicode stuff like with:

>> "Ṕýţĥòñ" +

but I think that would be the same situation.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40958>
_______________________________________


More information about the Python-bugs-list mailing list