[PATCH 0/2] Fix Dereference null return value Coverity issues

Ryan Long ryan.long at oarcorp.com
Mon Mar 22 17:08:27 UTC 2021


Hi,

For these Coverity issues, I just had to ensure that rtl was not NULL before
being dereferenced. For rtl-allocator, I moved the dereferences after a
check for rtl. In rtl-obj.c, I added a check with an early return if rtl
is NULL.

Thanks,
Ryan

Ryan Long (2):
  rtl-obj.c: Added an early return if rtl lock fails
  rtl-allocator.c: Put dereferences after nullcheck

 cpukit/libdl/rtl-allocator.c | 7 +++++--
 cpukit/libdl/rtl-obj.c       | 4 ++++
 2 files changed, 9 insertions(+), 2 deletions(-)

-- 
1.8.3.1



More information about the devel mailing list