Explorar el Código

Use bigger datatype for index > 255

Stefan Profanter hace 7 años
padre
commit
56bfe1cfed
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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--;