#4284 closed defect (fixed)

gr_rasta_io.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 1399763: Unchecked return value from library in gr_rasta_io_init1().

575        strcpy(priv->prefix, "/dev/rastaio0");
576        priv->prefix[12] += dev->minor_drv;
   CID 1399763 (#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.]
577        mkdir(priv->prefix, S_IRWXU | S_IRWXG | S_IRWXO);
578        priv->prefix[13] = '/';
579        priv->prefix[14] = '\0';

Change History (1)

comment:1 Changed on Mar 5, 2021 at 8:19:56 PM by Ryan Long <ryan.long@…>

Owner: set to Ryan Long <ryan.long@…>
Resolution: fixed
Status: newclosed

In b84ce61/rtems:

gr_rasta_io.c: Fix Unchecked return value from library (CID #1399763)

CID 1399763: Unchecked return value from library in gr_rasta_io_init1().

Closes #4284

Note: See TracTickets for help on using tickets.