[RTEMS Project] #4473: AddressToLineMapper.h: Pointer to local outside scope error spotted by Coverity

RTEMS trac trac at rtems.org
Fri Jul 16 17:58:03 UTC 2021


#4473: AddressToLineMapper.h: Pointer to local outside scope error spotted by
Coverity
-------------------------+--------------------
  Reporter:  Alex White  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  normal      |  Milestone:  6.1
 Component:  tool        |    Version:  6
  Severity:  normal      |   Keywords:
Blocked By:              |   Blocking:
-------------------------+--------------------
 CID 1505281: Pointer to local outside scope
 {{{
    SourceLine()
  28    : address(0),

 CID 1505281 (#1 of 1): Pointer to local outside scope (RETURN_LOCAL)
 1. escape_local_addr: Returning, through this->path_, the address of stack
 variable <temporary>.
  29      path_("unknown"),
  30      line_num(-1),
  31      is_end_sequence(true)
  32    {
         2. return: Returning here.
  33    }
 }}}

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


More information about the bugs mailing list