bin/45529: [patch] hexdump(1) core-dumps with certain args

Garrett Cooper yanefbsd at gmail.com
Sat Jun 21 02:40:04 UTC 2008


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

From: "Garrett Cooper" <yanefbsd at gmail.com>
To: bug-followup at FreeBSD.org, drj at pobox.com
Cc:  
Subject: Re: bin/45529: [patch] hexdump(1) core-dumps with certain args
Date: Fri, 20 Jun 2008 19:31:32 -0700

 This set of bugs with hexdump is fixed in 8-CURRENT:
 
 optimus# /devel/hexdump_regr.pl
 hexdump: "%": bad format
 hexdump: "/1": bad format
 hexdump: "/1": bad format
 hexdump: "/1": bad format
 hexdump: "/1": bad format
 hexdump: "2/1": bad format
 optimus# cat /devel/hexdump_regr.pl
 #!/usr/bin/env perl
 
 @args = (
         '%',
         '/1 "%03"',
         '/1 "\%o"',
         '/1 "\t%03o"',
         '/1 "\\%03o"',
         '2/1 ""'
 );
 
 foreach $arg (@args) {
         system("hexdump -e " . $arg);
 }


More information about the freebsd-bugs mailing list