[RTEMS Project] #4329: main_rtrace.c: Dereference after null check error spotted by Coverity

RTEMS trac trac at rtems.org
Thu Apr 29 15:27:12 UTC 2021


#4329: main_rtrace.c: 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:  lib        |     Version:  6
 Severity:  normal     |  Resolution:  fixed
 Keywords:             |  Blocked By:
 Blocking:             |
-----------------------+--------------------------------------
Changes (by Ryan Long <ryan.long@…>):

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


Comment:

 In [changeset:"8cf30c41d9336f61e37eeb29617e5a13532c7c3d/rtems"
 8cf30c4/rtems]:
 {{{
 #!CommitTicketReference repository="rtems"
 revision="8cf30c41d9336f61e37eeb29617e5a13532c7c3d"
 main_rtrace.c: Add error return when malloc fails

 CID 1399709: Dereference after null check in
 rtems_trace_buffering_shell_save().

 Closes #4329
 }}}

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


More information about the bugs mailing list