[RTEMS Project] #4428: ReportsBase.cc: Dereference after null check error spotted by Coverity

RTEMS trac trac at rtems.org
Thu Oct 7 14:30:00 UTC 2021


#4428: ReportsBase.cc: Dereference after null check error spotted by Coverity
-----------------------+--------------------------------------
 Reporter:  Ryan Long  |       Owner:  Ryan Long <ryan.long@…>
     Type:  defect     |      Status:  closed
 Priority:  normal     |   Milestone:  6.1
Component:  tool       |     Version:  6
 Severity:  normal     |  Resolution:  fixed
 Keywords:  Coverity   |  Blocked By:
 Blocking:             |
-----------------------+--------------------------------------
Changes (by Ryan Long <ryan.long@…>):

 * owner:  (none) => Ryan Long <ryan.long@…>
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"724505095ae634b485d1b1b8888b147e3a130ea0/rtems-tools"
 7245050/rtems-tools]:
 {{{
 #!CommitTicketReference repository="rtems-tools"
 revision="724505095ae634b485d1b1b8888b147e3a130ea0"
 ReportsBase.cc: Add assert for member variables

 The uncoveredRanges and uncoveredBranch member variables are allocated
 as a pair. They are both either NULL or not NULL. Coverity does not know
 this though, so this assert is added to ensure they are not NULL before
 being dereferenced.

 CID 1503710: Dereference after null check

 Closes #4428
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4428#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list