Blame openssh-5.8p1-glob.patch
|
Jan F |
71d3d9 |
diff -up openssh-5.8p1/sftp-glob.c.glob openssh-5.8p1/sftp-glob.c
|
|
Jan F |
71d3d9 |
--- openssh-5.8p1/sftp-glob.c.glob 2011-03-07 20:17:34.000000000 +0100
|
|
Jan F |
71d3d9 |
+++ openssh-5.8p1/sftp-glob.c 2011-03-07 20:18:47.000000000 +0100
|
|
Jan F |
71d3d9 |
@@ -145,5 +145,5 @@ remote_glob(struct sftp_conn *conn, cons
|
|
Jan F |
71d3d9 |
memset(&cur, 0, sizeof(cur));
|
|
Jan F |
71d3d9 |
cur.conn = conn;
|
|
Jan F |
71d3d9 |
|
|
Jan F |
71d3d9 |
- return(glob(pattern, flags | GLOB_ALTDIRFUNC, errfunc, pglob));
|
|
Jan F |
71d3d9 |
+ return(glob(pattern, flags | GLOB_LIMIT | GLOB_ALTDIRFUNC, errfunc, pglob));
|
|
Jan F |
71d3d9 |
}
|
|
Jakub Jelen |
21bee6 |
diff --git a/openbsd-compat/glob.c b/openbsd-compat/glob.c
|
|
Jakub Jelen |
21bee6 |
index 742b4b9..acae399 100644
|
|
Jakub Jelen |
21bee6 |
--- a/openbsd-compat/glob.c
|
|
Jakub Jelen |
21bee6 |
+++ b/openbsd-compat/glob.c
|
|
Jakub Jelen |
8395bb |
@@ -130,8 +130,8 @@ typedef char Char;
|
|
Jakub Jelen |
8395bb |
#define M_CLASS META(':')
|
|
Jakub Jelen |
21bee6 |
#define ismeta(c) (((c)&M_QUOTE) != 0)
|
|
Jakub Jelen |
21bee6 |
|
|
Jakub Jelen |
8395bb |
-#define GLOB_LIMIT_MALLOC 65536
|
|
Jakub Jelen |
21bee6 |
-#define GLOB_LIMIT_STAT 128
|
|
Jakub Jelen |
8395bb |
+#define GLOB_LIMIT_MALLOC 65536*64
|
|
Jakub Jelen |
8395bb |
+#define GLOB_LIMIT_STAT 128*64
|
|
Jakub Jelen |
21bee6 |
#define GLOB_LIMIT_READDIR 16384
|
|
Jakub Jelen |
21bee6 |
|
|
Jakub Jelen |
21bee6 |
/* Limit of recursion during matching attempts. */
|
|
Jakub Jelen |
21bee6 |
|