From e1a7e8589a8cb4fc8a8052819742bdb0bac91a52 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 10 Aug 2018 16:29:19 +0000 Subject: 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 Commit-Queue: Tom Sepez --- testing/fuzzers/pdf_lzw_fuzzer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testing/fuzzers') 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(dest_buf.size()); if (CFX_GifDecodeStatus::InsufficientDestSize != - decompressor->Decode(const_cast(src_buf), src_size, - dest_buf.data(), &dest_size)) + decompressor->Decode(src_buf, src_size, dest_buf.data(), &dest_size)) { return; + } } } -- cgit v1.2.3