]>
Commit | Line | Data |
---|---|---|
3ba39b6c TL |
1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
2 | From: Thomas Lamprecht <t.lamprecht@proxmox.com> | |
3 | Date: Tue, 10 Jan 2023 08:52:40 +0100 | |
4 | Subject: [PATCH] Revert "fortify: Do not cast to "unsigned char"" | |
826eb0ff FG |
5 | MIME-Version: 1.0 |
6 | Content-Type: text/plain; charset=UTF-8 | |
7 | Content-Transfer-Encoding: 8bit | |
3ba39b6c TL |
8 | |
9 | This reverts commit 106b7a61c488d2022f44e3531ce33461c7c0685f. | |
10 | ||
11 | Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> | |
826eb0ff | 12 | Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> |
fbb25a86 | 13 | Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> |
3ba39b6c TL |
14 | --- |
15 | include/linux/fortify-string.h | 2 +- | |
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | |
17 | ||
18 | diff --git a/include/linux/fortify-string.h b/include/linux/fortify-string.h | |
27616934 | 19 | index 89a6888f2f9e..66e0b60dcabb 100644 |
3ba39b6c TL |
20 | --- a/include/linux/fortify-string.h |
21 | +++ b/include/linux/fortify-string.h | |
22 | @@ -18,7 +18,7 @@ void __write_overflow_field(size_t avail, size_t wanted) __compiletime_warning(" | |
23 | ||
24 | #define __compiletime_strlen(p) \ | |
25 | ({ \ | |
26 | - char *__p = (char *)(p); \ | |
27 | + unsigned char *__p = (unsigned char *)(p); \ | |
28 | size_t __ret = SIZE_MAX; \ | |
fbb25a86 | 29 | const size_t __p_size = __member_size(p); \ |
3ba39b6c | 30 | if (__p_size != SIZE_MAX && \ |