[Bugs] [Bug 1153626] New: Sizeof bug for allocation of memory in afr_lookup
bugzilla at redhat.com
bugzilla at redhat.com
Thu Oct 16 11:03:49 UTC 2014
https://bugzilla.redhat.com/show_bug.cgi?id=1153626
Bug ID: 1153626
Summary: Sizeof bug for allocation of memory in afr_lookup
Product: GlusterFS
Version: 3.5.3
Component: replicate
Assignee: gluster-bugs at redhat.com
Reporter: pkarampu at redhat.com
CC: bugs at gluster.org
Description of problem:
THe following bug is identified in coverity scan
6. Defect type: SIZEOF_MISMATCH
1. glusterfs-3.6.0.29/xlators/cluster/afr/src/afr-common.c:2576:
suspicious_sizeof: Passing argument "112UL /* sizeof
(*local->cont.lookup.xattr) */" to function "__gf_calloc(size_t, size_t,
uint32_t, char const *)" and then casting the return value to "dict_t **" is
suspicious.
Fortunately this doesn't lead to any problems because sizeof gives bigger
number than 8.
Version-Release number of selected component (if applicable):
How reproducible:
Always when static analyser is run,
Steps to Reproduce:
1.
2.
3.
Actual results:
Expected results:
Additional info:
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=Yr0WuY95J9&a=cc_unsubscribe
More information about the Bugs
mailing list