Serhiy Storchaka added the comment: __setstate__ should check that an index is not negative. All values from 0 to PY_SSIZE_T_MAX are acceptable. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue22939> _______________________________________