[Bugs] [Bug 1193929] GlusterFS can be improved
bugzilla at redhat.com
bugzilla at redhat.com
Thu Aug 30 05:38:31 UTC 2018
https://bugzilla.redhat.com/show_bug.cgi?id=1193929
--- Comment #303 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/20989 committed in master by "Amar Tumballi"
<amarts at redhat.com> with a commit message- libglusterfs/src/dict.c: allocate
memory accurately.
I suspect we've allocated and then set to '\0' an
additional byte for no reason: gf_asprintf() allocates
enough inc. the terminating null; data->len took that
additional byte into account; memcpy() it back
took care of that terminating null byte as well.
Also, unrelated, implemented str_to_data() via
strn_to_data().
Compile-tested only!
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul at redhat.com>
Change-Id: I32c90e12974f51a0fbc0cfaebf9bd0fd722adc11
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
More information about the Bugs
mailing list