mirror of https://github.com/google/oss-fuzz.git
[libxml2] Fix compilation error in the fuzz target.
This commit is contained in:
parent
63a6cb31b4
commit
1b6cba01b5
|
@ -24,7 +24,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
|
|||
std::string data_string(reinterpret_cast<const char*>(data), size);
|
||||
const std::size_t data_hash = std::hash<std::string>()(data_string);
|
||||
const int max_option_value = std::numeric_limits<int>::max();
|
||||
const int random_option_value = data_hash % max_option_value;
|
||||
int random_option_value = data_hash % max_option_value;
|
||||
|
||||
// Disable XML_PARSE_HUGE to avoid stack overflow.
|
||||
random_option_value &= ~XML_PARSE_HUGE;
|
||||
|
|
Loading…
Reference in New Issue