wwxxyx / pdfium

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

Leak inside CPDF_Parser::LoadCrossRefV5 #161

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Triggered by 2_12_blank.pdf and 
ction_go_to_a_page_view_the_original_file_name_go_to_tections_.pdf:

1,502 (56 direct, 1,446 indirect) bytes in 1 blocks are definitely lost in loss 
record 63 of 63
   at 0x4C2FE0A: operator new(unsigned long) (vg_replace_malloc.c:298)
   by 0x5A6227: CPDF_SyntaxParser::ReadStream(CPDF_Dictionary*, PARSE_CONTEXT*, unsigned int, unsigned int) (fpdf_parser_parser.cpp:2495)
   by 0x5A4FF5: CPDF_SyntaxParser::GetObject(CPDF_IndirectObjects*, unsigned int, unsigned int, PARSE_CONTEXT*, int) (fpdf_parser_parser.cpp:2221)
   by 0x5A201A: CPDF_Parser::ParseIndirectObjectAt(CPDF_IndirectObjects*, long, unsigned int, PARSE_CONTEXT*) (fpdf_parser_parser.cpp:1400)
   by 0x59FCA3: CPDF_Parser::LoadCrossRefV5(long, long&, int) (fpdf_parser_parser.cpp:998)
   by 0x5A308E: CPDF_Parser::LoadLinearizedAllCrossRefV5(long) (fpdf_parser_parser.cpp:1629)
   by 0x5A32F3: CPDF_Parser::LoadLinearizedMainXRefTable() (fpdf_parser_parser.cpp:1670)
   by 0x5AC578: CPDF_DataAvail::CheckLinearizedData(IFX_DownloadHints*) (fpdf_parser_parser.cpp:4348)
   by 0x5AD25C: CPDF_DataAvail::IsFormAvail(IFX_DownloadHints*) (fpdf_parser_parser.cpp:4591)
   by 0x4449C9: FPDFAvail_IsFormAvail (fpdf_dataavail.cpp:157)
   by 0x40A1EF: RenderPdf(std::string const&, char const*, unsigned long, Options const&) (pdfium_test.cc:470)
   by 0x40A92F: main (pdfium_test.cc:613)

Original issue reported on code.google.com by thestig@chromium.org on 15 May 2015 at 9:22