[compiler-rt] try (PR #128451)

via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 23 17:39:53 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Vitaly Buka (vitalybuka)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/128451.diff


1 Files Affected:

- (modified) compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc (+6-2) 


``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
index 24e5dc0fb22f5..fae382bfb4ae8 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors_format.inc
@@ -324,8 +324,12 @@ static void scanf_common(void *ctx, int n_inputs, bool allowGnuMalloc,
       continue;
     int size = scanf_get_value_size(&dir);
     if (size == FSS_INVALID) {
-      Report("%s: WARNING: unexpected format specifier in scanf interceptor: %.*s\n",
-             SanitizerToolName, static_cast<int>(dir.end - dir.begin), dir.begin);
+      for (int i = 0; i < 10; ++i)
+        Report(
+            "%s: WARNING: unexpected format specifier in scanf interceptor: "
+            "%.*s\n",
+            SanitizerToolName, static_cast<int>(dir.end - dir.begin),
+            dir.begin);
       break;
     }
     void *argp = va_arg(aq, void *);

``````````

</details>


https://github.com/llvm/llvm-project/pull/128451


More information about the llvm-commits mailing list