Author serhiy.storchaka
Recipients andrewnester, louielu, serhiy.storchaka
Date 2017-03-04.13:55:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1488635749.96.0.50882350469.issue29649@psf.upfronthosting.co.za>
In-reply-to
Content
Different error messages are needed if original offset < 0. For example packing 4 bytes with offset -2 always fails, not depending of the size of the buffer. Packing into buffer of size 10 with offset -11 always fails, not depending of the size of packed data.

struct.pack_into('<I', bytearray(10), -2, 123)
struct.pack_into('<B', bytearray(10), -11, 123)
History
Date User Action Args
2017-03-04 13:55:50serhiy.storchakasetrecipients: + serhiy.storchaka, andrewnester, louielu
2017-03-04 13:55:49serhiy.storchakasetmessageid: <1488635749.96.0.50882350469.issue29649@psf.upfronthosting.co.za>
2017-03-04 13:55:49serhiy.storchakalinkissue29649 messages
2017-03-04 13:55:49serhiy.storchakacreate