Skip to content

Commit

Permalink
Fix valgrind warning on aarch64/glibc 2.31
Browse files Browse the repository at this point in the history
tests/mantest were failing on Raspberry Pi OS 11:

==10205== Conditional jump or move depends on uninitialised value(s)
==10205==    at 0x48806F8: checkfail (jq_test.c:58)
==10205==    by 0x48806F8: run_jq_tests (jq_test.c:99)
==10205==    by 0x4880FCB: jq_testsuite (jq_test.c:39)
==10205==    by 0x10B37F: main (main.c:576)
==10205==
==10205== Conditional jump or move depends on uninitialised value(s)
==10205==    at 0x4880714: checkfail (jq_test.c:58)
==10205==    by 0x4880714: run_jq_tests (jq_test.c:99)
==10205==    by 0x4880FCB: jq_testsuite (jq_test.c:39)
==10205==    by 0x10B37F: main (main.c:576)
  • Loading branch information
colinleroy committed Mar 18, 2024
1 parent 10ea3c7 commit d697331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jq_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static void test_err_cb(void *data, jv e) {
}

static void run_jq_tests(jv lib_dirs, int verbose, FILE *testdata, int skip, int take) {
char prog[4096];
char prog[4096] = {0};
char buf[4096];
struct err_data err_msg;
int tests = 0, passed = 0, invalid = 0;
Expand Down

0 comments on commit d697331

Please sign in to comment.