The check (inside StackHintGeneratorForSymbol::getMessage)
if (!N)
    return getMessageForSymbolNotFound()is moved to the beginning of the function.
|  Differential  D42388  
[analyzer] Protect against dereferencing a null pointer Authored by alexander-shaposhnikov on Jan 22 2018, 11:35 AM. 
Details The check (inside StackHintGeneratorForSymbol::getMessage) if (!N)
    return getMessageForSymbolNotFound()is moved to the beginning of the function. 
Diff Detail 
 Event TimelineComment Actions Neat. I wonder if you've actually found it by running the analyzer :) Did it crash or just made sense to fix, i.e. should there be tests? Comment Actions no, i have not seen any crashes related to this particular case, but i've been working on a fix for a separate issue (a bit more involved) (not far from here) (I will send a diff for review soon)  |