From 8395bb78d0a1c3c79327c7fefac8249f60db6a22 Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 30 Sep 2015 15:27:08 +0200 Subject: [PATCH] Increase size limit of glob structures in sftp --- openssh-5.8p1-glob.patch | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openssh-5.8p1-glob.patch b/openssh-5.8p1-glob.patch index fe8a3d4..5fcd070 100644 --- a/openssh-5.8p1-glob.patch +++ b/openssh-5.8p1-glob.patch @@ -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. */