Bug 765503 (GLUSTER-3771) - GF_MALLOC and GF_CALLOC should return NULL if size is zero
Summary: GF_MALLOC and GF_CALLOC should return NULL if size is zero
Keywords:
Status: CLOSED NOTABUG
Alias: GLUSTER-3771
Product: GlusterFS
Classification: Community
Component: core
Version: mainline
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Rajesh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-02 09:53 UTC by Rajesh
Modified: 2013-07-04 22:43 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.