Explorar o código

Use bigger datatype for index > 255

Stefan Profanter %!s(int64=7) %!d(string=hai) anos
pai
achega
56bfe1cfed
Modificáronse 1 ficheiros con 1 adicións e 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--;