[PATCH v2 0/3] Fix for Coverity issues

Ryan Long thisisryanlong at gmail.com
Fri Feb 12 15:11:23 UTC 2021


Here are the patches with the suggested changes. The macros are now
_Assert_Unused_variable equals and _Assert_Unused_variable_unequal. I
made the corresponding change in consolesimpletask.c. In
rtems-debugger-target.c, I moved the declaration of the swbreaks
variable back to the top of the function and assigned its value where I
had declared and initialized it in the first version of this patch.


Ryan Long (3):
  assert.h: Add macros to assert status and use it
  consolesimpletask.c: Fix Coverity Unchecked return value
  rtems-debugger-target.c: Fix Coverity Dereference before null check

 cpukit/include/rtems/score/assert.h        | 30 ++++++++++++++++++++++++++++++
 cpukit/libcsupport/src/consolesimpletask.c |  7 +++++--
 cpukit/libdebugger/rtems-debugger-target.c |  6 ++++--
 3 files changed, 39 insertions(+), 4 deletions(-)


More information about the devel mailing list