forked from rpms/openssh
Increase size limit of glob structures in sftp
This commit is contained in:
parent
a80c277795
commit
8395bb78d0
@ -12,12 +12,14 @@ diff --git a/openbsd-compat/glob.c b/openbsd-compat/glob.c
|
||||
index 742b4b9..acae399 100644
|
||||
--- a/openbsd-compat/glob.c
|
||||
+++ b/openbsd-compat/glob.c
|
||||
@@ -130,7 +130,7 @@ typedef char Char;
|
||||
@@ -130,8 +130,8 @@ typedef char Char;
|
||||
#define M_CLASS META(':')
|
||||
#define ismeta(c) (((c)&M_QUOTE) != 0)
|
||||
|
||||
#define GLOB_LIMIT_MALLOC 65536
|
||||
-#define GLOB_LIMIT_MALLOC 65536
|
||||
-#define GLOB_LIMIT_STAT 128
|
||||
+#define GLOB_LIMIT_STAT 1024
|
||||
+#define GLOB_LIMIT_MALLOC 65536*64
|
||||
+#define GLOB_LIMIT_STAT 128*64
|
||||
#define GLOB_LIMIT_READDIR 16384
|
||||
|
||||
/* Limit of recursion during matching attempts. */
|
||||
|
Loading…
Reference in New Issue
Block a user