diff options
author | Kotresh HR <khiremat@redhat.com> | 2018-10-14 19:54:48 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-10-24 05:06:18 +0000 |
commit | 68299b244372b1668c1708bff15a239649226dee (patch) | |
tree | 3b0fc11d0bf1ebd2730ed9b723e1fc61c6ab8e39 /extras/create_new_xlator | |
parent | f73b4476b15f9d6d3dc3c8e20c9742aacd857f9f (diff) |
cli: Fix heap-buffer-overflow issue reported by ASAN
GF_MALLOC was being used to allocate memory which is
not initialized. strcat is used on it which could
result in buffer overflow if it contains garbage before
'\0'. So changed it to GF_CALLOC.
Traceback:
==23427==ERROR: AddressSanitizer: heap-buffer-overflow ...
WRITE of size 5 at 0x6080000083fe thread T3
#0 0x7fb60966991c in __interceptor_strcat ...
#1 0x48adc0 in config_parse ...
#2 0x48cde8 in cli_cmd_gsync_set_parse ...
...
Updates: bz#1633930
Change-Id: I3710f011d8139984b1898265d84d150c9bdc962b
Signed-off-by: Kotresh HR <khiremat@redhat.com>
Diffstat (limited to 'extras/create_new_xlator')
0 files changed, 0 insertions, 0 deletions