[RTEMS Project] #4377: covoar/Explanations Explanations::writeNotFound() NULL check of wrong variable

RTEMS trac trac at rtems.org
Mon Apr 5 18:54:03 UTC 2021


#4377: covoar/Explanations Explanations::writeNotFound() NULL check of wrong
variable
-------------------------+------------------------------
  Reporter:  Alex White  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  normal      |  Milestone:  6.1
 Component:  tool        |    Version:  6
  Severity:  normal      |   Keywords:  coverage, covoar
Blocked By:              |   Blocking:
-------------------------+------------------------------
 The `Explanations::writeNotFound()` method contains two `NULL` checks for
 the `fileName` variable. The second check should be checking if
 `notFoundFile` is `NULL` because it relates to the error being reported in
 the `true` case.

 It appears that this was a simple mistake that was never caught until now.

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


More information about the bugs mailing list