diff options
| author | Jonathan Lemon <jlemon@FreeBSD.org> | 2001-03-16 19:05:20 +0000 |
|---|---|---|
| committer | Jonathan Lemon <jlemon@FreeBSD.org> | 2001-03-16 19:05:20 +0000 |
| commit | daa4742e72c80cf48cf3b9f59c3ad92ddcb500c0 (patch) | |
| tree | e0c2c4c45a9e7f2d8414e65d26108278468a04ac | |
| parent | eb44ab84e0041495c1978e1ef5d197daad19a37b (diff) | |
Notes
| -rw-r--r-- | lib/libc/gen/glob.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libc/gen/glob.c b/lib/libc/gen/glob.c index 48209cccebf4..5ed8be45f365 100644 --- a/lib/libc/gen/glob.c +++ b/lib/libc/gen/glob.c @@ -80,7 +80,13 @@ static char sccsid[] = "@(#)glob.c 8.3 (Berkeley) 10/13/93"; #include "collate.h" -#define MAX_GLOBENTRIES 10000 /* limit number of entries */ +/* + * XXX + * Arbitrarily limit the number of pathnames that glob may + * return, to prevent DoS attacks. This should probably be + * configurable by the user. + */ +#define MAX_GLOBENTRIES 16384 #define DOLLAR '$' #define DOT '.' |
