#4332 new defect

rtl-obj.c: Derefernce null return value error spotted by Coverity

Reported by: Ryan Long Owned by:
Priority: normal Milestone: Indefinite
Component: lib/dl Version: 6
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

CID 1444138: Derference null return value in rtems_rtl_obj_find_file().

   4. returned_null: rtems_rtl_lock returns NULL (checked 23 out of 28 times). [hide details]
   5. var_assigned: Assigning: rtl = NULL return value from rtems_rtl_lock.
410  rtl = rtems_rtl_lock ();
411
   CID 1444138 (#1 of 1): Dereference null return value (NULL_RETURNS)6. dereference: Dereferencing rtl, which is known to be NULL.
412  if (!rtems_rtl_find_file (pname, rtl->paths, &obj->fname, &obj->fsize))

Change History (1)

comment:1 Changed on 12/16/21 at 20:45:25 by Ryan Long

Milestone: 6.1Indefinite
Note: See TracTickets for help on using tickets.