[Bug 229952] src/sys/dev/ocs_fc/ocs_ioctl.c:1123]: (error) Buffer is accessed out of bounds: ocs.sli_intf
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Jul 22 08:20:32 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=229952
Bug ID: 229952
Summary: src/sys/dev/ocs_fc/ocs_ioctl.c:1123]: (error) Buffer
is accessed out of bounds: ocs.sli_intf
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: dcb314 at hotmail.com
Source code is
snprintf(ocs->sli_intf, sizeof(sli_intf), "%08x",
ocs_config_read32(ocs, SLI4_INTF_REG));
Maybe better code
snprintf(ocs->sli_intf, 9, "%08x",
ocs_config_read32(ocs, SLI4_INTF_REG));
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list