]> git.proxmox.com Git - pve-kernel.git/blob - patches/kernel/0018-Revert-fortify-Do-not-cast-to-unsigned-char.patch
6d7f479117cf1fc99b08eec2199d3c02592789de
[pve-kernel.git] / patches / kernel / 0018-Revert-fortify-Do-not-cast-to-unsigned-char.patch
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""
5
6 This reverts commit 106b7a61c488d2022f44e3531ce33461c7c0685f.
7
8 Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
9 ---
10 include/linux/fortify-string.h | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13 diff --git a/include/linux/fortify-string.h b/include/linux/fortify-string.h
14 index 5001a11258e4..1067a8450826 100644
15 --- a/include/linux/fortify-string.h
16 +++ b/include/linux/fortify-string.h
17 @@ -18,7 +18,7 @@ void __write_overflow_field(size_t avail, size_t wanted) __compiletime_warning("
18
19 #define __compiletime_strlen(p) \
20 ({ \
21 - char *__p = (char *)(p); \
22 + unsigned char *__p = (unsigned char *)(p); \
23 size_t __ret = SIZE_MAX; \
24 size_t __p_size = __member_size(p); \
25 if (__p_size != SIZE_MAX && \