summaryrefslogtreecommitdiff
path: root/testing/fuzzers/pdf_lzw_fuzzer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fuzzers/pdf_lzw_fuzzer.cc')
-rw-r--r--testing/fuzzers/pdf_lzw_fuzzer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/fuzzers/pdf_lzw_fuzzer.cc b/testing/fuzzers/pdf_lzw_fuzzer.cc
index 7e10d2a1ee..e4d993e821 100644
--- a/testing/fuzzers/pdf_lzw_fuzzer.cc
+++ b/testing/fuzzers/pdf_lzw_fuzzer.cc
@@ -28,9 +28,9 @@ void LZWFuzz(const uint8_t* src_buf,
// the initial data.
uint32_t dest_size = static_cast<uint32_t>(dest_buf.size());
if (CFX_GifDecodeStatus::InsufficientDestSize !=
- decompressor->Decode(const_cast<uint8_t*>(src_buf), src_size,
- dest_buf.data(), &dest_size))
+ decompressor->Decode(src_buf, src_size, dest_buf.data(), &dest_size)) {
return;
+ }
}
}