Commit 89f1cd7
committed
[clang][analyzer] Fix a nullptr dereference when
Fixes llvm#139779.
The bug was introduced in llvm#137355 in `SymbolConjured::getStmt`, when
trying to obtain a statement for a CFG initializer without an
initializer. This commit adds a null check before access.-ftime-trace is used1 parent 7038d50 commit 89f1cd7
File tree
2 files changed
+7
-0
lines changed- clang
- include/clang/StaticAnalyzer/Core/PathSensitive
- test/Analysis
2 files changed
+7
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
106 | 108 | | |
107 | 109 | | |
108 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments