-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ByteArray values over 127 (0x7f) causes OverFlow error #93
Comments
I have the same problem, can fix it?
|
Same problem here. Any news about this? |
Same here, any workaround? |
I was able to work around it by converting the characters to integers between -127 and 126. Like this: [ord(b) if ord(b) <= 127 else ord(b)-256 for b in bstr] The problem is caused because java uses sign bytes as chars. |
I meant from -128 to 127. |
This problem seems still existed. |
I made mistake, the bug has been fiexed. |
When using python to pass a list as a byte array, an OverFlow error will occur if values greater than 127 (0x7f) are passed.
I came across this using my android device.
Below is a simple (not practical) example which can be used to cause this error:
The app crash should occur at the line containing outstream.write([ 0x80 ]) as demonstrated by my trace log:
The text was updated successfully, but these errors were encountered: