summaryrefslogtreecommitdiff
path: root/java/com
diff options
context:
space:
mode:
authorSamir Ahmed <samirahmed2013@gmail.com>2021-05-20 11:57:10 -0700
committerGitHub <noreply@github.com>2021-05-20 11:57:10 -0700
commit54c11932fa01c618d89d2325c3dd7bf3c106634c (patch)
treeb8e72b6aaaaaa3f86f7595d124a93d86b6f900fe /java/com
parentfbcb3c4236c61db3622ebe8b5a550925720ec8f6 (diff)
downloadflatbuffers-54c11932fa01c618d89d2325c3dd7bf3c106634c.tar.gz
flatbuffers-54c11932fa01c618d89d2325c3dd7bf3c106634c.tar.bz2
flatbuffers-54c11932fa01c618d89d2325c3dd7bf3c106634c.zip
[Java] Flexbuffers - Negative signed object length (#6651)
* retry with correct email * update JavaTest.java
Diffstat (limited to 'java/com')
-rw-r--r--java/com/google/flatbuffers/FlexBuffers.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/google/flatbuffers/FlexBuffers.java b/java/com/google/flatbuffers/FlexBuffers.java
index 8263f9a0..b8f879b6 100644
--- a/java/com/google/flatbuffers/FlexBuffers.java
+++ b/java/com/google/flatbuffers/FlexBuffers.java
@@ -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() {