CodeQL findings — Drv/Ip

devel @ e84571354780 · generated 2026-09-03T21:21:21Z
FileLineRuleSeverityMessage
Drv/Ip/IpSocket.cpp:160160cpp/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:2424cpp/fprime/jpl-c/preprocessor-use-ifdeflowUse of conditional compilation must be kept to a minimum.
Drv/Ip/IpSocket.cpp:7777cpp/fprime/jpl-c/preprocessor-use-ifdeflowUse of conditional compilation must be kept to a minimum.
Drv/Ip/IpSocket.cpp:9999cpp/fprime/jpl-c/preprocessor-use-ifdeflowUse of conditional compilation must be kept to a minimum.
Drv/Ip/IpSocket.cpp:186186cpp/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/TcpClientSocket.cpp:1818cpp/fprime/jpl-c/preprocessor-use-ifdeflowUse of conditional compilation must be kept to a minimum.
Drv/Ip/TcpServerSocket.cpp:1717cpp/fprime/jpl-c/preprocessor-use-ifdeflowUse of conditional compilation must be kept to a minimum.
Drv/Ip/UdpSocket.cpp:1818cpp/fprime/jpl-c/preprocessor-use-ifdeflowUse of conditional compilation must be kept to a minimum.
Drv/Ip/UdpSocket.cpp:121121cpp/jpl-c/function-size-limitslowopenProtocol has too many lines (87, while 60 are allowed).

Dismissed findings (4)

FileLineRuleDismissal reasonComment
Drv/Ip/TcpClientSocket.cpp62cpp/fprime/jpl-c/preprocessor-use-ifdefwon't fixMinimal amount of code to work on 2 extra OSes.
Drv/Ip/TcpServerSocket.cpp60cpp/fprime/jpl-c/preprocessor-use-ifdefwon't fixMinimal amount of code to support 2 OSes.
Drv/Ip/UdpSocket.cpp101cpp/fprime/jpl-c/preprocessor-use-ifdefwon't fixMinimal amount of code to support 2 OSes.
Drv/Ip/UdpSocket.cpp157cpp/fprime/jpl-c/preprocessor-use-ifdefwon't fixMinimal amount of code to support 2 OSes