diff options
author | Amit Kumar Pandey <137622562+ampandey-1995@users.noreply.github.com> | 2025-08-22 11:51:13 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-22 11:51:13 +0530 |
commit | d3d5751a39452327690b4e011a23de8327f02e86 (patch) | |
tree | ff16f65e915db1e447101361796fb89b097cf494 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | 595148ab7680cf579bcbe405c5a49dcb791d46ab (diff) | |
download | llvm-d3d5751a39452327690b4e011a23de8327f02e86.zip llvm-d3d5751a39452327690b4e011a23de8327f02e86.tar.gz llvm-d3d5751a39452327690b4e011a23de8327f02e86.tar.bz2 |
[compiler-rt]: fix CodeQL format-string warnings via explicit casts (#153843)
This change addresses CodeQL format-string warnings across multiple
sanitizer libraries by adding explicit casts to ensure that printf-style
format specifiers match the actual argument types.
Key updates:
- Cast pointer arguments to (void*) when used with %p.
- Use appropriate integer types and specifiers (e.g., size_t -> %zu,
ssize_t -> %zd) to avoid mismatches.
- Fix format specifier mismatches across xray, memprof, lsan, hwasan,
dfsan.
These changes are no-ops at runtime but improve type safety, silence
static analysis warnings, and reduce the risk of UB in variadic calls.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions