DescriptionFix potential UAF in ConcatInPlace.
If ConcatCopy somehow gets a zero nNewlen, it returns early, without
allocating a new m_Data. ConcatInPlace then frees the old one, leaving
m_Data dangling.
Also be concerned about the multiplication in the widestring version.
So use wmemcpy and let the library cope with it.
R=thestig@chromium.org
Committed: https://pdfium.googlesource.com/pdfium/+/7f3b99a6a78e524613337f42a99b5634c0ad05f8
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fix merge. #Patch Set 3 : Fix lastly issue. #Patch Set 4 : memcpy good enough. #Patch Set 5 : Restore some code, add Test. #Patch Set 6 : Add comment before strange looking test. #
Messages
Total messages: 10 (1 generated)
|