diff options
| author | Balazs Benics <benicsbalazs@gmail.com> | 2024-07-29 14:15:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-29 14:15:02 +0200 |
| commit | 13d39cb6f7b20e596b66f59ebf4dba766451398b (patch) | |
| tree | f43902a01ed726865915218dd4d7bc276b7926ba /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | f7491f53cbef28ecea764a6a47ae69338fb7afbe (diff) | |
[analyzer] Fix crash of StreamChecker when eval calling 'fopen' (#100990)
Actually, on the failure branch of `fopen`, the resulting pointer could
alias with `stdout` iff `stdout` is already known to be null.
We crashed in this case as the implementation assumed that the
state-split for creating the success and failure branches both should be
viable; thus dereferenced both of those states - leading to the crash.
To fix this, let's just only add this no-alias property for the success
path, and that's it :)
Fixes #100901
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
