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: dcb...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to