[Bug 201288] usr.sbin/bhyve/pci_virtio_block.c:320: 21 into 20 won't go

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 2 16:37:11 UTC 2015


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

            Bug ID: 201288
           Summary: usr.sbin/bhyve/pci_virtio_block.c:320: 21 into 20
                    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

usr.sbin/bhyve/pci_virtio_block.c:320]: (error) Buffer is accessed out of
bounds: sc.vbsc_ident

    sprintf(sc->vbsc_ident, "BHYVE-%02X%02X-%02X%02X-%02X%02X",
        digest[0], digest[1], digest[2], digest[3], digest[4], digest[5]);

sprintf writes 21 bytes into a 20 byte field.

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


More information about the freebsd-bugs mailing list