[all-commits] [llvm/llvm-project] 0cb290: [NFC][clang] Fix static analyzer concerns
Mariya Podchishchaeva via All-commits
all-commits at lists.llvm.org
Mon Jul 24 05:38:13 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0cb2906cdfb3480382828890e9ac4c076c17f3fa
https://github.com/llvm/llvm-project/commit/0cb2906cdfb3480382828890e9ac4c076c17f3fa
Author: Podchishchaeva, Mariya <mariya.podchishchaeva at intel.com>
Date: 2023-07-24 (Mon, 24 Jul 2023)
Changed paths:
M clang/lib/Frontend/HeaderIncludeGen.cpp
Log Message:
-----------
[NFC][clang] Fix static analyzer concerns
HeaderIncludesCallback and HeaderIncludesJSONCallback classes may own
resources and free them in the destructor. However they don't have copy
user-written constructors/assignment operators, so an attempt to copy a
HeaderIncludesCallback object will use compiler-generated copy
constructor which will only do dummy copy and afterwards there will be
use-after-free issues.
Reviewed By: aaron.ballman, tahonermann
Differential Revision: https://reviews.llvm.org/D155842
More information about the All-commits
mailing list