summaryrefslogtreecommitdiff
path: root/compiler-rt/lib/dfsan/dfsan.cpp
diff options
context:
space:
mode:
authorAmit Kumar Pandey <137622562+ampandey-1995@users.noreply.github.com>2025-09-10 22:55:14 +0530
committerGitHub <noreply@github.com>2025-09-10 22:55:14 +0530
commitcd094c3520eb2efbdc645166db9cfbf020199135 (patch)
treefbb931c67a92d725851bf86e94dfb348fd993445 /compiler-rt/lib/dfsan/dfsan.cpp
parentb580829c2b16de0b22716b3f9b9a9b2e79c55af5 (diff)
Revert "[NFC] Fix CodeQL violations in compiler-rt. (#157793)"revert-157793-fix-codeql-errors
This reverts commit b44e6e01f7f778bbb569e07821f5ddfdb90c4d4d.
Diffstat (limited to 'compiler-rt/lib/dfsan/dfsan.cpp')
-rw-r--r--compiler-rt/lib/dfsan/dfsan.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/compiler-rt/lib/dfsan/dfsan.cpp b/compiler-rt/lib/dfsan/dfsan.cpp
index 524422a9f938..d09a9a70fd83 100644
--- a/compiler-rt/lib/dfsan/dfsan.cpp
+++ b/compiler-rt/lib/dfsan/dfsan.cpp
@@ -1128,8 +1128,7 @@ static bool CheckMemoryRangeAvailability(uptr beg, uptr size, bool verbose) {
uptr end = beg + size - 1;
if (!MemoryRangeIsAvailable(beg, end)) {
if (verbose)
- Printf("FATAL: Memory range %p - %p is not available.\n", (void*)beg,
- (void*)end);
+ Printf("FATAL: Memory range %p - %p is not available.\n", beg, end);
return false;
}
}
@@ -1151,8 +1150,8 @@ static bool ProtectMemoryRange(uptr beg, uptr size, const char *name) {
}
if ((uptr)addr != beg) {
uptr end = beg + size - 1;
- Printf("FATAL: Cannot protect memory range %p - %p (%s).\n", (void*)beg,
- (void*)end, name);
+ Printf("FATAL: Cannot protect memory range %p - %p (%s).\n", beg, end,
+ name);
return false;
}
}
@@ -1173,7 +1172,7 @@ static bool InitShadow(bool init_origins, bool dry_run) {
if (!MEM_IS_APP(&__dfsan::dfsan_init)) {
if (!dry_run)
Printf("FATAL: Code %p is out of application range. Non-PIE build?\n",
- (void*)&__dfsan::dfsan_init);
+ (uptr)&__dfsan::dfsan_init);
return false;
}