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));
A commit references this bug: Author: markj Date: Sun Jul 22 18:31:16 UTC 2018 New revision: 336615 URL: https://svnweb.freebsd.org/changeset/base/336615 Log: Use the right buffer size when calling snprintf(). PR: 229952 Changes: head/sys/dev/ocs_fc/ocs_ioctl.c