Merge to XFA: Fix an endless loop in CJBig2_HuffmanTable::parseFromCodedBuffer
authorJUN FANG <jun_fang@foxitsoftware.com>
Thu, 21 May 2015 16:56:11 +0000 (09:56 -0700)
committerJUN FANG <jun_fang@foxitsoftware.com>
Thu, 21 May 2015 17:08:26 +0000 (10:08 -0700)
commit620fdf04c2a4b62f100780987ef3469fb6859db0
tree45484ac4a15b956d4ae159c30e9573077c5b3032
parent24d24506f7e5f185a8f6577f7ccd59dbbad3eed5
Merge to XFA: Fix an endless loop in CJBig2_HuffmanTable::parseFromCodedBuffer

This issue is trigged by the conversion from unsigned int to signed int.
A large unsigned int is converted to int. It's represented as a negative
int which is used in the condition of while later.

BUG=482639
R=brucedawson@chromium.org

Review URL: https://codereview.chromium.org/1146913003
core/src/fxcodec/jbig2/JBig2_HuffmanTable.cpp