Task #91082 - fixed.err
back to task #91082download
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/src/libkbdfile/kbdfile.c:279:25: warning[-Wanalyzer-malloc-leak]: leak of 'dir'
kbd-2.8.0/src/libkbdfile/kbdfile.c:389:1: enter_function: entry to 'kbdfile_find'
kbd-2.8.0/src/libkbdfile/kbdfile.c:393:12: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:398:9: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:403:12: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:408:13: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:413:21: branch_true: following 'true' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:417:29: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:24: branch_true: following 'true' branch (when 'dl != 0')...
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:41: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:24: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:24: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:424:24: branch_true: following 'true' branch (when 'dl != 0')...
kbd-2.8.0/src/libkbdfile/kbdfile.c:424:41: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:424:24: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:427:20: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:427:20: branch_true: following 'true' branch (when 'dl != 0')...
kbd-2.8.0/src/libkbdfile/kbdfile.c:428:31: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:428:31: acquire_memory: allocated here
kbd-2.8.0/src/libkbdfile/kbdfile.c:432:20: branch_false: following 'false' branch (when 'dir' is non-NULL)...
kbd-2.8.0/src/libkbdfile/kbdfile.c:438:22: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:438:22: call_function: calling 'findfile_in_dir' from 'kbdfile_find'
# 277|
# 278| if (fdir == NULL) {
# 279|-> ERR(fp->ctx, "strndup: %s", kbd_strerror(errno, errbuf, sizeof(errbuf)));
# 280| return -1;
# 281| }
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/src/libkbdfile/kbdfile.c:286:23: warning[-Wanalyzer-malloc-leak]: leak of 'dir'
kbd-2.8.0/src/libkbdfile/kbdfile.c:389:1: enter_function: entry to 'kbdfile_find'
kbd-2.8.0/src/libkbdfile/kbdfile.c:393:12: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:398:9: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:403:12: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:408:13: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:413:21: branch_true: following 'true' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:417:29: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:24: branch_true: following 'true' branch (when 'dl != 0')...
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:41: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:24: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:24: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:424:24: branch_true: following 'true' branch (when 'dl != 0')...
kbd-2.8.0/src/libkbdfile/kbdfile.c:424:41: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:424:24: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:427:20: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:427:20: branch_true: following 'true' branch (when 'dl != 0')...
kbd-2.8.0/src/libkbdfile/kbdfile.c:428:31: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:428:31: acquire_memory: allocated here
kbd-2.8.0/src/libkbdfile/kbdfile.c:432:20: branch_false: following 'false' branch (when 'dir' is non-NULL)...
kbd-2.8.0/src/libkbdfile/kbdfile.c:438:22: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:438:22: call_function: calling 'findfile_in_dir' from 'kbdfile_find'
# 284| struct dirent **namelist = NULL;
# 285|
# 286|-> int dirents = scandir(dir, &namelist, NULL, alphasort);
# 287|
# 288| if (dirents < 0) {
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/src/libkbdfile/kbdfile.c:289:17: warning[-Wanalyzer-malloc-leak]: leak of 'dir'
kbd-2.8.0/src/libkbdfile/kbdfile.c:389:1: enter_function: entry to 'kbdfile_find'
kbd-2.8.0/src/libkbdfile/kbdfile.c:393:12: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:398:9: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:403:12: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:408:13: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:413:21: branch_true: following 'true' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:417:29: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:24: branch_true: following 'true' branch (when 'dl != 0')...
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:41: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:24: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:420:24: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:424:24: branch_true: following 'true' branch (when 'dl != 0')...
kbd-2.8.0/src/libkbdfile/kbdfile.c:424:41: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:424:24: branch_false: following 'false' branch...
kbd-2.8.0/src/libkbdfile/kbdfile.c:427:20: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:427:20: branch_true: following 'true' branch (when 'dl != 0')...
kbd-2.8.0/src/libkbdfile/kbdfile.c:428:31: branch_true: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:428:31: acquire_memory: allocated here
kbd-2.8.0/src/libkbdfile/kbdfile.c:432:20: branch_false: following 'false' branch (when 'dir' is non-NULL)...
kbd-2.8.0/src/libkbdfile/kbdfile.c:438:22: branch_false: ...to here
kbd-2.8.0/src/libkbdfile/kbdfile.c:438:22: call_function: calling 'findfile_in_dir' from 'kbdfile_find'
# 287|
# 288| if (dirents < 0) {
# 289|-> DBG(fp->ctx, "scandir: %s: %s", dir, kbd_strerror(errno, errbuf, sizeof(errbuf)));
# 290| rc = -1;
# 291| goto EndScan;
Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:35:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/charset-keymap0.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:19:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:22:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:23:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:26:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:31:13: acquire_resource: opened here
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:32:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:35:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/charset-keymap0.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 33| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/charset-keymap0.map: %s", strerror(errno));
# 34|
# 35|-> kbdfile_set_file(fp, f);
# 36|
# 37| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:35:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/charset-keymap0.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:19:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:22:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:23:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:26:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:31:13: acquire_memory: allocated here
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:32:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:35:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test01.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/charset-keymap0.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 33| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/charset-keymap0.map: %s", strerror(errno));
# 34|
# 35|-> kbdfile_set_file(fp, f);
# 36|
# 37| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:61:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap0.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:45:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:48:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:49:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:52:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:57:13: acquire_resource: opened here
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:58:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:61:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:61:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap0.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 59| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap0.map: %s", strerror(errno));
# 60|
# 61|-> kbdfile_set_file(fp, f);
# 62|
# 63| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:61:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap0.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:45:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:48:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:49:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:52:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:57:13: acquire_memory: allocated here
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:58:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:61:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test05.c:61:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap0.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 59| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap0.map: %s", strerror(errno));
# 60|
# 61|-> kbdfile_set_file(fp, f);
# 62|
# 63| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:35:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap1.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:19:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:22:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:23:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:26:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:31:13: acquire_resource: opened here
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:32:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:35:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap1.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 33| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap1.map: %s", strerror(errno));
# 34|
# 35|-> kbdfile_set_file(fp, f);
# 36|
# 37| if(lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:35:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap1.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:19:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:22:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:23:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:26:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:31:13: acquire_memory: allocated here
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:32:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:35:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test06.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap1.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 33| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap1.map: %s", strerror(errno));
# 34|
# 35|-> kbdfile_set_file(fp, f);
# 36|
# 37| if(lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:35:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap2.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:19:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:22:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:23:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:26:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:31:13: acquire_resource: opened here
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:32:11: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:35:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap2.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 33| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap2.map: %s", strerror(errno));
# 34|
# 35|-> kbdfile_set_file(fp, f);
# 36|
# 37| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:35:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap2.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:19:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:22:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:23:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:26:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:31:13: acquire_memory: allocated here
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:32:11: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:35:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test07.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap2.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 33| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap2.map: %s", strerror(errno));
# 34|
# 35|-> kbdfile_set_file(fp, f);
# 36|
# 37| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:36:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap3.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:20:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:23:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:24:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:27:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:32:13: acquire_resource: opened here
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:33:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:36:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:36:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap3.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 34| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "data/libkeymap/keymap3.map: %s", strerror(errno));
# 35|
# 36|-> kbdfile_set_file(fp, f);
# 37|
# 38| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:36:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap3.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:20:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:23:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:24:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:27:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:32:13: acquire_memory: allocated here
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:33:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:36:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test08.c:36:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap3.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 34| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "data/libkeymap/keymap3.map: %s", strerror(errno));
# 35|
# 36|-> kbdfile_set_file(fp, f);
# 37|
# 38| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:37:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap4.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:21:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:24:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:25:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:28:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:33:13: acquire_resource: opened here
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:34:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:37:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:37:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap4.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 35| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap4.map: %s", strerror(errno));
# 36|
# 37|-> kbdfile_set_file(fp, f);
# 38|
# 39| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:37:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap4.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:21:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:24:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:25:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:28:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:33:13: acquire_memory: allocated here
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:34:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:37:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test09.c:37:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap4.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 35| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap4.map: %s", strerror(errno));
# 36|
# 37|-> kbdfile_set_file(fp, f);
# 38|
# 39| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:36:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap5.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:20:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:23:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:24:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:27:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:32:13: acquire_resource: opened here
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:33:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:36:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:36:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap5.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 34| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap5.map: %s", strerror(errno));
# 35|
# 36|-> kbdfile_set_file(fp, f);
# 37|
# 38| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:36:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap5.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:20:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:23:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:24:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:27:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:32:13: acquire_memory: allocated here
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:33:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:36:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test10.c:36:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap5.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 34| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap5.map: %s", strerror(errno));
# 35|
# 36|-> kbdfile_set_file(fp, f);
# 37|
# 38| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:35:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap6.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:19:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:22:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:23:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:26:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:31:13: acquire_resource: opened here
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:32:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:35:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap6.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 33| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap6.map: %s", strerror(errno));
# 34|
# 35|-> kbdfile_set_file(fp, f);
# 36|
# 37| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:35:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap6.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:19:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:22:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:23:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:26:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:31:13: acquire_memory: allocated here
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:32:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:35:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test11.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap6.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 33| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap6.map: %s", strerror(errno));
# 34|
# 35|-> kbdfile_set_file(fp, f);
# 36|
# 37| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:34:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap0.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:18:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:21:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:22:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:25:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:30:13: acquire_resource: opened here
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:31:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:34:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:34:9: throw: if ‘kbdfile_set_file’ throws an exception...
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:34:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap0.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 32| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap0.map: %s", strerror(errno));
# 33|
# 34|-> kbdfile_set_file(fp, f);
# 35|
# 36| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:34:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap0.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:18:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:21:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:22:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:25:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:30:13: acquire_memory: allocated here
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:31:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:34:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:34:9: throw: if ‘kbdfile_set_file’ throws an exception...
kbd-2.8.0/tests/libkeymap/libkeymap-test19.c:34:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap0.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 32| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap0.map: %s", strerror(errno));
# 33|
# 34|-> kbdfile_set_file(fp, f);
# 35|
# 36| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-775):
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:35:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap7.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:19:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:22:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:23:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:26:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:31:13: acquire_resource: opened here
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:32:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:35:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap7.map", "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
# 33| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap7.map: %s", strerror(errno));
# 34|
# 35|-> kbdfile_set_file(fp, f);
# 36|
# 37| if (lk_parse_keymap(ctx, fp) != 0)
Error: GCC_ANALYZER_WARNING (CWE-401):
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:35:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap7.map", "r")’
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:19:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:22:14: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:23:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:26:15: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:31:13: acquire_memory: allocated here
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:32:12: branch_false: following ‘false’ branch...
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:35:9: branch_false: ...to here
kbd-2.8.0/tests/libkeymap/libkeymap-test20.c:35:9: danger: ‘fopen("/builddir/build/BUILD/kbd-2.8.0/tests/data/libkeymap/keymap7.map", "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 33| kbd_error(EXIT_FAILURE, 0, "Unable to open: " TESTDIR "/data/libkeymap/keymap7.map: %s", strerror(errno));
# 34|
# 35|-> kbdfile_set_file(fp, f);
# 36|
# 37| if (lk_parse_keymap(ctx, fp) != 0)