diff options
author | Purna Pavan Chandra Aekkaladevi <paekkala@redhat.com> | 2019-09-16 11:05:23 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@gmail.com> | 2019-09-30 17:30:22 +0000 |
commit | 7464ece4b97935b8085ac456a452b697db3bf67e (patch) | |
tree | 7a34cf61706a8e0ddab55be67953e02e74cff5e7 /tests/bugs/cli/bug-1320388.t | |
parent | ae729065c0d9cb5411e5c31231b5e293b560d76a (diff) |
libgfapi : Dereference after null check - coverity fix
This patch fixes coverity issue with CID 1405581
A pointer 'volname' is being deferenced (by passing it as an argument to strncmp), even when it points to NULL, leading to segmentation fault.
fix : Adding a NULL check condition beforehand and returning NULL
Change-Id: I18685fa1cb251253996051b83b6790a5d5f0aff9
Updates: bz#789278
Signed-off-by: Purna Pavan Chandra Aekkaladevi <paekkala@redhat.com>
Diffstat (limited to 'tests/bugs/cli/bug-1320388.t')
0 files changed, 0 insertions, 0 deletions