[clang-tools-extra] Add bugprone-undefined-sprintf-overlap (PR #114244)

Julian Schmidt via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 9 16:09:15 PST 2024


================
@@ -0,0 +1,23 @@
+.. title:: clang-tidy - bugprone-undefined-sprintf-overlap
+
+bugprone-undefined-sprintf-overlap
+==================================
+
+Warns if any arguments to the ``sprintf`` family of functions overlap with the
+first argument.
----------------
5chmidti wrote:

The first argument is always the buffer that is written to, calling it that here would make the issue a bit clearer.

https://github.com/llvm/llvm-project/pull/114244


More information about the cfe-commits mailing list