[all-commits] [llvm/llvm-project] cea8ff: [asan] Avoid -Wpointer-bool-conversion warning by ...
Thurston Dang via All-commits
all-commits at lists.llvm.org
Thu Oct 23 16:25:00 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cea8ffa5f3412a58adc5c9c4b0ad0e31869f6e3d
https://github.com/llvm/llvm-project/commit/cea8ffa5f3412a58adc5c9c4b0ad0e31869f6e3d
Author: Thurston Dang <thurston at google.com>
Date: 2025-10-23 (Thu, 23 Oct 2025)
Changed paths:
M compiler-rt/lib/asan/asan_interceptors.cpp
Log Message:
-----------
[asan] Avoid -Wpointer-bool-conversion warning by comparing to nullptr (#164906)
The current code may trigger a compiler warning:
```
address of function 'wcsnlen' will always evaluate to 'true' [-Wpointer-bool-conversion]
```
Fix this by comparing to nullptr. The same fix is applied to strnlen for
future-proofing.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list