##// END OF EJS Templates
fuzz: don't allow enormous revlog inputs either...
Augie Fackler -
r41339:afc33a57 default
parent child Browse files
Show More
@@ -31,6 +31,11 for inline in (True, False):
31
31
32 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
32 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
33 {
33 {
34 // Don't allow fuzzer inputs larger than 60k, since we'll just bog
35 // down and not accomplish much.
36 if (Size > 60000) {
37 return 0;
38 }
34 PyObject *text =
39 PyObject *text =
35 PyBytes_FromStringAndSize((const char *)Data, (Py_ssize_t)Size);
40 PyBytes_FromStringAndSize((const char *)Data, (Py_ssize_t)Size);
36 PyObject *locals = PyDict_New();
41 PyObject *locals = PyDict_New();
General Comments 0
You need to be logged in to leave comments. Login now