diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-07-18 16:10:39 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-19 13:21:00 +0000 |
commit | 23c93ef6e3b9a289cdcece487b314325a21b28ff (patch) | |
tree | 6fed85255a2f7d7e07aa7832aca04145c8862475 /fpdfsdk/fpdfview.cpp | |
parent | d0f1054087094e5c353aead6bc3370635b69b278 (diff) | |
download | pdfium-23c93ef6e3b9a289cdcece487b314325a21b28ff.tar.xz |
Avoid unterminated string segment in cfx_saxreaderhandler.cpp
Use the overloaded << operator, which takes length into account
for StringC types, rather than a raw ptr (which gets promoted into
a std::string resulting in a length call that overflows since
StringCs aren't necessarily nul-terminated).
Bug: 746073
Change-Id: Iffbbff53e12da8741acc7ce54000232cc66d83bc
Reviewed-on: https://pdfium-review.googlesource.com/8150
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfview.cpp')
0 files changed, 0 insertions, 0 deletions