Notice: We have migrated to GitLab launching 2024-05-01 see here:

#4488 closed defect (fixed) Uninitialized scalar variable issue spotted by Coverity

Reported by: Ryan Long Owned by: Ryan Long <ryan.long@…>
Priority: normal Milestone: 6.1
Component: tool Version: 6
Severity: normal Keywords:
Cc: Blocked By:


CID 1506204: Uninitialized scalar variable

115    header.machine[1] = 0; // XXX ??
   CID 1506204 (#1 of 1): Uninitialized scalar variable (UNINIT)4. uninit_use_in_call: Using uninitialized value header. Field header._pad is uninitialized when calling fwrite.
116    status = ::fwrite( &header, sizeof(trace_header), 1, traceFile );

Change History (1)

comment:1 Changed on 09/27/21 at 22:18:24 by Ryan Long <ryan.long@…>

Owner: set to Ryan Long <ryan.long@…>
Resolution: fixed
Status: newclosed

In [changeset:"70088f6f87381a45c523fedf50f4904c099907ce/rtems-tools" 70088f6/rtems-tools]: Initialize header._pad

CID 1506204: Uninitialized scalar variable

Closes #4488

Note: See TracTickets for help on using tickets.