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: [email protected]
          Reporter: [email protected]

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

Reply via email to