Define AHCI_PORT_IDENT and increase by 1 the VTBLK_BLK_ID_BYTES
authorMarcelo Araujo <araujo@FreeBSD.org>
Tue, 20 Nov 2018 22:21:19 +0000 (22:21 +0000)
committerMarcelo Araujo <araujo@FreeBSD.org>
Tue, 20 Nov 2018 22:21:19 +0000 (22:21 +0000)
commitedce78c2c444528c5d3044518e6b1db83f0ff71c
tree18a3b50a931ecc5507da94905a60da07533f70f6
parentf1ca3ac2031b753a8868d43b224d94869aac34db
Define AHCI_PORT_IDENT and increase by 1 the VTBLK_BLK_ID_BYTES
to avoid buffer accessed out of bounds, also switch to snprintf(3).

PR: 200859
Submitted by: Caglar <caglar@10ur.org>
Obtained from: https://github.com/mist64/xhyve/pull/24
MFC after: 4 weeks
Sponsored by: iXsystems Inc.
usr.sbin/bhyve/pci_ahci.c
usr.sbin/bhyve/pci_virtio_block.c