Open Nodraak opened 9 months ago
Hi,
Bug: in https://github.com/nasa/SBN/blob/main/fsw/src/sbn_pack.c#L55, D is uninitialized and packed into PackPtr
D
PackPtr
Solution: the return value from OS_TimeAssembleFromMicroseconds() should be assigned to D.
OS_TimeAssembleFromMicroseconds()
Root cause: this change introduced the bug.
This bug was found with CPPcheck: Line 24: Uninitialized variable: DataBuf
Line 24: Uninitialized variable: DataBuf
Hi,
Bug: in https://github.com/nasa/SBN/blob/main/fsw/src/sbn_pack.c#L55,
D
is uninitialized and packed intoPackPtr
Solution: the return value from
OS_TimeAssembleFromMicroseconds()
should be assigned toD
.Root cause: this change introduced the bug.
This bug was found with CPPcheck:
Line 24: Uninitialized variable: DataBuf