summaryrefslogtreecommitdiff
path: root/core/fxcrt/observable.h
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 /core/fxcrt/observable.h
parent9ef93d0f3f417c09d2c24e9cceaf600eeb8ff44a (diff)
downloadpdfium-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 'core/fxcrt/observable.h')
0 files changed, 0 insertions, 0 deletions