diff options
author | dan sinclair <dsinclair@chromium.org> | 2017-03-06 13:35:42 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-06 18:55:09 +0000 |
commit | f6d0146200beec76f3d8676e22562d1acbc83d91 (patch) | |
tree | 7cc00e97ec5c616c5d54471bd0660e9212f950df /samples/image_diff.cc | |
parent | f04b42a9beedb1287977794211d05d92903559db (diff) | |
download | pdfium-chromium/3033.tar.xz |
Check size before writtingchromium/3033
Before writting to the stream buffer make sure that we won't walk off the end
of the allocated size.
In this specific case the dest_size of the buffer is 0, so we're basically just
looping over to free the temp results.
BUG=chromium:697847
Change-Id: I229eea96179692216cb2685facbb7d5379c501c7
Reviewed-on: https://pdfium-review.googlesource.com/2903
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'samples/image_diff.cc')
0 files changed, 0 insertions, 0 deletions