Message172867
JSON encoding crash if the source list resized in process of encoding. This can be happen unintentionally in multithreaded code.
Simple crash code:
import json
a = [object()] * 10
def crasher(obj):
del a[-1]
json.dumps(a, default=crasher) |
|
Date |
User |
Action |
Args |
2012-10-14 09:56:18 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, bob.ippolito, pitrou, ezio.melotti |
2012-10-14 09:56:18 | serhiy.storchaka | set | messageid: <1350208578.8.0.440875886805.issue16228@psf.upfronthosting.co.za> |
2012-10-14 09:56:18 | serhiy.storchaka | link | issue16228 messages |
2012-10-14 09:56:18 | serhiy.storchaka | create | |
|