diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-10-03 18:52:34 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-03 18:52:34 +0000 |
commit | 2ff6cd661c0203dcdcc09135bce8bba141037574 (patch) | |
tree | 9925a4be9dd49e5d3f05f4476b78163c60386f3f /xfa/README.md | |
parent | 9ef93d0f3f417c09d2c24e9cceaf600eeb8ff44a (diff) | |
download | pdfium-2ff6cd661c0203dcdcc09135bce8bba141037574.tar.xz |
Make CCodec_ProgressiveDecoder::ReadMoreData() slightly sanerchromium/3570
- Fix buffer leak if TryRealloc fails.
- Make m_SrcSize always represent the usable bytes in the buffer, even
when read the last partial block from the file.
- Remove redundant comparisons and use std::min().
- Better naming.
Change-Id: Ie7dd79bac21b2f2422f299563a2dd28ed358e3e2
Reviewed-on: https://pdfium-review.googlesource.com/42130
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'xfa/README.md')
0 files changed, 0 insertions, 0 deletions