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

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 6 07:42:34 UTC 2017


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



--- Comment #1125 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18623 committed in master by  

------------- server-helpers: Coverity Fix CONSTANT_EXPRESSION_RESULT in
serialize_rsp_direntp

Issue : "trav->dict.dict_len > 4294967295U" is always false regardless of the
values
of its operands. .But dict_serialized_length can return < 0 when error happens.

Solution : Remove the comparison which always turns out to be false and add a
new
condition for error checking.

Fix : The if-condition was renewed.

Coverity-Id: 108 from [1]

[1]:
https://download.gluster.org/pub/gluster/glusterfs/static-analysis/master/glusterfs-coverity/2017-10-30-9aa574a5/html/

Change-Id: I9956b6ca7c4bf7444f19aadd3b32fceac011a44e
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