[RTEMS Project] #4430: DesiredSymbols.cc: Uninitialized pointer read error spotted by Coverity

RTEMS trac trac at rtems.org
Wed May 19 14:14:38 UTC 2021


#4430: DesiredSymbols.cc: Uninitialized pointer read error spotted by Coverity
------------------------+----------------------
  Reporter:  Ryan Long  |      Owner:  (none)
      Type:  defect     |     Status:  new
  Priority:  normal     |  Milestone:  6.1
 Component:  tool       |    Version:  6
  Severity:  normal     |   Keywords:  Coverity
Blocked By:             |   Blocking:
------------------------+----------------------
 CID 1503005: Uninitialized pointer read in load().
 {{{
 111        if (sym.type() == sym.st_func) {
    20. alloc_fn: Calling operator new which returns uninitialized memory.
    CID 1503005 (#2 of 2): Uninitialized pointer read (UNINIT)21.
 uninit_use_in_call: Using uninitialized value (new
 Coverage::SymbolInformation).sourceFile when calling operator =. [show
 details]
 112          set[sym.name()] = *(new SymbolInformation);
 }}}

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


More information about the bugs mailing list