bin/45529: [patch] hexdump(1) core-dumps with certain args
Garrett Cooper
yanefbsd at gmail.com
Sat Jun 21 22:10:39 UTC 2008
On Sat, Jun 21, 2008 at 1:30 PM, Garrett Cooper <yanegomi at gmail.com> wrote:
> The following reply was made to PR bin/45529; it has been noted by GNATS.
>
> From: "Garrett Cooper" <yanegomi 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: Sat, 21 Jun 2008 13:23:03 -0700
>
> This patch fixes the issue (at least from what I can tell):
> http://yanegomi-fbsd-patches.googlecode.com/files/hexdump_parse_fix_draft1.patch
>
> I also fixed the regression script:
> http://yanegomi-fbsd-patches.googlecode.com/files/hexdump_regr.sh
>
> Cheers,
> -Garrett
>
> Proof:
>
> [gcooper at optimus /devel/ncvs/src/usr.bin/hexdump]$
> /devel/hexdump_regr.sh hexdump
> hexdump -e "%,"
> hexdump: "%,": bad format
> hexdump -e "/1 "%03","
> hexdump: "/1 "%03",": bad format
> hexdump -e "/1 "\%o","
> hexdump: "/1 "\%o",": bad format
> hexdump -e "/1 "\t%03o","
> hexdump: "/1 "\t%03o",": bad format
> hexdump -e "/1 "\\%03o","
> hexdump: "/1 "\\%03o",": bad format
> hexdump -e "2/1 """
> Segmentation fault (core dumped)
> [gcooper at optimus /devel/ncvs/src/usr.bin/hexdump]$
> /devel/hexdump_regr.sh ./hexdump
> ./hexdump -e "%,"
> hexdump: "%,": bad format
> ./hexdump -e "/1 "%03","
> hexdump: "/1 "%03",": bad format
> ./hexdump -e "/1 "\%o","
> hexdump: "/1 "\%o",": bad format
> ./hexdump -e "/1 "\t%03o","
> hexdump: "/1 "\t%03o",": bad format
> ./hexdump -e "/1 "\\%03o","
> hexdump: "/1 "\\%03o",": bad format
> ./hexdump -e "2/1 """
> hexdump: "2/1 """: bad format
Patch doesn't fix everything. Still working on a proper patch.
-Garrett
More information about the freebsd-bugs
mailing list