DescriptionDon't leave dangling pointer to out-of-scope local in CPDF_StreamContentParser::Parse.
This is just a bit of defensive programming; I'm not sure the situation can
occur in the current code, but the following code is likely to set off a red
flag to anyone who reads it:
CPDF_StreamParser syntax(pData, dwSize);
m_pSyntax = &syntax;
since the extent of the local |syntax| is far less than the pointer member
|m_pSyntax|. NULL it out before syntax goes out of scope.
R=jun_fang@foxitsoftware.com
Committed: https://pdfium.googlesource.com/pdfium/+/35d720aff01c5ea778c16ac1e31c56f68490f10b
Patch Set 1 #Patch Set 2 : untabify #
Total comments: 5
Patch Set 3 : Use C++ technique #Patch Set 4 : Untabify #Patch Set 5 : Use CPDF_ prefix. #
Total comments: 1
Messages
Total messages: 9 (1 generated)
|