Date: Wed, 20 Oct 2010 03:43:27 GMT From: Marcus Reid <marcus@blazingdot.com> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/151592: 'fold' segfaults on argument processing Message-ID: <201010200343.o9K3hR0P035875@www.freebsd.org> Resent-Message-ID: <201010200350.o9K3o9o2090471@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 151592 >Category: misc >Synopsis: 'fold' segfaults on argument processing >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: Wed Oct 20 03:50:08 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Marcus Reid >Release: 8.1-STABLE >Organization: >Environment: FreeBSD austin.sea.netifice.com 8.1-STABLE FreeBSD 8.1-STABLE #0: Mon Sep 20 23:53:47 PDT 2010 root@austin.sea.netifice.com:/usr/obj/usr/src/sys/FARK amd64 >Description: The 'fold' utility reads past the end of a buffer if arguments are incorrectly specified. If you pass an argument to '-b' that happens to be in the character set "0123456789", line 101 reads past the end of argv[optind] and causes a segmentation fault. >How-To-Repeat: Simply run 'fold -b1' >Fix: I don't really see what the author is intending to do in that case statement where it breaks. >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010200343.o9K3hR0P035875>