From f4c68640d679c3786c19f3503c76112312636c37 Mon Sep 17 00:00:00 2001 From: "Urabe, Shyouhei" Date: Fri, 26 Apr 2019 17:01:20 +0900 Subject: [PATCH] this variable is not guaranteed aligned No problem for unaligned-ness because we never dereference. --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string.c b/string.c index bee9cd4774..e020cedb36 100644 --- a/string.c +++ b/string.c @@ -495,7 +495,7 @@ search_nonascii(const char *p, const char *e) #define aligned_ptr(value) (uintptr_t *)(value) #endif s = aligned_ptr(p); - t = aligned_ptr(e - (SIZEOF_VOIDP-1)); + t = (uintptr_t *)(e - (SIZEOF_VOIDP-1)); #undef aligned_ptr for (;s < t; s++) { if (*s & NONASCII_MASK) {