Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upByte overflow leading to index-out-of-bounds exception #3
Comments
Open
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider changing these instances of
BytetoInteger:javafuzz/core/src/main/java/dev/fuzzit/javafuzz/core/Corpus.java
Line 322 in 342735a
and eliminating this cast:
javafuzz/core/src/main/java/dev/fuzzit/javafuzz/core/Corpus.java
Line 325 in 342735a
It is easy to overflow a
Byte. Moreover, because aByteis signed, an overflow can result in a negative value and anArrayIndexOutOfBoundsExceptionon this line:javafuzz/core/src/main/java/dev/fuzzit/javafuzz/core/Corpus.java
Line 333 in 342735a
Such was the case with a corpus I was using.