[Bug 201287] tools/tools/nxge/xge_info.c: 2 * three into two won't go

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 2 16:28:56 UTC 2015


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

            Bug ID: 201287
           Summary: tools/tools/nxge/xge_info.c: 2 * three into two won't
                    go
           Product: Base System
           Version: 10.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: dcb314 at hotmail.com

1.

tools/tools/nxge/xge_info.c:399]: (error) Buffer is accessed out of bounds:
register_info.option

  strcpy(register_info->option, "-r");

strcpy copies 3 bytes, but field option is only two bytes.

2.

tools/tools/nxge/xge_info.c:440]: (error) Buffer is accessed out of bounds:
register_info.option

Duplicate with -w.

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


More information about the freebsd-bugs mailing list