Turn off regular expressions when fuzzing because there are cases that take too

much time or memory that cannot be fixed.
This commit is contained in:
Nicholas Marriott
2026-04-26 21:18:37 +01:00
parent e4a439aa0c
commit 61a7be0eab

View File

@@ -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 */