Message112833
FWIW, I'm am considering removing this functionality in Py3.3 after the language moratorium ends.
The swap-bodies technique had been included in the original sets.py and the technique is similar to the one list.sort() uses to protect against mutation during sorting. However, the technique is open to exploits like the one in this bug report.
I've retitled this report because the set code itself does not have a race condition. The race is in the provided exploit code which falsely assumes that the set-in-set operation is either atomic or non-mutating, so it doesn't put locks around it as you would with pure python code like that in sets.py. |
|
Date |
User |
Action |
Args |
2010-08-04 16:36:46 | rhettinger | set | recipients:
+ rhettinger, dstanek, stutzbach, flox |
2010-08-04 16:36:46 | rhettinger | set | messageid: <1280939806.11.0.132525107269.issue8757@psf.upfronthosting.co.za> |
2010-08-04 16:36:44 | rhettinger | link | issue8757 messages |
2010-08-04 16:36:44 | rhettinger | create | |
|