mirror of
https://github.com/tmux/tmux.git
synced 2026-05-30 14:16:18 +00:00
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:
3
compat.h
3
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 */
|
||||
|
||||
Reference in New Issue
Block a user