[compiler-rt] [compiler-rt]: fix CodeQL format-string warnings via explicit casts (PR #153843)
Amit Kumar Pandey via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 19 01:41:25 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,
----------------
ampandey-1995 wrote:
Casting to ```uintptr_t``` or sanitizer equivalent ```uptr``` dosen't work here because according to the 32 or 64 bit platform the size uintptr_t and uptr will change from ```unsinged int``` to ```unsigned long``` . Will you allow multi casting ```(u32)(uptr)``` like this?
https://github.com/llvm/llvm-project/pull/153843
More information about the llvm-commits
mailing list