diff --git a/projects/libxml2/libxml2_xml_read_memory_fuzzer.cc b/projects/libxml2/libxml2_xml_read_memory_fuzzer.cc index 6ef325764..db2707b91 100644 --- a/projects/libxml2/libxml2_xml_read_memory_fuzzer.cc +++ b/projects/libxml2/libxml2_xml_read_memory_fuzzer.cc @@ -24,7 +24,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { std::string data_string(reinterpret_cast(data), size); const std::size_t data_hash = std::hash()(data_string); const int max_option_value = std::numeric_limits::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;