bin/112126: [patch] netstat(1) segfaults on unusual ICMP statistics

Chris wefa2 at gmx.de
Wed Apr 25 22:30:10 UTC 2007


The following reply was made to PR bin/112126; it has been noted by GNATS.

From: Chris <wefa2 at gmx.de>
To: bug-followup at FreeBSD.org, Maxim Konovalov <maxim at macomnet.ru>
Cc:  
Subject: Re: bin/112126: [patch] netstat(1) segfaults on unusual ICMP statistics
Date: Thu, 26 Apr 2007 00:00:36 +0200

 Hello,
 
 postcriptum - I overlooked one detail of Maxim's patch:
 
  >  +static  const char *icmpnames[ICMP_MAXTYPE + 1] = {
 
 with this he actually avoids the crash in case of an
 out of sync kernel interface (assumed the array gets
 automatically zeroed at allocation time - does it ? )
 
 But this still produces a very funny netstat output
 with just numbers and no labels. I continue to prefer
 my suggestion.
 
 Regards
 
 Christoph Weber-Fahr


More information about the freebsd-bugs mailing list