[Bug 227330] [PATCH] usr.bin/cut: Fix out of boundary write on illegal list argument

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Apr 6 19:24:57 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227330

            Bug ID: 227330
           Summary: [PATCH] usr.bin/cut: Fix out of boundary write on
                    illegal list argument
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs at FreeBSD.org
          Reporter: tobias at stoeckmann.org

Created attachment 192296
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=192296&action=edit
Patch to fix the issue

It is possible to trigger an out of boundary write in cut if an invalid range
with autostart has been supplied:

$ cut -c -8000-2
Segmentation fault

It is not verified that enough memory has been allocated for an autostart if a
smaller stop value has been specified.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list