Pablo Galindo Salgado <pablog...@gmail.com> added the comment:
commit e858ea15718709bc8ec3c13bd8451ff7d62cbe80 (HEAD -> specialize-load-attr) Author: Mark Shannon <m...@hotpy.org> Date: Wed Jun 9 09:33:13 2021 +0100 Assert that address is in bounds (ASAN thinks it might not be). diff --git a/Python/ceval.c b/Python/ceval.c index 06a02b40f9..784d0244e8 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -3517,6 +3517,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, PyFrameObject *f, int throwflag) DEOPT_IF(!PyModule_CheckExact(owner), LOAD_ATTR); PyDictObject *dict = (PyDictObject *)((PyModuleObject *)owner)->md_dict; DEOPT_IF(dict->ma_keys->dk_version != cache1->dk_version_or_hint, LOAD_ATTR); + assert(cache0->index < dict->ma_keys->dk_nentries); PyDictKeyEntry *ep = DK_ENTRIES(dict->ma_keys) + cache0->index; res = ep->me_value; DEOPT_IF(res == NULL, LOAD_ATTR); ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44363> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com