[Bugs] [Bug 789278] Issues reported by Coverity static analysis tool

bugzilla at redhat.com bugzilla at redhat.com
Tue Sep 18 11:45:40 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=789278



--- Comment #1455 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/21196 committed in master by "Atin
Mukherjee" <amukherj at redhat.com> with a commit message- geo-rep : fix coverity
issues in glusterd-geo-rep.c

This patch fixes CID 1210979, 1214614, 1292650, 1357874, 1382404.

1. overflowed or a truncated value : call to sys_read has been reduced
   to 'sizeof(buf) -1' and after operation buf is properly terminated.

2. tainted_data_argument : truncation due to cast operation on operand :
   resulted form call to strtol: chaged data type from pid_t to long.

3. tainted_data_argument : call to fgets is reduced by 2 to make space
   for the '\n' and '\0'.

updates: bz#789278
Change-Id: Ib883501205c85007771213071c8e182286eb0bc0
Signed-off-by: Sunny Kumar <sunkumar at redhat.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Bugs mailing list