| Index: core/fpdfapi/fpdf_font/fpdf_font_cid.cpp
|
| diff --git a/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp b/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp
|
| index d5fe4dfd92ef582abc1a9452adca739743c5e18e..01a0f6cbdd41c8f7e0d4bdf45f9688376c89d11e 100644
|
| --- a/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp
|
| +++ b/core/fpdfapi/fpdf_font/fpdf_font_cid.cpp
|
| @@ -191,7 +191,9 @@ CIDSet CIDSetFromSizeT(size_t index) {
|
| }
|
|
|
| CFX_ByteStringC CMap_GetString(const CFX_ByteStringC& word) {
|
| - return word.Mid(1, word.GetLength() - 2);
|
| + if (word.GetLength() <= 2)
|
| + return CFX_ByteStringC();
|
| + return CFX_ByteStringC(&word[1], word.GetLength() - 2);
|
| }
|
|
|
| int CompareDWORD(const void* data1, const void* data2) {
|
|
|