bin/51750: ipfw2.c typos

Vasil at sinanica.lg2a.datamax Vasil at sinanica.lg2a.datamax
Sun May 4 08:20:13 PDT 2003


>Number:         51750
>Category:       bin
>Synopsis:       ipfw2.c typos
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 04 08:20:11 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Vasil Dimov
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
DataMax
>Environment:
System: FreeBSD sinanica.lg2a.datamax 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Wed Apr 30 17:25:36 EEST 2003 root at sinanica.lg2a.datamax:/usr/src/sys/i386/compile/SINANICA i386

>Description:
When outputting errors, in some cases ipfw tries to print av instead of *av, which causes 4 (sizeof(char *)) "random" bytes to be printed. Does not crash, because av ends with '\0'.

After this fix, "WARNS?=0" in the Makefile is no longer needed.

>How-To-Repeat:
ipfw add 100 allow ip from any to any proto foo
ipfw add allow proto boo

>Fix:
cd /usr/src/sbin/ipfw
cat /tmp/ipfw2.c.patch |patch
make && make install
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list