OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "core/fpdfapi/page/pageint.h" | 7 #include "core/fpdfapi/page/cpdf_streamparser.h" |
8 | 8 |
9 #include <limits.h> | 9 #include <limits.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 #include <utility> | 12 #include <utility> |
13 | 13 |
14 #include "core/fpdfapi/cpdf_modulemgr.h" | 14 #include "core/fpdfapi/cpdf_modulemgr.h" |
15 #include "core/fpdfapi/page/cpdf_docpagedata.h" | 15 #include "core/fpdfapi/page/cpdf_docpagedata.h" |
16 #include "core/fpdfapi/parser/cpdf_array.h" | 16 #include "core/fpdfapi/parser/cpdf_array.h" |
17 #include "core/fpdfapi/parser/cpdf_boolean.h" | 17 #include "core/fpdfapi/parser/cpdf_boolean.h" |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 | 605 |
606 if (buf.GetLength() > kMaxStringLength) | 606 if (buf.GetLength() > kMaxStringLength) |
607 return CFX_ByteString(buf.GetBuffer(), kMaxStringLength); | 607 return CFX_ByteString(buf.GetBuffer(), kMaxStringLength); |
608 | 608 |
609 return buf.MakeString(); | 609 return buf.MakeString(); |
610 } | 610 } |
611 | 611 |
612 bool CPDF_StreamParser::PositionIsInBounds() const { | 612 bool CPDF_StreamParser::PositionIsInBounds() const { |
613 return m_Pos < m_Size; | 613 return m_Pos < m_Size; |
614 } | 614 } |
OLD | NEW |