Issue 162366
Summary Clang: sizeof-pointer-memaccess diagnostic missed
Labels clang
Assignees
Reporter jstengleingithub
    https://godbolt.org/z/sfro4e8Wr

Gcc 16 catches multiple issues here whereas clang -Weverything doesn't report anything.  There is already an [issue ](
https://github.com/llvm/llvm-project/issues/64871
)opened for the format-truncation warning.  This issue is opened to track that clang missed the sizeof-pointer-memaccess issue:

warning: argument to 'sizeof' in 'snprintf' call is the same _expression_ as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to