[issue40958] ASAN/UBSAN: heap-buffer-overflow in pegen.c
Pablo Galindo Salgado
report at bugs.python.org
Fri Jun 12 14:50:14 EDT 2020
Pablo Galindo Salgado <pablogsal at gmail.com> added the comment:
> This line is wrong though, since PyUnicode_GET_LENGTH returns the length in code points
Whoops! Thanks for pointing that out. In any case, the patch still shows that the ASAN error goes away by limiting the access to the string so I suppose that we could transform it into a proper patch.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40958>
_______________________________________
More information about the Python-bugs-list
mailing list