[RTEMS Project] #4365: main_cp.c: Ignore return value from stat()
RTEMS trac
trac at rtems.org
Tue Mar 30 14:44:31 UTC 2021
#4365: main_cp.c: Ignore return value from stat()
------------------------+--------------------
Reporter: Ryan Long | Owner: (none)
Type: defect | Status: new
Priority: normal | Milestone: 6.1
Component: lib | Version: 6
Severity: normal | Keywords:
Blocked By: | Blocking:
------------------------+--------------------
CID 26051: Unchecked return value from library in main_cp().
{{{
257 if (Rflag && (Lflag || Hflag))
CID 26051 (#1 of 1): Unchecked return value from library
(CHECKED_RETURN)34. check_return: Calling stat(*argv, &tmp_stat) without
checking return value. This library function may fail and return an error
code. [Note: The source code implementation of the function has been
overridden by a builtin model.]
258 stat(*argv, &tmp_stat);
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4365>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list