in case anyone's interested, and as reported in a recent freebsd pr:

        $ fold -b1
        Segmentation fault (core dumped)

no fix is provided.

jmc

>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
[email protected]:/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:

Reply via email to