llvm-project/clang/lib
Denys Petrov b30521c28a [analyzer] Wrong type cast occurs during pointer dereferencing after type punning
Summary: During pointer dereferencing CastRetrievedVal uses wrong type from the Store after type punning. Namely, the pointer casts to another type and then assigns with a value of one more another type. It produces NonLoc value when Loc is expected.

Differential Revision: https://reviews.llvm.org/D89055

Fixes:
https://bugs.llvm.org/show_bug.cgi?id=37503
https://bugs.llvm.org/show_bug.cgi?id=49007
2021-04-29 01:03:38 +03:00
..
APINotes [clang][APINotes] Fix -Wunused-function warning (NFC) 2021-04-01 09:52:43 +08:00
ARCMigrate [SystemZ][z/OS] Set files in FileRemapper.cpp are text 2021-04-19 07:59:42 -04:00
AST [clang/Basic] Make TargetInfo.h not use DataLayout again 2021-04-27 22:26:10 -04:00
ASTMatchers [ASTMatchers] Add `cxxBaseSpecifier` matcher (non-top-level) 2021-04-09 00:05:36 +01:00
Analysis Thread safety analysis: Simplify intersectAndWarn (NFC) 2021-04-23 23:19:15 +02:00
Basic [clang] Make libBasic not depend on MC 2021-04-28 12:16:22 -04:00
CodeGen [ARM] Neon Polynomial vadd Intrinsic fix 2021-04-28 11:59:40 -07:00
CrossTU [analyzer][CTU] API for CTU macro expansions 2021-02-22 11:12:22 +01:00
DirectoryWatcher Revert "ADT: Migrate users of AlignedCharArrayUnion to std::aligned_union_t, NFC" 2020-12-14 17:04:06 -08:00
Driver [libc++] Support per-target __config_site in per-target runtime build 2021-04-28 14:27:16 -07:00
Edit [Matrix] Implement C-style explicit type conversions for matrix types. 2021-04-10 11:48:41 +01:00
Format [clang-format] Reformat. NFC. 2021-04-27 09:10:58 +02:00
Frontend [clang] Make libBasic not depend on MC 2021-04-28 12:16:22 -04:00
FrontendTool
Headers [X86][AMX] Add description for AMX new interface. 2021-04-27 16:05:11 +08:00
Index [index] Improve macro indexing support 2021-04-06 09:12:14 -07:00
IndexSerialization [index-while-building] Fix build with -DBUILD_SHARED_LIBS=True 2020-08-20 15:12:56 +01:00
Lex [C++2b] Support size_t literals 2021-03-31 13:36:23 +00:00
Parse [clang][parser] Unify rejecting (non) decl stmts with gnu attributes 2021-04-19 12:43:55 +02:00
Rewrite [clang] DeltaTree::AddDelta - fix "initialization is never read" clang-tidy warning. NFCI. 2021-03-02 15:01:34 +00:00
Sema Revert "[Clang] -Wunused-but-set-parameter and -Wunused-but-set-variable" 2021-04-28 12:47:18 -07:00
Serialization [NFC] Fix "not used" warning 2021-04-26 22:09:23 -07:00
StaticAnalyzer [analyzer] Wrong type cast occurs during pointer dereferencing after type punning 2021-04-29 01:03:38 +03:00
Testing
Tooling [AST] Fix DeclarationNameInfo introspection 2021-04-26 18:49:13 +01:00
CMakeLists.txt APINotes: add APINotesYAMLCompiler 2020-11-05 18:55:13 +00:00