From 239be46d4aebbd3fafabb3d2c44f8397ed0b4247 Mon Sep 17 00:00:00 2001 From: Alexis Engelke Date: Sun, 16 Apr 2023 17:53:47 +0200 Subject: [PATCH] format: Fix out-of-bounds reads for strings --- format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.c b/format.c index 27ef820..0ab53cb 100644 --- a/format.c +++ b/format.c @@ -26,7 +26,7 @@ struct FdStr { unsigned sz; }; -#define fd_stre(s) ((struct FdStr) { (s "\0\0\0\0\0\0\0\0\0\0"), sizeof (s)-1 }) +#define fd_stre(s) ((struct FdStr) { (s "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"), sizeof (s)-1 }) static char* fd_strpcat(char* restrict dst, struct FdStr src) {