From 61a7be0eab8eb63f15a364b605ba4dfbd6025331 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 26 Apr 2026 21:18:37 +0100 Subject: [PATCH] Turn off regular expressions when fuzzing because there are cases that take too much time or memory that cannot be fixed. --- compat.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compat.h b/compat.h index 55fbad48..8d71a9cf 100644 --- a/compat.h +++ b/compat.h @@ -463,6 +463,9 @@ int utf8proc_wctomb(char *, wchar_t); #ifdef NEED_FUZZING /* tmux.c */ #define main __weak main +#define regcomp(preg, pattern, cflags) (0) +#define regexec(preg, string, nmatch, pmatch, eflags) (REG_NOMATCH) +#define regfree(preg) ((void)0) #endif /* getopt.c */