summaryrefslogtreecommitdiff
path: root/fpdfsdk/fxedit/fxet_edit.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-03 18:52:34 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-03 18:52:34 +0000
commit2ff6cd661c0203dcdcc09135bce8bba141037574 (patch)
tree9925a4be9dd49e5d3f05f4476b78163c60386f3f /fpdfsdk/fxedit/fxet_edit.cpp
parent9ef93d0f3f417c09d2c24e9cceaf600eeb8ff44a (diff)
downloadpdfium-chromium/3570.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 'fpdfsdk/fxedit/fxet_edit.cpp')
0 files changed, 0 insertions, 0 deletions