diff options
author | dan sinclair <dsinclair@chromium.org> | 2017-04-04 23:17:08 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-04-05 03:28:24 +0000 |
commit | 0fbb50c2419ee95a95f29a4e757ba2408a4bc6b0 (patch) | |
tree | de5c725eb4d5ef8fe0061eb97534ee9fbb8c65f1 /core/fpdfapi | |
parent | abf16c0682a545db4e9bae5510dd398a6ae634a3 (diff) | |
download | pdfium-0fbb50c2419ee95a95f29a4e757ba2408a4bc6b0.tar.xz |
Fix assignment to len.
Sigh, messed up std::min conversion.
TBR=npm@chromium.org
Bug: pdfium:697
Change-Id: I0091f178b08fa537ebc3962d9349eb46d0aa8a80
Reviewed-on: https://pdfium-review.googlesource.com/3751
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi')
-rw-r--r-- | core/fpdfapi/parser/cpdf_syntax_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_syntax_parser.cpp b/core/fpdfapi/parser/cpdf_syntax_parser.cpp index 6ffd641aa8..73bf56d206 100644 --- a/core/fpdfapi/parser/cpdf_syntax_parser.cpp +++ b/core/fpdfapi/parser/cpdf_syntax_parser.cpp @@ -726,7 +726,7 @@ std::unique_ptr<CPDF_Stream> CPDF_SyntaxParser::ReadStream( } // Read up to the end of the buffer. - std::min(len, m_FileLen - m_Pos - m_HeaderOffset); + len = std::min(len, m_FileLen - m_Pos - m_HeaderOffset); if (len <= 0) return nullptr; |