[Bugs] [Bug 789278] Issues reported by Coverity static analysis tool
bugzilla at redhat.com
bugzilla at redhat.com
Fri Sep 29 12:37:31 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=789278
--- Comment #1023 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18358 committed in master by Jeff Darcy
(jeff at pl.atyp.us)
------
commit e994fbc825b0ce48bbe0c23d034e821502359912
Author: Girjesh Rajoria <grajoria at redhat.com>
Date: Sat Sep 23 02:28:34 2017 +0530
libglusterfs: Coverity Issue NEGATIVE_RETURNS
Issue: Event negative_return_fn: Function "dup(handle->fd)" returns a
negative number. Event negative_returns: "dup(handle->fd)" is passed
to a parameter that cannot be negative.
With this change value of dup(handle->fd) is stored in duped_fd & if
condition checks the value of duped_fd is non-negative.
Change-Id: I563d717108016d740ffa64fbe0929eb1e08c8f33
BUG: 789278
Signed-off-by: Girjesh Rajoria <grajoria at redhat.com>
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Bugs
mailing list