Bug 201288 - usr.sbin/bhyve/pci_virtio_block.c:320: 21 into 20 won't go
Summary: usr.sbin/bhyve/pci_virtio_block.c:320: 21 into 20 won't go
Status: Closed DUPLICATE of bug 200859
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 10.1-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-02 16:37 UTC by David Binderman
Modified: 2015-08-24 20:07 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2015-07-02 16:37:11 UTC
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.
Comment 1 Peter Grehan freebsd_committer freebsd_triage 2015-08-24 20:07:31 UTC

*** This bug has been marked as a duplicate of bug 200859 ***