[all-commits] [llvm/llvm-project] 18c84e: [clang][dataflow] Fix nullptr dereferencing error.
Yitzhak Mandelbaum via All-commits
all-commits at lists.llvm.org
Mon Mar 7 19:09:59 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 18c84e2d325fe64f303a13b17addce1c0e6aca23
https://github.com/llvm/llvm-project/commit/18c84e2d325fe64f303a13b17addce1c0e6aca23
Author: Yitzhak Mandelbaum <yitzhakm at google.com>
Date: 2022-03-08 (Tue, 08 Mar 2022)
Changed paths:
M clang/include/clang/Analysis/FlowSensitive/Value.h
M clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp
M clang/unittests/Analysis/FlowSensitive/DataflowEnvironmentTest.cpp
M clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
Log Message:
-----------
[clang][dataflow] Fix nullptr dereferencing error.
When pre-initializing fields in the environment, the code assumed that all
fields of a struct would be initialized. However, given limits on value
construction, that assumption is incorrect. This patch changes the code to drop
that assumption and thereby avoid dereferencing a nullptr.
Differential Revision: https://reviews.llvm.org/D121158
More information about the All-commits
mailing list