[Bugs] [Bug 789278] Issues reported by Coverity static analysis tool
bugzilla at redhat.com
bugzilla at redhat.com
Tue Oct 3 13:30:15 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=789278
--- Comment #1036 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18332 committed in master by Jeff Darcy
(jeff at pl.atyp.us)
------
commit 1c0d3ac5c5f9774a0f25f5282d54177af02f984e
Author: Mohammed Azhar Padariyakam <mpadariy at redhat.com>
Date: Thu Sep 21 14:07:16 2017 +0530
xlators/io-stats: Coverity Fix CHECKED_RETURN in resolve_group_name
Issue: Calling "getgrgid_r(gid, &grp, grp_buf, grp_buf_len, &grp_result)"
without checking return value. This library function may fail and return
an error code
Solution: getgrgrid_r returns zero when the operation is successful
and a non-zero error code if there's some error in the operation
Fix: Checked for the return value and redirected to error if the
return value was non-zero
Change-Id: I0d082c6d57c6148b9830bc020140946c06d6f800
BUG: 789278
Signed-off-by: Mohammed Azhar Padariyakam <mpadariy at redhat.com>
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Bugs
mailing list