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 16:33:23 +0000 (09:33 -0700)
commitf265ee5a5f0e96d1a91111f4f27eb2f1edd8835a
tree61752f617913671b60e9c0cfb2f6c21fb652fc26
parent9c7b0940569ee5eb1794e8db4e47ecaf3a64315d
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