>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 r...@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: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"