diff options
author | Ziqing Luo <ziqing@udel.edu> | 2023-04-11 15:01:59 -0700 |
---|---|---|
committer | Ziqing Luo <ziqing@udel.edu> | 2023-04-11 15:09:51 -0700 |
commit | 88f7f018e23b24d3c31dd2b4f3cd68481d1739c1 (patch) | |
tree | 625226eea4c85e9959fdb0cdb837229b63698527 /lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp | |
parent | b67b7bb2f73568efac077de189f86e86d9e010d6 (diff) | |
download | llvm-88f7f018e23b24d3c31dd2b4f3cd68481d1739c1.zip llvm-88f7f018e23b24d3c31dd2b4f3cd68481d1739c1.tar.gz llvm-88f7f018e23b24d3c31dd2b4f3cd68481d1739c1.tar.bz2 |
[-Wunsafe-buffer-usage] Match unsafe pointers being casted to bool or participating in pointer subtractions
Add two new unique cases to the Unspecified Pointer Context (UPC),
under which we match unsafe operation patterns:
- A pointer being casted to a boolean value is in a UPC;
- A pointer participating in pointer subtraction is in a UPC.
Reviewed by: NoQ (Artem Dergachev), malavikasamak (Malavika Samak)
Differential revision: https://reviews.llvm.org/D144064
Diffstat (limited to 'lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp')
0 files changed, 0 insertions, 0 deletions