Date: Thu, 13 Aug 2015 16:52:30 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 202298] usr/src/sys/dev/beri/virtio/virtio_block.c:404: 21 into 20 won't go Message-ID: <bug-202298-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202298 Bug ID: 202298 Summary: usr/src/sys/dev/beri/virtio/virtio_block.c:404: 21 into 20 won't go Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: dcb314@hotmail.com [usr/src/sys/dev/beri/virtio/virtio_block.c:404]: (error) Buffer is accessed out of bounds: sc.ident sprintf(sc->ident, "Virtio block backend"); but sc->ident is only 20 bytes long and the text string, including trailing NULL, is 21 bytes long. Also, since there are no % specifiers in the text string, strcpy would be faster. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202298-8>