diff options
author | Sunny Kumar <sunkumar@redhat.com> | 2018-09-17 16:56:48 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-09-20 03:02:07 +0000 |
commit | b4eedcb4e432d2c2a5411e6cba1dedafba8e3c50 (patch) | |
tree | 284180fc5d9dbc28e09b9c132946a380e20914a9 /xlators/mgmt/glusterd/src/glusterd-locks.c | |
parent | 0a92d5be1c783d6ff0acaab016d8a1d9477b7cbf (diff) |
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@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-locks.c')
0 files changed, 0 insertions, 0 deletions