Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/include Pull up revisions 1.12-1.13 (requested by chris...



details:   https://anonhg.NetBSD.org/src/rev/0ca18ab625df
branches:  netbsd-1-4
changeset: 471276:0ca18ab625df
user:      he <he%NetBSD.org@localhost>
date:      Sun Apr 01 16:07:04 2001 +0000

description:
Pull up revisions 1.12-1.13 (requested by christos):
  Fixes buffer overflow problems in glob(3).  Adds and uses GLOB_LIMIT
  to prevent denial of service attacks.

diffstat:

 include/glob.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r d98af937cffa -r 0ca18ab625df include/glob.h
--- a/include/glob.h    Sun Apr 01 15:59:49 2001 +0000
+++ b/include/glob.h    Sun Apr 01 16:07:04 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: glob.h,v 1.11 1998/06/22 12:01:43 tv Exp $     */
+/*     $NetBSD: glob.h,v 1.11.2.1 2001/04/01 16:07:04 he Exp $ */
 
 /*
  * Copyright (c) 1989, 1993
@@ -90,6 +90,7 @@
 #define        GLOB_BRACE      0x0080  /* Expand braces ala csh. */
 #define        GLOB_MAGCHAR    0x0100  /* Pattern had globbing characters. */
 #define        GLOB_NOMAGIC    0x0200  /* GLOB_NOCHECK without magic chars (csh). */
+#define GLOB_LIMIT     0x0400  /* Limit memory used by matches to ARG_MAX */
 #define        GLOB_TILDE      0x0800  /* Expand tilde names from the passwd file. */
 #define        GLOB_QUOTE      0               /* source compatibility */
 



Home | Main Index | Thread Index | Old Index