summaryrefslogtreecommitdiff
path: root/testing/libfuzzer/pdf_lzw_fuzzer.cc
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-03-21 17:40:55 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-21 17:40:55 +0000
commitcb009c8652e4f3654d666a64d962d48d4ddc2f65 (patch)
treed5954c1d6a06e94d0708aa06b5a2486226b0e2e7 /testing/libfuzzer/pdf_lzw_fuzzer.cc
parent3851aff62c7ad2f9c942b4d5d095ec0e6610bb84 (diff)
downloadpdfium-cb009c8652e4f3654d666a64d962d48d4ddc2f65.tar.xz
Rename "des_foo" to "dest_foo".
Destination variables usually have "dest" or "dst" as the prefix. Change-Id: If5bb01a5eafe1e4b42d1a6d653abb1b444b1b2fa Reviewed-on: https://pdfium-review.googlesource.com/28970 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'testing/libfuzzer/pdf_lzw_fuzzer.cc')
-rw-r--r--testing/libfuzzer/pdf_lzw_fuzzer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/libfuzzer/pdf_lzw_fuzzer.cc b/testing/libfuzzer/pdf_lzw_fuzzer.cc
index 71c258969d..7e10d2a1ee 100644
--- a/testing/libfuzzer/pdf_lzw_fuzzer.cc
+++ b/testing/libfuzzer/pdf_lzw_fuzzer.cc
@@ -23,13 +23,13 @@ void LZWFuzz(const uint8_t* src_buf,
for (uint32_t compressions_ratio = kMinCompressionRatio;
compressions_ratio <= kMaxCompressionRatio; compressions_ratio++) {
- std::vector<uint8_t> des_buf(compressions_ratio * src_size);
+ std::vector<uint8_t> dest_buf(compressions_ratio * src_size);
// This cast should be safe since the caller is checking for overflow on
// the initial data.
- uint32_t des_size = static_cast<uint32_t>(des_buf.size());
+ 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,
- des_buf.data(), &des_size))
+ dest_buf.data(), &dest_size))
return;
}
}