[RTEMS Project] #4488: TraceWriterQEMU.cc: Uninitialized scalar variable issue spotted by Coverity

RTEMS trac trac at rtems.org
Wed Aug 4 18:55:42 UTC 2021


#4488: TraceWriterQEMU.cc: Uninitialized scalar variable issue spotted by Coverity
------------------------+--------------------
  Reporter:  Ryan Long  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  6.1
 Component:  tool       |    Version:  6
  Severity:  normal     |   Keywords:
Blocked By:             |   Blocking:
------------------------+--------------------
 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 );
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4488>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list