[compiler-rt][obvious] fix typo, delete paren
authorMichael Jones <michaelrj@google.com>
Fri, 27 Aug 2021 22:54:02 +0000 (22:54 +0000)
committerMichael Jones <michaelrj@google.com>
Fri, 27 Aug 2021 22:55:39 +0000 (22:55 +0000)
I should've deleted a parenthesis on line 4222 in
https://reviews.llvm.org/D108843 and this patch fixes it.

Differential Revision: https://reviews.llvm.org/D108852

compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc

index 3cc0a28..5ab3186 100644 (file)
@@ -4219,7 +4219,7 @@ INTERCEPTOR(char **, backtrace_symbols, void **buffer, int size) {
   if (res && size) {
     COMMON_INTERCEPTOR_WRITE_RANGE(ctx, res, size * sizeof(*res));
     for (int i = 0; i < size; ++i)
-      COMMON_INTERCEPTOR_WRITE_RANGE(ctx, res[i], internal_strlen(res[i])) + 1);
+      COMMON_INTERCEPTOR_WRITE_RANGE(ctx, res[i], internal_strlen(res[i]) + 1);
   }
   return res;
 }