[RTEMS Project] #4257: main_edit.c: Unchecked return value error spotted by Coverity
RTEMS trac
trac at rtems.org
Fri Feb 19 20:43:11 UTC 2021
#4257: main_edit.c: Unchecked return value error spotted by Coverity
------------------------+--------------------
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 1255318: Unchecked return value in display_line().
{{{
1082static void display_line(struct editor *ed, int pos, int fullline) {
1083 int hilite = 0;
1084 int col = 0;
1085 int margin = ed->margin;
1086 int maxcol = ed->env->cols + margin;
1087 unsigned char *bufptr = ed->env->linebuf;
1088 unsigned char *p = text_ptr(ed, pos);
1089 int selstart, selend, ch;
1090 char *s;
1091
CID 1255318 (#1 of 1): Unchecked return value (CHECKED_RETURN)1.
check_return: Calling get_selection without checking return value (as is
done elsewhere 5 out of 6 times).
1092 get_selection(ed, &selstart, &selend);
}}}
--
Ticket URL: <http://devel.rtems.org/ticket/4257>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list