diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-30 19:15:49 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-30 19:15:49 +0000 |
commit | 678f5418d36f553f4a908e51a3e5e3fcf5c66a16 (patch) | |
tree | 057d5cfaf46fba8c88c4c5eb0c9fa00c699874c0 /core/fpdfapi | |
parent | e70aff80976ebe8b8a7bc24f2ed2115b681c33c2 (diff) | |
download | pdfium-678f5418d36f553f4a908e51a3e5e3fcf5c66a16.tar.xz |
Fix lifetime issue in CCodec_ProgressiveDecoder.
The associated bug is caused by failure to clean up context before
returing at line 740 or so. But cleanups are fragile, so instead
do not move context out of a local until success. This in turn
means passing the local to one helper rather that using the stored
value and confirming this is the only helper method invoked during
the time in which the context is not yet stored.
Bug: 879025
Change-Id: I1acb438edc28f7f4dd8acccc2461fe3a5ea7f5c8
Reviewed-on: https://pdfium-review.googlesource.com/41670
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi')
0 files changed, 0 insertions, 0 deletions