[Bugs] [Bug 789278] Issues reported by Coverity static analysis tool
bugzilla at redhat.com
bugzilla at redhat.com
Tue Oct 3 13:28:05 UTC 2017
https://bugzilla.redhat.com/show_bug.cgi?id=789278
--- Comment #1035 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: https://review.gluster.org/18351 committed in master by Jeff Darcy
(jeff at pl.atyp.us)
------
commit fe5fc91ab9b74b525d4979e09ce13766b3180381
Author: Sanju Rakonde <srakonde at redhat.com>
Date: Fri Sep 22 18:17:03 2017 +0530
glusterd/snapshot: Buffer Size Warning
new_brickinfo->mnt_opts is allocated memory using calloc. So it is
already zeroed out at allocation. we need not to add null character
at the end. we pass one less than maximum size to the strncpy to make
sure that destination string is terminated.
Change-Id: I463dddd2171fb39a509bb75ffcc074d5b1cf7d62
BUG: 789278
Signed-off-by: Sanju Rakonde <srakonde at redhat.com>
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Bugs
mailing list