Explorar o código

Another fuzzing code fix.

Adam Ierymenko %!s(int64=9) %!d(string=hai) anos
pai
achega
ca82715bfa
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      selftest.cpp

+ 1 - 0
selftest.cpp

@@ -817,6 +817,7 @@ static int testOther()
 			char tmp[128];
 			char tmp[128];
 			for(unsigned int x=0;x<128;++x)
 			for(unsigned int x=0;x<128;++x)
 				tmp[x] = (char)(rand() & 0xff);
 				tmp[x] = (char)(rand() & 0xff);
+			tmp[127] = (char)0;
 			char value[8194];
 			char value[8194];
 			*bar += test.get(tmp,value,sizeof(value));
 			*bar += test.get(tmp,value,sizeof(value));
 		}
 		}