| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
on android I had problems with negative-size arrays, this fixes them
|
I think it should throw SizeLimitException rather than faking the length because using wrong length may return broken value silently. |
Sorry, something went wrong.
|
0xc4 is a bin8, which, according to spec stores a byte array whose length is upto (2^8)-1 bytes. Byte is signed, meaning that all values greater than 127 will be negative even when cast to int, so SizeLimitException in case of negative length is incorrect, that;s why I have introduced my change. |
Sorry, something went wrong.
|
Oh, I see. You're right. I miss read the change. |
Sorry, something went wrong.
fix for 0xc4 array length in unpacker
|
I've merged. Thank you for the pull-req! |
Sorry, something went wrong.
|
You are welcome! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
on android I had problems with negative-size arrays, this fixes them