Skip to content

Bug in Pack_Time (fsw/src/sbn_pack.c): Use of uninitialized variable #53

@Nodraak

Description

@Nodraak

Hi,

Bug: in https://github.com/nasa/SBN/blob/main/fsw/src/sbn_pack.c#L55, D is uninitialized and packed into PackPtr

Solution: the return value from OS_TimeAssembleFromMicroseconds() should be assigned to D.

Root cause: this change introduced the bug.

This bug was found with CPPcheck: Line 24: Uninitialized variable: DataBuf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions