Commit 1b5083b
[Clang] Fix null pointer dereference in VisitUsingEnumDecl (llvm#97910)
This patch addresses static analyzer concern where TSI could be
dereferenced after being assigned a null value from SubstType in
clang::TemplateDeclInstantiator::VisitUsingEnumDecl(clang::UsingEnumDecl
*).
The fix now checks null value of TSI after the call to SubstType and
return nullptr to prevent potential null pointer dereferences when
calling UsingEnumDecl::Create() and ensures safe execution.1 parent 3c7273c commit 1b5083b
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3420 | 3420 | | |
3421 | 3421 | | |
3422 | 3422 | | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
3423 | 3427 | | |
3424 | 3428 | | |
3425 | 3429 | | |
| |||
0 commit comments