[Bug sanitizer/80063] gcc/asan.c: PVS-Studio: Incorrect Block Delimitation (CWE-483)

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 20 13:18:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80063

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Please reformat it properly:
#define DEF_SANITIZER_BUILTIN(ENUM, NAME, TYPE, ATTRS) \
  do {                                                              \
    decl = add_builtin_function ("__builtin_" NAME, TYPE, ENUM,     \
                                 BUILT_IN_NORMAL, NAME, NULL_TREE); \
    set_call_expr_flags (decl, ATTRS);                              \
    set_builtin_decl (ENUM, decl, true);                            \
  } while (0);
Ok with that change.


More information about the Gcc-bugs mailing list