Bug 765503 (GLUSTER-3771)

Summary: GF_MALLOC and GF_CALLOC should return NULL if size is zero
Product: [Community] GlusterFS Reporter: Rajesh <rajesh>
Component: coreAssignee: Rajesh <rajesh>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: mainlineCC: gluster-bugs, vagarwal
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Rajesh 2011-11-02 09:53:12 UTC
Currently. __gf_calloc and __gf_malloc return non-zero memory with GF_MEM_HEADER, TRAILER and padding even if size given is zero. It should return NULL in case of zero size.