all: update for clang-tidy-18

This commit is contained in:
Markus F.X.J. Oberhumer
2024-05-06 05:40:22 +02:00
parent 3e5ba5c064
commit 6fc0a00ac8
10 changed files with 89 additions and 72 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ T *NewArray(upx_uint64_t n) may_throw {
T *array = new T[size_t(n)];
#if !defined(__SANITIZE_MEMORY__)
if (array != nullptr && bytes > 0) {
memset(array, 0xfb, bytes);
memset(array, 0xfb, bytes); // NOLINT(bugprone-multi-level-implicit-pointer-conversion)
(void) VALGRIND_MAKE_MEM_UNDEFINED(array, bytes);
}
#endif