File: 0010-initialized-variables.patch

package info (click to toggle)
jq 1.6-2.1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 2,236 kB
  • sloc: ansic: 13,418; yacc: 872; sh: 403; lex: 185; makefile: 158; javascript: 50; python: 20
file content (16 lines) | stat: -rw-r--r-- 507 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Fix uninitialized variables
Author: Reiner Herrmann <reiner@reiner-h.de>
Bug-Debian: https://bugs.debian.org/925722
--- jq-1.6.orig/src/jq_test.c
+++ jq-1.6/src/jq_test.c
@@ -54,8 +54,8 @@ static void test_err_cb(void *data, jv e
 }
 
 static void run_jq_tests(jv lib_dirs, int verbose, FILE *testdata) {
-  char prog[4096];
-  char buf[4096];
+  char prog[4096] = {0};
+  char buf[4096] = {0};
   struct err_data err_msg;
   int tests = 0, passed = 0, invalid = 0;
   unsigned int lineno = 0;