Author Iman Sharafaldin
Recipients Iman Sharafaldin, christian.heimes, serhiy.storchaka, vstinner
Date 2020-07-12.20:15:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1594584931.29.0.345883922169.issue41208@roundup.psfhosted.org>
In-reply-to
Content
@serhiy.storchaka you name it, you have it. The following code generates a segfault on the Pickle module [it's a crafted datetime object] (Python 3.10.0a0 (heads/master:b40e434, Jul  4 2020), Python 3.6.11 and Python 3.7.2):

import io
import pickle


hex_string = "8004952A000000000000008C086461746574696D65948C086461746574696D65949388430A07B2010100000000000092059452942E"
myb = bytes.fromhex(hex_string)
f = io.BytesIO(myb)
print(f)
data = pickle.load(f)
print(data)
print('We have segfault but we cannot see!')
History
Date User Action Args
2020-07-12 20:15:31Iman Sharafaldinsetrecipients: + Iman Sharafaldin, vstinner, christian.heimes, serhiy.storchaka
2020-07-12 20:15:31Iman Sharafaldinsetmessageid: <1594584931.29.0.345883922169.issue41208@roundup.psfhosted.org>
2020-07-12 20:15:31Iman Sharafaldinlinkissue41208 messages
2020-07-12 20:15:31Iman Sharafaldincreate