DescriptionUse unsigned type for iteration to avoid int overflow.
If src_len in PDF_DecodeText is larger than 2^31,
2 * max_chars will overflow and the function will produce
an incorrect result.
BUG=none
R=bo_xu@foxitsoftware.com
Committed: https://pdfium.googlesource.com/pdfium/+/bb2b1e7
Patch Set 1 #Patch Set 2 : make max_chars unsigned too. #Messages
Total messages: 5 (0 generated)
|