wwxxyx / pdfium

Automatically exported from code.google.com/p/pdfium
0 stars 0 forks source link

Out of bounds access in CPDF_SyntaxParser #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. cros chrome-sdk --board link
2. gclient sync
3. ninja -C out_link/Release chrome nacl_helper chrome_sandbox

I consistently get a compiler warning about an offset outside the bounds of a 
constant string.

CXX 
obj/third_party/pdfium/core/src/fpdfapi/fpdf_parser/fpdfapi.fpdf_parser_parser.o
../../third_party/pdfium/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp: 
In member function 'CPDF_Object* 
CPDF_SyntaxParser::GetObject(CPDF_IndirectObjects*, FX_DWORD, FX_DWO
RD, FX_INT32, PARSE_CONTEXT*, FX_BOOL)':
../../third_party/pdfium/core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp:219
3:101: warning: offset outside bounds of constant string [enabled by default]
                     pDict->AddValue(CFX_ByteStringC(((FX_LPCSTR)key) + 1, key.GetLength() - 1), pObj);

Original issue reported on code.google.com by chiran...@chromium.org on 27 Aug 2014 at 11:43

GoogleCodeExporter commented 9 years ago

Original comment by tsepez@chromium.org on 21 Oct 2014 at 6:47