Browse Source

Use bigger datatype for index > 255

Stefan Profanter 7 years ago
parent
commit
56bfe1cfed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/fuzz/fuzz_binary_decode.cc

+ 1 - 1
tests/fuzz/fuzz_binary_decode.cc

@@ -21,7 +21,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
 	size_t ptrSize = size;
 
 	// get some random type
-	uint8_t typeIndex = ptr[0];
+	uint16_t typeIndex = ptr[0];
 	ptr++;
 	ptrSize--;