From 4dde7064e745c855f1fa9503b3ae7f710d1e54b2 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Fri, 27 Aug 2021 22:54:02 +0000 Subject: [PATCH] [compiler-rt][obvious] fix typo, delete paren 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc index 3cc0a28..5ab3186 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc @@ -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; } -- 2.7.4