mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
match: Limit recursion to 16
This is more than enough as it reflects to 16 asterisks in the match string is more than enough. With larger values oss-fuzz was generating long match strings with asterisks interleaved with normal characters, which were timing out. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
|
||||
#include "libssh/priv.h"
|
||||
|
||||
#define MAX_MATCH_RECURSION 32
|
||||
#define MAX_MATCH_RECURSION 16
|
||||
|
||||
/*
|
||||
* Returns true if the given string matches the pattern (which may contain ?
|
||||
|
||||
Reference in New Issue
Block a user