]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Revert "Fix writing past a buffer in checkUnusedValues()" revert-1329-buffer_overflow_in_checkUnusedValues 1346/head
authorTobias Oetiker <tobi@oetiker.ch>
Tue, 26 May 2026 15:03:57 +0000 (17:03 +0200)
committerGitHub <noreply@github.com>
Tue, 26 May 2026 15:03:57 +0000 (17:03 +0200)
src/rrd_graph_helper.c

index 02034727cf504234646794dff2978432f112a989..987999d297b3af4a4bcefc743aa4da796f5ae8af 100644 (file)
@@ -120,7 +120,7 @@ char     *checkUnusedValues(
     parsedargs_t *pa)
 {
     char     *res = NULL;
-    size_t    len = 1;
+    size_t    len = 0;
 
     for (int i = 0; i < pa->kv_cnt; i++) {
         if (!pa->kv_args[i].flag) {