[all-commits] [llvm/llvm-project] 068d76: [analyzer] Fix crash when casting the result of a ...
Balazs Benics via All-commits
all-commits at lists.llvm.org
Wed Oct 9 02:40:18 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 068d76b48093ccf8b55c4af6a6ccacfc1ce0ae53
https://github.com/llvm/llvm-project/commit/068d76b48093ccf8b55c4af6a6ccacfc1ce0ae53
Author: Balazs Benics <benicsbalazs at gmail.com>
Date: 2024-10-09 (Wed, 09 Oct 2024)
Changed paths:
M clang/lib/StaticAnalyzer/Core/SValBuilder.cpp
M clang/test/Analysis/range_casts.c
Log Message:
-----------
[analyzer] Fix crash when casting the result of a malformed fptr call (#111390)
Ideally, we wouldn't workaround our current cast-modeling, but the
experimental "support-symbolic-integer-casts" is not finished so we need
to live with our current modeling.
Ideally, we could probably bind `UndefinedVal` as the result of the call
even without evaluating the call, as the result types mismatch between
the static type of the `CallExpr` and the actually function that happens
to be called.
Nevertheless, let's not crash.
https://compiler-explorer.com/z/WvcqK6MbY
CPP-5768
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list