[RTEMS Project] #4333: rtl-allocator.c: Dereference null return value error spotted by Coverity
RTEMS trac
trac at rtems.org
Wed Mar 10 19:48:17 UTC 2021
#4333: rtl-allocator.c: Dereference null return value error spotted by Coverity
------------------------+--------------------
Reporter: Ryan Long | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: lib/dl | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
------------------------+--------------------
CID 1444139: Dereference null return value in rtems_rtl_alloc_hook().
{{{
1. returned_null: rtems_rtl_lock returns NULL (checked 23 out of 28
times). [show details]
2. var_assigned: Assigning: rtl = NULL return value from
rtems_rtl_lock.
164 rtems_rtl_data* rtl = rtems_rtl_lock ();
CID 1444139 (#1 of 1): Dereference null return value (NULL_RETURNS)3.
dereference: Dereferencing rtl, which is known to be NULL.
165 rtems_rtl_allocator previous = rtl->allocator.allocator;
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4333>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list