[Bug sanitizer/80063] gcc/asan.c: PVS-Studio: Incorrect Block Delimitation (CWE-483)
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Mar 16 20:56:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80063
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-03-16
CC| |mpolacek at gcc dot gnu.org,
| |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
This does look wrong. Macros shouldn't expand to multiple statements. The
conditional was introduced in r218084, the macro itself in r194103. I CC the
author of the former.
More information about the Gcc-bugs
mailing list