[Gluster-devel] New Defects reported by Coverity Scan for gluster/glusterfs

scan-admin at coverity.com scan-admin at coverity.com
Mon Apr 20 07:01:21 UTC 2015


Hi,

Please find the latest report on new defect(s) introduced to gluster/glusterfs found with Coverity Scan.

1 new defect(s) introduced to gluster/glusterfs found with Coverity Scan.
11 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)


** CID 1295093:  Integer handling issues  (NO_EFFECT)
/libglusterfs/src/common-utils.c: 1525 in gf_string2bytesize_range()


________________________________________________________________________________________________________
*** CID 1295093:  Integer handling issues  (NO_EFFECT)
/libglusterfs/src/common-utils.c: 1525 in gf_string2bytesize_range()
1519                     if ((max - value) < 0) {
1520                             errno = ERANGE;
1521                             return -1;
1522                     }
1523                     *n = (uint64_t) value;
1524             } else {
>>>     CID 1295093:  Integer handling issues  (NO_EFFECT)
>>>     This less-than-zero comparison of an unsigned value is never true. "max - int_value < 0UL".
1525                     if ((max - int_value) < 0) {
1526                             errno = ERANGE;
1527                             return -1;
1528                     }
1529                     *n = int_value;
1530             }


________________________________________________________________________________________________________
To view the defects in Coverity Scan visit, https://scan.coverity.com/projects/987?tab=overview

To manage Coverity Scan email notifications for "gluster-devel at gluster.org", click https://scan.coverity.com/subscriptions/edit?email=gluster-devel%40gluster.org&token=7dffab14bc5a7180e75b0d047539f148 .



More information about the Gluster-devel mailing list