[compiler-rt] [compiler-rt]: fix CodeQL format-string warnings via explicit casts (PR #153843)

Thurston Dang via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 18 09:35:23 PDT 2025


================
@@ -792,7 +792,7 @@ static void PrintNoOriginTrackingWarning() {
 
 static void PrintNoTaintWarning(const void *address) {
   Decorator d;
-  Printf("  %sDFSan: no tainted value at %x%s\n", d.Warning(), address,
+  Printf("  %sDFSan: no tainted value at %p%s\n", d.Warning(), (void*)address,
----------------
thurstond wrote:

It would be preferable to split this pull request into two parts:
- a truly NFC part i.e., don't change the format specifier for DFSan (cast the pointer to uintptr_t if necessary)
- if still desired, the DFSan change as followup work.

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


More information about the llvm-commits mailing list