Opened on 03/02/21 at 15:23:14
Closed on 03/05/21 at 20:20:06
#4286 closed defect (fixed)
gr_rasta_tmtc.c: Unchecked return value from library error spotted by Coverity
Reported by: | Ryan Long | Owned by: | Ryan Long <ryan.long@…> |
---|---|---|---|
Priority: | normal | Milestone: | 6.1 |
Component: | bsps | Version: | 6 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description
CID 1399771: Unchecked return value from library in gr_rasta_tmtc_init1().
588 strcpy(priv->prefix, "/dev/rastatmtc0"); 589 priv->prefix[14] += dev->minor_drv; CID 1399771 (#1 of 1): Unchecked return value from library (CHECKED_RETURN)2. check_return: Calling mkdir(priv->prefix, 511U) 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.] 590 mkdir(priv->prefix, S_IRWXU | S_IRWXG | S_IRWXO); 591 priv->prefix[15] = '/'; 592 priv->prefix[16] = '\0';
Change History (1)
comment:1 Changed on 03/05/21 at 20:20:06 by Ryan Long <ryan.long@…>
Owner: | set to Ryan Long <ryan.long@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In 17d525b5/rtems: