diff options
author | Artem Strygin <art-snake@yandex-team.ru> | 2018-07-11 16:25:14 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-11 16:25:14 +0000 |
commit | 7c694a4632dc3b11e26d66a44e598a211913d02a (patch) | |
tree | 3258d86c9df382d7974b4f7e8dea2c14a6c4294b /BUILD.gn | |
parent | e7e454da8e382513b9e271bb3e0be3bd901bfbd9 (diff) | |
download | pdfium-7c694a4632dc3b11e26d66a44e598a211913d02a.tar.xz |
Fix crash and memory leak.
Do not return size within CPDF_StreamAcc in case when read
data failed.
Also free buffers in this case.
Bug: chromium:860210
Change-Id: Ifb2a061d7c8427409b68c33f213c5c55343fb946
Reviewed-on: https://pdfium-review.googlesource.com/37310
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Art Snake <art-snake@yandex-team.ru>
Diffstat (limited to 'BUILD.gn')
-rw-r--r-- | BUILD.gn | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2875,6 +2875,7 @@ test("pdfium_unittests") { "core/fpdfapi/parser/cpdf_parser_unittest.cpp", "core/fpdfapi/parser/cpdf_read_validator_unittest.cpp", "core/fpdfapi/parser/cpdf_simple_parser_unittest.cpp", + "core/fpdfapi/parser/cpdf_stream_acc_unittest.cpp", "core/fpdfapi/parser/cpdf_syntax_parser_unittest.cpp", "core/fpdfapi/parser/fpdf_parser_decode_unittest.cpp", "core/fpdfapi/parser/fpdf_parser_utility_unittest.cpp", |