#4488 closed defect (fixed)

TraceWriterQEMU.cc: 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:
Blocking:

Description

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 70088f6/rtems-tools:

TraceWriterQEMU.cc: Initialize header._pad

CID 1506204: Uninitialized scalar variable

Closes #4488

Note: See TracTickets for help on using tickets.