author | Jim Radford <radford@galvanix.com> | |
Sat, 10 Aug 2013 16:14:27 +0000 (09:14 -0700) | ||
committer | Florian Forster <octo@collectd.org> | |
Mon, 19 Aug 2013 14:52:04 +0000 (16:52 +0200) | ||
commit | 2aefd2f1927ab78258d8ad218eb5a351d668d412 | |
tree | 0c2d11f977e25f54e307a974001b1b6f6fb6a491 | tree | snapshot |
parent | d130204df3256c39e104aa9a4346d116458c745e | commit | diff |
curl_json plugin: avoid accessing off the end of the avl_tree_s
It's not written this way, but really we have a union { *key; *tree; }
which is differentiated by checking for the presence a magic field
which only exists in key. This leads to accesses off the end of the
tree. Putting the magic at start of the key avoids this.
Signed-off-by: Florian Forster <octo@collectd.org>
It's not written this way, but really we have a union { *key; *tree; }
which is differentiated by checking for the presence a magic field
which only exists in key. This leads to accesses off the end of the
tree. Putting the magic at start of the key avoids this.
Signed-off-by: Florian Forster <octo@collectd.org>
src/curl_json.c | diff | blob | history |