Skip to content

when unpack fix pos & neg, can't check extra bytes directly

François Perrad requested to merge MichoChan:master into master

Created by: MichoChan

for example,

unpack('12') -- output : 49 unpack('1') -- output : 49 unpack('123') -- extra bytes

dump(pack(49)) -- 31

but in fact, unpack('12') should error 'extra bytes' because fix pos & neg have no extra byte as length or flag

Merge request reports

Loading