ceph plugin: Add unit test for parse_keys().
authorFlorian Forster <octo@collectd.org>
Mon, 30 Nov 2015 09:15:06 +0000 (10:15 +0100)
committerFlorian Forster <octo@collectd.org>
Mon, 30 Nov 2015 10:26:26 +0000 (11:26 +0100)
commita9f03564aad7917086d9b3f9cdb98a8613eaaf98
tree8a5a284f5b37fc84e313787897e8d149344a4fa6
parent72880f7c39fa0fc673b8f2db7530f035d123b4b0
ceph plugin: Add unit test for parse_keys().

This is used to demonstrate a buffer overflow: when the first part of a
key is >63 characters, key_chars_remaining underflows and causes a buffer
overflow in the following iteration.

Issue: #1350
src/Makefile.am
src/ceph_test.c [new file with mode: 0644]
src/daemon/plugin_mock.c