summaryrefslogtreecommitdiff
path: root/testing/fuzzers
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-10 16:29:19 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-10 16:29:19 +0000
commite1a7e8589a8cb4fc8a8052819742bdb0bac91a52 (patch)
tree712a54e93cf31dd8d3ae79e8934c61659c4b6fbd /testing/fuzzers
parent4174b5ab6ac9024acb9b42acbb61d628a2a679e3 (diff)
downloadpdfium-e1a7e8589a8cb4fc8a8052819742bdb0bac91a52.tar.xz
Remove const_cast<> from CFX_LZWDecompressor::Decode() caller.
Because the argument to Decode() can be const. Part of the ongoing war against const_cast<>. Change-Id: I3a8402277dbfc4fd80b1dd60225de57b732713f8 Reviewed-on: https://pdfium-review.googlesource.com/39832 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'testing/fuzzers')
-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;
+ }
}
}