DescriptionFix bounds checking in CJS_PublicMethods::MakeRegularDate().
The function is looking ahead N characters at both its "format" and "value"
strings without validating that accesses are in bounds. Add those validations.
There are also duplicate checks in the else-branches which re-test the inverse
of the if-branch. These are removed for simplicity.
I also tidied some stray whitespace in the function while I was at it.
BUG=393831
R=jun_fang@foxitsoftware.com
Committed: https://pdfium.googlesource.com/pdfium/+/5ffacd6
Patch Set 1 #
Total comments: 7
Patch Set 2 : Fix whitespace. #Patch Set 3 : Re-tabify to more closely match conventions used in file. #Patch Set 4 : use == vs <. #Patch Set 5 : Add myself to AUTHORS file. #Messages
Total messages: 8 (0 generated)
|