[Bug analyzer/105948] New: RFE: analyzer could check c++ placement-new sizes
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jun 13 13:52:53 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105948
Bug ID: 105948
Summary: RFE: analyzer could check c++ placement-new sizes
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: analyzer
Assignee: dmalcolm at gcc dot gnu.org
Reporter: dmalcolm at gcc dot gnu.org
Blocks: 97110, 105887
Target Milestone: ---
clang's static analyzer has:
https://clang.llvm.org/docs/analyzer/checkers.html#cplusplus-placementnewchecker-c
We should check that placement new's memory region is large enough (for both
static and dynamic allocation cases).
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97110
[Bug 97110] [meta-bug] tracker bug for supporting C++ in -fanalyzer
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105887
[Bug 105887] [meta-bug] clang analyzer warnings that GCC's -fanalyzer could
implement
More information about the Gcc-bugs
mailing list