Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 1998 11:16:06 +0200 (EET)
From:      Ruslan Ermilov <ru@ucb.crimea.ua>
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   bin/8937: IPFW coredump and dummynet
Message-ID:  <199812020916.LAA25042@relay.ucb.crimea.ua>

next in thread | raw e-mail | index | archive | help

>Number:         8937
>Category:       bin
>Synopsis:       IPFW coredump and dummynet
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec  2 01:30:00 PST 1998
>Last-Modified:
>Originator:     Ruslan Ermilov
>Organization:
United Commercial Bank
>Release:        FreeBSD 2.2.8-STABLE i386
>Environment:

Kernel build with dummynet support

>Description:

- ipfw(8) coredumps
- dummynet(4) commands should be documented in the ipfw(8) usage and manpage

>How-To-Repeat:

Run ``ipfw pipe'' to get a coredump.

>Fix:
	
The following patch will prevent coredumps:

Index: ipfw.c
===================================================================
RCS file: /usr/FreeBSD-CVS/src/sbin/ipfw/ipfw.c,v
retrieving revision 1.34.2.20
diff -u -r1.34.2.20 ipfw.c
--- ipfw.c	1998/10/12 17:29:15	1.34.2.20
+++ ipfw.c	1998/12/02 09:12:25
@@ -1330,6 +1330,9 @@
                 ac-- ;
                 av++ ;
         }
+	if (!ac) {
+		 show_usage("pipe requires arguments");
+	}
         /* allow argument swapping */
         if (ac > 1 && *av[0]>='0' && *av[0]<='9') {
                 char *p = av[0] ;

>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812020916.LAA25042>