CodeQL findings — Drv/Ip

devel @ d3003862b5fd · generated 2026-11-03T21:41:25Z
FileLineRuleSeverityMessage
Drv/Ip/IpSocket.cpp:151151cpp/fprime/checking-parameter-valuesmediumParameter data is dereferenced without first being checked (e.g. with FW_ASSERT or a condition).
Drv/Ip/SocketComponentHelper.cpp:210210cpp/fprime/jpl-c/loop-boundsmediumThis loop does not have a fixed bound.
Drv/Ip/SocketComponentHelper.cpp:351351cpp/fprime/jpl-c/loop-boundsmediumThis loop does not have a fixed bound.
Drv/Ip/IpSocket.cpp:5656cpp/fprime/jpl-c/preprocessor-use-ifdeflowUse of conditional compilation must be kept to a minimum.
Drv/Ip/IpSocket.cpp:7272cpp/fprime/jpl-c/preprocessor-use-ifdeflowUse of conditional compilation must be kept to a minimum.
Drv/Ip/IpSocket.cpp:9090cpp/fprime/jpl-c/preprocessor-use-ifdeflowUse of conditional compilation must be kept to a minimum.
Drv/Ip/IpSocket.cpp:181181cpp/fprime/incomplete-codelowComment contains the incomplete-code marker TODO.
Drv/Ip/SocketComponentHelper.cpp:2424cpp/jpl-c/function-size-limitslowstart has too many parameters (7, while 6 are allowed).
Drv/Ip/UdpSocket.cpp:103103cpp/jpl-c/function-size-limitslowopenProtocol has too many lines (87, while 60 are allowed).

Dismissed findings (4)

FileLineRuleDismissal reasonComment
Drv/Ip/TcpClientSocket.cpp42cpp/fprime/jpl-c/preprocessor-use-ifdefwon't fixMinimal amount of code to work on 2 extra OSes.
Drv/Ip/TcpServerSocket.cpp40cpp/fprime/jpl-c/preprocessor-use-ifdefwon't fixMinimal amount of code to support 2 OSes.
Drv/Ip/UdpSocket.cpp83cpp/fprime/jpl-c/preprocessor-use-ifdefwon't fixMinimal amount of code to support 2 OSes.
Drv/Ip/UdpSocket.cpp139cpp/fprime/jpl-c/preprocessor-use-ifdefwon't fixMinimal amount of code to support 2 OSes