diff options
author | ShyamsundarR <srangana@redhat.com> | 2018-09-28 13:47:33 -0400 |
---|---|---|
committer | ShyamsundarR <srangana@redhat.com> | 2018-09-28 13:49:50 -0400 |
commit | d00a2a1b398346bbdc5ac9b3ba4b09fb1ce1e699 (patch) | |
tree | 5816414f3c6da39701053d0b17c01002c0a749cd /submit-for-review.sh | |
parent | 7cf6688e9bb8384b383745751758d747a940ca3f (diff) |
mdcache: Fix asan reported potential heap buffer overflow
The char pointer mdc_xattr_str in function mdc_xattr_list_populate
is malloc'd and doing a strcat into a malloc'd region can
overflow content allocated based on prior contents of the
memory region.
Added a NULL terimation to the malloc'd region to prevent
the overflow, and treat it as an empty string.
Change-Id: If0decab669551581230a8ede4c44c319ff04bac9
Updates: bz#1633930
Signed-off-by: ShyamsundarR <srangana@redhat.com>
Diffstat (limited to 'submit-for-review.sh')
0 files changed, 0 insertions, 0 deletions