diff options
Diffstat (limited to 'testing/fuzzers/pdf_codec_rle_fuzzer.cc')
-rw-r--r-- | testing/fuzzers/pdf_codec_rle_fuzzer.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/testing/fuzzers/pdf_codec_rle_fuzzer.cc b/testing/fuzzers/pdf_codec_rle_fuzzer.cc index adf454ecbd..13c4a48c24 100644 --- a/testing/fuzzers/pdf_codec_rle_fuzzer.cc +++ b/testing/fuzzers/pdf_codec_rle_fuzzer.cc @@ -9,10 +9,9 @@ #include "core/fxcrt/fx_memory.h" extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) { - uint8_t* dest_buf = nullptr; + std::unique_ptr<uint8_t, FxFreeDeleter> dest_buf; uint32_t dest_size = 0; CCodec_BasicModule encoder_module; encoder_module.RunLengthEncode({data, size}, &dest_buf, &dest_size); - FX_Free(dest_buf); return 0; } |