author | Florian Forster <octo@collectd.org> | |
Sun, 23 Sep 2012 10:00:43 +0000 (12:00 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 23 Sep 2012 10:00:43 +0000 (12:00 +0200) | ||
commit | 427297d59bc5686f4ef7b95d689421c6eac9c833 | |
tree | de2ef8c9683177215b4cff00f761bb4687576d4c | tree | snapshot |
parent | eb44b1e0a044f924c8cbcf28da320aab602d0aca | commit | diff |
ethstat plugin: Initialize realloc'ated memory.
The last element in "interfaces" is not guaranteed to be zeroed, resulting in a
segfault when cf_util_get_string() tries to free the "pointer".
Thanks to Mark T. Voelker for reporting and analyzing this bug!
This should fix Github issue #133.
The last element in "interfaces" is not guaranteed to be zeroed, resulting in a
segfault when cf_util_get_string() tries to free the "pointer".
Thanks to Mark T. Voelker for reporting and analyzing this bug!
This should fix Github issue #133.
src/ethstat.c | diff | blob | history |