On 07.07.15 10:42, Serhiy Storchaka wrote:
On 07.07.15 05:03, raymond.hettinger wrote:
https://hg.python.org/cpython/rev/c9782a9ac031
changeset:   96865:c9782a9ac031
user:        Raymond Hettinger <pyt...@rcn.com>
date:        Mon Jul 06 19:03:01 2015 -0700
summary:
   Tighten-up code in the set iterator to use an entry pointer rather
than indexing.

What if so->table was reallocated during the iteration, but so->used is
left the same? This change looks unsafe to me.

There is crash reproducer.

http://bugs.python.org/issue24581

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to