aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Max Moroz <mmoroz@chromium.org>2017-10-20 20:28:12 -0700
committerGravatar Max Moroz <mmoroz@chromium.org>2017-10-20 20:28:12 -0700
commit1b6cba01b5762f10aff34a3cfddc42b68a6484f4 (patch)
treee72e3022c711f0beaf8a3f30186d53c90c8ff78a
parent63a6cb31b4cee05af85b86433ca08caee972f622 (diff)
[libxml2] Fix compilation error in the fuzz target.
-rw-r--r--projects/libxml2/libxml2_xml_read_memory_fuzzer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/projects/libxml2/libxml2_xml_read_memory_fuzzer.cc b/projects/libxml2/libxml2_xml_read_memory_fuzzer.cc
index 6ef32576..db2707b9 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<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;