[Java] Flexbuffers - Negative signed object length (#6651)

* retry with correct email

* update JavaTest.java
This commit is contained in:
Samir Ahmed
2021-05-20 11:57:10 -07:00
committed by GitHub
parent fbcb3c4236
commit 54c11932fa
2 changed files with 23 additions and 1 deletions

View File

@@ -655,7 +655,7 @@ public class FlexBuffers {
Sized(ReadBuf buff, int end, int byteWidth) {
super(buff, end, byteWidth);
size = readInt(bb, end - byteWidth, byteWidth);
size = (int) readUInt(bb, end - byteWidth, byteWidth);
}
public int size() {