summaryrefslogtreecommitdiff
path: root/core/fpdfapi/parser
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-08-02 22:24:39 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-08-03 18:22:22 +0000
commitd24030d54c1fc2a2ae20551c5336335fbb8cd9b7 (patch)
treecca145f41e712564733419b67a5c4ba74e759be1 /core/fpdfapi/parser
parent964e56bef136014c9ba47e579993872b95f9782e (diff)
downloadpdfium-d24030d54c1fc2a2ae20551c5336335fbb8cd9b7.tar.xz
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>
Diffstat (limited to 'core/fpdfapi/parser')
-rw-r--r--core/fpdfapi/parser/fpdf_parser_decode.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/core/fpdfapi/parser/fpdf_parser_decode.cpp b/core/fpdfapi/parser/fpdf_parser_decode.cpp
index ddd6b1462d..77024f2f09 100644
--- a/core/fpdfapi/parser/fpdf_parser_decode.cpp
+++ b/core/fpdfapi/parser/fpdf_parser_decode.cpp
@@ -397,8 +397,6 @@ bool PDF_DataDecode(const uint8_t* src_buf,
*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)