##// END OF EJS Templates
fuzz: restrict manifest input size...
Augie Fackler -
r41341:44cd432a default
parent child Browse files
Show More
@@ -39,6 +39,11 b' except Exception as e:'
39
39
40 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
40 int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
41 {
41 {
42 // Don't allow fuzzer inputs larger than 100k, since we'll just bog
43 // down and not accomplish much.
44 if (Size > 100000) {
45 return 0;
46 }
42 PyObject *mtext =
47 PyObject *mtext =
43 PyBytes_FromStringAndSize((const char *)Data, (Py_ssize_t)Size);
48 PyBytes_FromStringAndSize((const char *)Data, (Py_ssize_t)Size);
44 PyObject *locals = PyDict_New();
49 PyObject *locals = PyDict_New();
General Comments 0
You need to be logged in to leave comments. Login now