[compiler-rt] 93f7743 - Fixing a sanitizer lint problem that was breaking some builds.
via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 25 18:28:32 PDT 2020
Author: Wolfgang
Date: 2020-03-25T18:26:28-07:00
New Revision: 93f7743851b7a01a8c8f54b3753b6e5cd5591e15
URL: https://github.com/llvm/llvm-project/commit/93f7743851b7a01a8c8f54b3753b6e5cd5591e15
DIFF: https://github.com/llvm/llvm-project/commit/93f7743851b7a01a8c8f54b3753b6e5cd5591e15.diff
LOG: Fixing a sanitizer lint problem that was breaking some builds.
Added:
Modified:
compiler-rt/test/tsan/fiber_cleanup.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/tsan/fiber_cleanup.cpp b/compiler-rt/test/tsan/fiber_cleanup.cpp
index a9552d30480b..55503682f28a 100644
--- a/compiler-rt/test/tsan/fiber_cleanup.cpp
+++ b/compiler-rt/test/tsan/fiber_cleanup.cpp
@@ -26,7 +26,7 @@
long count_memory_mappings() {
pid_t my_pid = getpid();
char proc_file_name[128];
- snprintf(proc_file_name, 128, "/proc/%ld/maps", my_pid);
+ snprintf(proc_file_name, sizeof(proc_file_name), "/proc/%ld/maps", my_pid);
FILE *proc_file = fopen(proc_file_name, "r");
long line_count = 0;
More information about the llvm-commits
mailing list