Merge to XFA: Fix a heap buffer overflow issue in CPDF_CMap::GetNextChar
authorJUN FANG <jun_fang@foxitsoftware.com>
Sat, 11 Apr 2015 16:33:23 +0000 (09:33 -0700)
committerJUN FANG <jun_fang@foxitsoftware.com>
Sat, 11 Apr 2015 19:35:13 +0000 (12:35 -0700)
commite26a07588130eeaff120490a266a0a681705f006
tree47aad6ac260d2b04099b6a28e9a2dfce8ed341a2
parent7121cd914a52e1549014e40ac6489e1471480261
Merge to XFA: Fix a heap buffer overflow issue in CPDF_CMap::GetNextChar

Add a check to make sure offset is less than the size of string in the function of GetNextChar().

BUG=471651
R=tsepez@chromium.org

Review URL: https://codereview.chromium.org/1067073003
core/include/fpdfapi/fpdf_resource.h
core/src/fpdfapi/fpdf_font/font_int.h
core/src/fpdfapi/fpdf_font/fpdf_font.cpp
core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp
core/src/fpdfapi/fpdf_page/fpdf_page.cpp
core/src/fpdfapi/fpdf_render/fpdf_render_text.cpp
core/src/fpdftext/fpdf_text.cpp