commit | d24030d54c1fc2a2ae20551c5336335fbb8cd9b7 | [log] [tgz] |
---|---|---|
author | Lei Zhang <thestig@chromium.org> | Wed Aug 02 22:24:39 2017 -0700 |
committer | Chromium commit bot <commit-bot@chromium.org> | Thu Aug 03 18:22:22 2017 +0000 |
tree | cca145f41e712564733419b67a5c4ba74e759be1 | |
parent | 964e56bef136014c9ba47e579993872b95f9782e [diff] |
Do not truncate the filter array in PDF_DataDecode(). It is not needed to fix https://crbug.com/552046 and it causes different bug. BUG=chromium:750993 Change-Id: I11627045bd3e73fb439884c3362ab1c26eb95fe3 Reviewed-on: https://pdfium-review.googlesource.com/9990 Reviewed-by: Oliver Chang <ochang@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
diff --git a/core/fpdfapi/parser/fpdf_parser_decode.cpp b/core/fpdfapi/parser/fpdf_parser_decode.cpp index ddd6b14..77024f2 100644 --- a/core/fpdfapi/parser/fpdf_parser_decode.cpp +++ b/core/fpdfapi/parser/fpdf_parser_decode.cpp
@@ -397,8 +397,6 @@ *pImageParms = pParam; *dest_buf = last_buf; *dest_size = last_size; - if (CPDF_Array* pDecoders = pDecoder->AsArray()) - pDecoders->Truncate(i + 1); return true; } if (last_buf != src_buf)