[Bug 202298] usr/src/sys/dev/beri/virtio/virtio_block.c:404: 21 into 20 won't go
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Aug 13 16:52:30 UTC 2015
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 at FreeBSD.org
Reporter: dcb314 at 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.
More information about the freebsd-bugs
mailing list