]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
issue #914, rrdtool graph with --title segfaults and misparses single-line args
authorAlexander Zangerl <alexz@opmantek.com>
Tue, 30 Oct 2018 04:49:58 +0000 (14:49 +1000)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 1 Nov 2018 10:41:22 +0000 (11:41 +0100)
commit99937b3b45f2f4e6f9a08a3f233951538548ab18
tree081ff09f0626795d6afd72adbba57d89aa797c27
parentabba6359a52922b40a517a77c8def46df17cd156
issue #914, rrdtool graph with --title segfaults and misparses single-line args

reworked graph_title_split() to not segfault,
to handle leading/trailing/duplicate delimiters, and to produce the
appropriate number of output lines.

code now works and properly handles nasties
like --title '\n\none\n\nfourtyseven\n'
src/rrd_graph.c