This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/80063] gcc/asan.c: PVS-Studio: Incorrect Block Delimitation (CWE-483)
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Mar 2017 13:21:05 +0000
- Subject: [Bug sanitizer/80063] gcc/asan.c: PVS-Studio: Incorrect Block Delimitation (CWE-483)
- Auto-submitted: auto-generated
- References: <bug-80063-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80063
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
As for the warning, we should open an enhancement request, though not sure it
is something for -Wmisleading-indentation. I'd say that we just should warn
whenever a macro defines several statements and the macro is used as a body of
a conditional, so only the first statement from the macro is conditional.