[RTEMS Project] #4291: main_help.c: Unchecked return value from library error spotted by Coverity

RTEMS trac trac at rtems.org
Tue Mar 30 15:11:17 UTC 2021


#4291: main_help.c: Unchecked return value from library error spotted by Coverity
-----------------------+--------------------------------------
 Reporter:  Ryan Long  |       Owner:  Ryan Long <ryan.long@…>
     Type:  defect     |      Status:  reopened
 Priority:  normal     |   Milestone:  6.1
Component:  lib        |     Version:  6
 Severity:  normal     |  Resolution:
 Keywords:             |  Blocked By:
 Blocking:             |
-----------------------+--------------------------------------

Comment (by Ryan Long):

 Another issue was found at line 150 after submitting the first patch
 {{{
 150        printf("Press any key to continue...");
    CID 1437650 (#1 of 1): Unchecked return value from library
 (CHECKED_RETURN)29. check_return: Calling getchar() without checking
 return value. This library function may fail and return an error code.
 151        getchar();
 }}}

--
Ticket URL: <http://devel.rtems.org/ticket/4291#comment:4>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list