Closed voetsjoeba closed 5 years ago
OK, bug reproduced, I'll take a look into it
The problem comes from the use of bytearray
in JavaByteArray, as it only accepts integers between 0 and 256, whereas Java bytes are signed, between -128 and 127.
Could you test with the latest commit on master ? (commit 91edde8)
Yep, appears to work. Produces an identical output file to 0.2.2 now. EDIT: Although now an existing test case appears to be failing according to the Travis CI output
Yeah, the Travis test is based on the bytearray behaviour, I'll correct it later, before releasing 0.2.4.
This issue seems to be fixed, please reopen it if necessary
Here's an xxd dump of a file that passes a loads/dumps roundtrip in 0.2.2, but fails in 0.2.3:
This is on Python 2.7.5 on a CentOS 6 box. Roundtrip script that I used:
Produces the following error on 0.2.3: