diff options
author | ShyamsundarR <srangana@redhat.com> | 2018-08-22 15:04:52 -0400 |
---|---|---|
committer | N Balachandran <nbalacha@redhat.com> | 2018-08-24 05:11:11 +0000 |
commit | 2785d2fdf710fcd323bef2d1cbbf17fe823a289f (patch) | |
tree | f96da2adbf6f40e544b34cf5131321c15ca7a7c4 /libglusterfs | |
parent | f191bb7bc1abd250bdf0a5a6972ce95fcbd3314b (diff) |
dht/switch: Fix coverity issues
CID: 1124779: dup_childs not freed in an err path
CID: 1382398: option_string leaked
CID: 1382389: memcpy may cause string overflow
Also, fixed up NULL termination for the string
Potential use after free (or double free in this case) as below,
(link split into multiple lines)
https://download.gluster.org/pub/gluster/glusterfs/static-analysis/
master/glusterfs-coverity/2018-08-22-0ebaa9c6/html/
1/427switch.c.html#error
Change-Id: I76681af6a8091666918a3d5dff30a152a7b97905
Updates: bz#789278
Signed-off-by: ShyamsundarR <srangana@redhat.com>
Diffstat (limited to 'libglusterfs')
0 files changed, 0 insertions, 0 deletions