Task #119380 - python-psutil-7.2.2-4.fc45/scan-results.err
back to task #119380download
Error: GCC_ANALYZER_WARNING (CWE-124):
psutil-release-7.2.2/psutil/arch/posix/net.c:116:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer underwrite
psutil-release-7.2.2/psutil/arch/posix/net.c:131:1: enter_function: entry to ‘psutil_net_if_addrs’
psutil-release-7.2.2/psutil/arch/posix/net.c:142:8: branch_false: following ‘false’ branch...
psutil-release-7.2.2/psutil/arch/posix/net.c:144:9: branch_false: ...to here
psutil-release-7.2.2/psutil/arch/posix/net.c:144:8: branch_false: following ‘false’ branch...
psutil-release-7.2.2/psutil/arch/posix/net.c:149:10: branch_false: ...to here
psutil-release-7.2.2/psutil/arch/posix/net.c:149:24: branch_true: following ‘true’ branch (when ‘ifa’ is non-NULL)...
psutil-release-7.2.2/psutil/arch/posix/net.c:150:14: branch_true: ...to here
psutil-release-7.2.2/psutil/arch/posix/net.c:153:22: call_function: calling ‘psutil_convert_ipaddr’ from ‘psutil_net_if_addrs’
psutil-release-7.2.2/psutil/arch/posix/net.c:153:22: return_function: returning to ‘psutil_net_if_addrs’ from ‘psutil_convert_ipaddr’
psutil-release-7.2.2/psutil/arch/posix/net.c:158:12: branch_false: following ‘false’ branch...
psutil-release-7.2.2/psutil/arch/posix/net.c:160:22: branch_false: ...to here
psutil-release-7.2.2/psutil/arch/posix/net.c:160:22: call_function: calling ‘psutil_convert_ipaddr’ from ‘psutil_net_if_addrs’
# 114| ptr += 3;
# 115| }
# 116|-> *--ptr = '\0';
# 117| return Py_BuildValue("s", buf);
# 118| }