libxkbcommon-1.12.2-1.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:83:37: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(keymap_path, "r")’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:77:8: branch_true: following ‘true’ branch (when ‘keymap_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:78:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:78:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:79:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:83:37: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:83:37: danger: ‘fopen(keymap_path, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   81|               return NULL;
#   82|           }
#   83|->         struct xkb_keymap *keymap = xkb_keymap_new_from_file(
#   84|               ctx, file, format, XKB_KEYMAP_COMPILE_NO_FLAGS
#   85|           );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:83:37: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(keymap_path, "r")’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:77:8: branch_true: following ‘true’ branch (when ‘keymap_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:78:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:78:22: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:79:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:83:37: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:83:37: danger: ‘fopen(keymap_path, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   81|               return NULL;
#   82|           }
#   83|->         struct xkb_keymap *keymap = xkb_keymap_new_from_file(
#   84|               ctx, file, format, XKB_KEYMAP_COMPILE_NO_FLAGS
#   85|           );

Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:275:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(keymap_path, "r")’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:159:12: branch_false: following ‘false’ branch (when ‘c != -1’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:162:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_true: following ‘true’ branch (when ‘keymap_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:269:23: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:269:23: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:270:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:275:14: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:275:14: danger: ‘fopen(keymap_path, "r")’ leaks here; was opened at [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
#  273|               goto keymap_error;
#  274|           }
#  275|->         if (!map_file(keymap_file, &keymap_str, &keymap_str_length)) {
#  276|               fclose(keymap_file);
#  277|               ret = EXIT_FAILURE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:275:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(keymap_path, "r")’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:159:12: branch_false: following ‘false’ branch (when ‘c != -1’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:162:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_true: following ‘true’ branch (when ‘keymap_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:269:23: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:269:23: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:270:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:275:14: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:275:14: danger: ‘fopen(keymap_path, "r")’ leaks here; was allocated at [(19)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/18)
#  273|               goto keymap_error;
#  274|           }
#  275|->         if (!map_file(keymap_file, &keymap_str, &keymap_str_length)) {
#  276|               fclose(keymap_file);
#  277|               ret = EXIT_FAILURE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:303:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:303:22: danger: ‘stdout_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/18)
#  301|       fflush(stdout);
#  302|       int stdout_old = dup(STDOUT_FILENO);
#  303|->     int stdout_new = open("/dev/null", O_WRONLY);
#  304|       if (stdout_old == -1 || stdout_new == -1 ||
#  305|           dup2(stdout_new, STDOUT_FILENO) == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 1), 1)’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: danger: ‘dup2(open("/dev/null", 1), 1)’ leaks here; was opened at [(21)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/20)
#  302|       int stdout_old = dup(STDOUT_FILENO);
#  303|       int stdout_new = open("/dev/null", O_WRONLY);
#  304|->     if (stdout_old == -1 || stdout_new == -1 ||
#  305|           dup2(stdout_new, STDOUT_FILENO) == -1) {
#  306|           perror("Stdout error");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:303:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(19)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/18)
#  302|       int stdout_old = dup(STDOUT_FILENO);
#  303|       int stdout_new = open("/dev/null", O_WRONLY);
#  304|->     if (stdout_old == -1 || stdout_new == -1 ||
#  305|           dup2(stdout_new, STDOUT_FILENO) == -1) {
#  306|           perror("Stdout error");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:306:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:306:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:306:9: danger: ‘stdout_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/18)
#  304|       if (stdout_old == -1 || stdout_new == -1 ||
#  305|           dup2(stdout_new, STDOUT_FILENO) == -1) {
#  306|->         perror("Stdout error");
#  307|           exit(EXIT_FAILURE);
#  308|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: danger: ‘stdout_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/18)
#  307|           exit(EXIT_FAILURE);
#  308|       }
#  309|->     close(stdout_new);
#  310|       fflush(stderr);
#  311|       int stderr_old = dup(STDERR_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:310:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:303:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:310:5: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(19)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/18)
#  308|       }
#  309|       close(stdout_new);
#  310|->     fflush(stderr);
#  311|       int stderr_old = dup(STDERR_FILENO);
#  312|       int stderr_new = open("/dev/null", O_WRONLY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:310:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:310:5: danger: ‘stdout_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/18)
#  308|       }
#  309|       close(stdout_new);
#  310|->     fflush(stderr);
#  311|       int stderr_old = dup(STDERR_FILENO);
#  312|       int stderr_new = open("/dev/null", O_WRONLY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def12]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:312:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:312:22: danger: ‘stderr_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/22)
#  310|       fflush(stderr);
#  311|       int stderr_old = dup(STDERR_FILENO);
#  312|->     int stderr_new = open("/dev/null", O_WRONLY);
#  313|       if (stderr_old == -1 || stderr_new == -1 ||
#  314|           dup2(stderr_new, STDERR_FILENO) == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:312:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:312:22: danger: ‘stdout_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/18)
#  310|       fflush(stderr);
#  311|       int stderr_old = dup(STDERR_FILENO);
#  312|->     int stderr_new = open("/dev/null", O_WRONLY);
#  313|       if (stderr_old == -1 || stderr_new == -1 ||
#  314|           dup2(stderr_new, STDERR_FILENO) == -1) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open("/dev/null", 1), 2)’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: danger: ‘dup2(open("/dev/null", 1), 2)’ leaks here; was opened at [(25)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/24)
#  311|       int stderr_old = dup(STDERR_FILENO);
#  312|       int stderr_new = open("/dev/null", O_WRONLY);
#  313|->     if (stderr_old == -1 || stderr_new == -1 ||
#  314|           dup2(stderr_new, STDERR_FILENO) == -1) {
#  315|           perror("Stderr error");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:312:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(23)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/22)
#  311|       int stderr_old = dup(STDERR_FILENO);
#  312|       int stderr_new = open("/dev/null", O_WRONLY);
#  313|->     if (stderr_old == -1 || stderr_new == -1 ||
#  314|           dup2(stderr_new, STDERR_FILENO) == -1) {
#  315|           perror("Stderr error");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:315:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:315:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:315:9: danger: ‘stderr_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/22)
#  313|       if (stderr_old == -1 || stderr_new == -1 ||
#  314|           dup2(stderr_new, STDERR_FILENO) == -1) {
#  315|->         perror("Stderr error");
#  316|           exit(EXIT_FAILURE);
#  317|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:315:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:315:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:315:9: danger: ‘stdout_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/18)
#  313|       if (stderr_old == -1 || stderr_new == -1 ||
#  314|           dup2(stderr_new, STDERR_FILENO) == -1) {
#  315|->         perror("Stderr error");
#  316|           exit(EXIT_FAILURE);
#  317|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: danger: ‘stderr_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/22)
#  316|           exit(EXIT_FAILURE);
#  317|       }
#  318|->     close(stderr_new);
#  319|   
#  320|       if (explicit_iterations) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: danger: ‘stdout_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/18)
#  316|           exit(EXIT_FAILURE);
#  317|       }
#  318|->     close(stderr_new);
#  319|   
#  320|       if (explicit_iterations) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:312:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(23)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/22)
#  318|       close(stderr_new);
#  319|   
#  320|->     if (explicit_iterations) {
#  321|           stdev = 0;
#  322|           bench_start2(&bench);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: danger: ‘stderr_old’ leaks here; was opened at [(27)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/26)
#  320|       if (explicit_iterations) {
#  321|           stdev = 0;
#  322|->         bench_start2(&bench);
#  323|           for (unsigned int i = 0; i < max_iterations; i++) {
#  324|   #ifdef KEYMAP_DUMP

Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: danger: ‘stdout_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/22)
#  320|       if (explicit_iterations) {
#  321|           stdev = 0;
#  322|->         bench_start2(&bench);
#  323|           for (unsigned int i = 0; i < max_iterations; i++) {
#  324|   #ifdef KEYMAP_DUMP

Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:325:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:301:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:325:23: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:325:23: danger: ‘stderr_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/22)
#  323|           for (unsigned int i = 0; i < max_iterations; i++) {
#  324|   #ifdef KEYMAP_DUMP
#  325|->             char *s = xkb_keymap_get_as_string2(keymap, keymap_output_format,
#  326|                                                   serialize_flags);
#  327|               assert(s);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:325:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:301:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:325:23: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:325:23: danger: ‘stdout_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/18)
#  323|           for (unsigned int i = 0; i < max_iterations; i++) {
#  324|   #ifdef KEYMAP_DUMP
#  325|->             char *s = xkb_keymap_get_as_string2(keymap, keymap_output_format,
#  326|                                                   serialize_flags);
#  327|               assert(s);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: danger: ‘stderr_old’ leaks here; was opened at [(27)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/26)
#  328|               free(s);
#  329|   #else
#  330|->             keymap = xkb_keymap_new_from_buffer(
#  331|                   context, keymap_str, keymap_str_length,
#  332|                   keymap_input_format, XKB_KEYMAP_COMPILE_NO_FLAGS

Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: danger: ‘stdout_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/22)
#  328|               free(s);
#  329|   #else
#  330|->             keymap = xkb_keymap_new_from_buffer(
#  331|                   context, keymap_str, keymap_str_length,
#  332|                   keymap_input_format, XKB_KEYMAP_COMPILE_NO_FLAGS

Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: danger: ‘stderr_old’ leaks here; was opened at [(27)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/26)
#  333|               );
#  334|               assert(keymap);
#  335|->             xkb_keymap_unref(keymap);
#  336|   #endif
#  337|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: danger: ‘stdout_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/22)
#  333|               );
#  334|               assert(keymap);
#  335|->             xkb_keymap_unref(keymap);
#  336|   #endif
#  337|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:338:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:338:9: danger: ‘stderr_old’ leaks here; was opened at [(27)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/26)
#  336|   #endif
#  337|           }
#  338|->         bench_stop2(&bench);
#  339|   
#  340|           bench_elapsed(&bench, &elapsed);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:338:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:338:9: danger: ‘stdout_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/22)
#  336|   #endif
#  337|           }
#  338|->         bench_stop2(&bench);
#  339|   
#  340|           bench_elapsed(&bench, &elapsed);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:340:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:340:9: danger: ‘stderr_old’ leaks here; was opened at [(27)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/26)
#  338|           bench_stop2(&bench);
#  339|   
#  340|->         bench_elapsed(&bench, &elapsed);
#  341|           est.elapsed = (bench_time_elapsed_nanoseconds(&elapsed)) / max_iterations;
#  342|           est.stdev = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:340:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_true: following ‘true’ branch (when ‘explicit_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:322:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:340:9: danger: ‘stdout_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/22)
#  338|           bench_stop2(&bench);
#  339|   
#  340|->         bench_elapsed(&bench, &elapsed);
#  341|           est.elapsed = (bench_time_elapsed_nanoseconds(&elapsed)) / max_iterations;
#  342|           est.stdev = 0;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_false: following ‘false’ branch (when ‘explicit_iterations == 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: danger: ‘stderr_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/22)
#  342|           est.stdev = 0;
#  343|       } else {
#  344|->         bench_start2(&bench);
#  345|   #ifdef KEYMAP_DUMP
#  346|           BENCH(stdev, max_iterations, elapsed, est,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_false: following ‘false’ branch (when ‘explicit_iterations == 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: danger: ‘stdout_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/18)
#  342|           est.stdev = 0;
#  343|       } else {
#  344|->         bench_start2(&bench);
#  345|   #ifdef KEYMAP_DUMP
#  346|           BENCH(stdev, max_iterations, elapsed, est,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:346:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:301:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_false: following ‘false’ branch (when ‘explicit_iterations == 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:346:9: danger: ‘stderr_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/18)
#  344|           bench_start2(&bench);
#  345|   #ifdef KEYMAP_DUMP
#  346|->         BENCH(stdev, max_iterations, elapsed, est,
#  347|               char *s = xkb_keymap_get_as_string2(keymap, keymap_output_format,
#  348|                                                   serialize_flags);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:346:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:301:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_false: following ‘false’ branch (when ‘explicit_iterations == 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:346:9: danger: ‘stdout_old’ leaks here; was opened at [(15)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/14)
#  344|           bench_start2(&bench);
#  345|   #ifdef KEYMAP_DUMP
#  346|->         BENCH(stdev, max_iterations, elapsed, est,
#  347|               char *s = xkb_keymap_get_as_string2(keymap, keymap_output_format,
#  348|                                                   serialize_flags);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_false: following ‘false’ branch (when ‘explicit_iterations == 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: danger: ‘stderr_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/22)
#  351|           );
#  352|   #else
#  353|->         BENCH(stdev, max_iterations, elapsed, est,
#  354|               keymap = xkb_keymap_new_from_buffer(
#  355|                   context, keymap_str, keymap_str_length,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_false: following ‘false’ branch (when ‘explicit_iterations == 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: danger: ‘stdout_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/18)
#  351|           );
#  352|   #else
#  353|->         BENCH(stdev, max_iterations, elapsed, est,
#  354|               keymap = xkb_keymap_new_from_buffer(
#  355|                   context, keymap_str, keymap_str_length,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:362:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_false: following ‘false’ branch (when ‘explicit_iterations == 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:362:9: danger: ‘stderr_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/22)
#  360|           );
#  361|   #endif
#  362|->         bench_stop2(&bench);
#  363|       }
#  364|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:362:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:320:8: branch_false: following ‘false’ branch (when ‘explicit_iterations == 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:344:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:353:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:362:9: danger: ‘stdout_old’ leaks here; was opened at [(19)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/18)
#  360|           );
#  361|   #endif
#  362|->         bench_stop2(&bench);
#  363|       }
#  364|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def41]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:366:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:366:5: danger: ‘stderr_old’ leaks here; was opened at [(27)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/26)
#  364|   
#  365|       /* Restore stdout and stderr outputs */
#  366|->     fflush(stdout);
#  367|       dup2(stdout_old, STDOUT_FILENO);
#  368|       close(stdout_old);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:366:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:366:5: danger: ‘stdout_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/22)
#  364|   
#  365|       /* Restore stdout and stderr outputs */
#  366|->     fflush(stdout);
#  367|       dup2(stdout_old, STDOUT_FILENO);
#  368|       close(stdout_old);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:368:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:368:5: danger: ‘stderr_old’ leaks here; was opened at [(27)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/26)
#  366|       fflush(stdout);
#  367|       dup2(stdout_old, STDOUT_FILENO);
#  368|->     close(stdout_old);
#  369|       fflush(stderr);
#  370|       dup2(stderr_old, STDERR_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:368:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdout_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:302:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:368:5: danger: ‘stdout_old’ leaks here; was opened at [(23)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/22)
#  366|       fflush(stdout);
#  367|       dup2(stdout_old, STDOUT_FILENO);
#  368|->     close(stdout_old);
#  369|       fflush(stderr);
#  370|       dup2(stderr_old, STDERR_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:369:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:369:5: danger: ‘stderr_old’ leaks here; was opened at [(27)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/26)
#  367|       dup2(stdout_old, STDOUT_FILENO);
#  368|       close(stdout_old);
#  369|->     fflush(stderr);
#  370|       dup2(stderr_old, STDERR_FILENO);
#  371|       close(stderr_old);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:371:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stderr_old’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:95:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:209:16: branch_false: following ‘false’ branch (when ‘max_iterations != 0’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:214:48: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:215:20: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:155:15: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:239:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:240:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:244:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:249:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: call_function: calling ‘load_keymap’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:252:33: return_function: returning to ‘main’ from ‘load_keymap’
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:256:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:264:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:267:8: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:287:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:290:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:295:29: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:304:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:309:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:311:22: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:314:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:313:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:318:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:323:34: branch_true: following ‘true’ branch (when ‘max_iterations > i’)...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:330:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:334:13: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:335:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compile-keymap.c:371:5: danger: ‘stderr_old’ leaks here; was opened at [(27)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/26)
#  369|       fflush(stderr);
#  370|       dup2(stderr_old, STDERR_FILENO);
#  371|->     close(stderr_old);
#  372|   
#  373|   #ifdef KEYMAP_DUMP

Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:57:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:43:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:45:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:46:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:53:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:57:13: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   55|       xkb_enable_quiet_logging(ctx);
#   56|   
#   57|->     table = xkb_compose_table_new_from_file(ctx, file, "",
#   58|                                               XKB_COMPOSE_FORMAT_TEXT_V1,
#   59|                                               XKB_COMPOSE_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:57:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:43:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:45:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:46:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:53:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose-traversal.c:57:13: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   55|       xkb_enable_quiet_logging(ctx);
#   56|   
#   57|->     table = xkb_compose_table_new_from_file(ctx, file, "",
#   58|                                               XKB_COMPOSE_FORMAT_TEXT_V1,
#   59|                                               XKB_COMPOSE_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:41:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:31:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:41:5: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   39|       xkb_enable_quiet_logging(ctx);
#   40|   
#   41|->     bench_start(&bench);
#   42|       for (int i = 0; i < BENCHMARK_ITERATIONS; i++) {
#   43|           fseek(file, 0, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:41:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:31:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:41:5: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#   39|       xkb_enable_quiet_logging(ctx);
#   40|   
#   41|->     bench_start(&bench);
#   42|       for (int i = 0; i < BENCHMARK_ITERATIONS; i++) {
#   43|           fseek(file, 0, SEEK_SET);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:43:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:31:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:42:21: branch_true: following ‘true’ branch (when ‘i != 1000’)...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:43:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:43:9: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#   41|       bench_start(&bench);
#   42|       for (int i = 0; i < BENCHMARK_ITERATIONS; i++) {
#   43|->         fseek(file, 0, SEEK_SET);
#   44|           table = xkb_compose_table_new_from_file(ctx, file, "",
#   45|                                                   XKB_COMPOSE_FORMAT_TEXT_V1,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:43:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:31:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:42:21: branch_true: following ‘true’ branch (when ‘i != 1000’)...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:43:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:43:9: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#   41|       bench_start(&bench);
#   42|       for (int i = 0; i < BENCHMARK_ITERATIONS; i++) {
#   43|->         fseek(file, 0, SEEK_SET);
#   44|           table = xkb_compose_table_new_from_file(ctx, file, "",
#   45|                                                   XKB_COMPOSE_FORMAT_TEXT_V1,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def53]
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:44:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:31:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:42:21: branch_true: following ‘true’ branch (when ‘i != 1000’)...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:43:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:44:17: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#   42|       for (int i = 0; i < BENCHMARK_ITERATIONS; i++) {
#   43|           fseek(file, 0, SEEK_SET);
#   44|->         table = xkb_compose_table_new_from_file(ctx, file, "",
#   45|                                                   XKB_COMPOSE_FORMAT_TEXT_V1,
#   46|                                                   XKB_COMPOSE_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:44:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:31:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:42:21: branch_true: following ‘true’ branch (when ‘i != 1000’)...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:43:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:44:17: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#   42|       for (int i = 0; i < BENCHMARK_ITERATIONS; i++) {
#   43|           fseek(file, 0, SEEK_SET);
#   44|->         table = xkb_compose_table_new_from_file(ctx, file, "",
#   45|                                                   XKB_COMPOSE_FORMAT_TEXT_V1,
#   46|                                                   XKB_COMPOSE_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def55]
libxkbcommon-xkbcommon-1.12.2/bench/custom-parsers.c:120:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("../bench/custom-parsers.c", "r")’
libxkbcommon-xkbcommon-1.12.2/bench/custom-parsers.c:116:18: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/custom-parsers.c:117:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/custom-parsers.c:118:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/custom-parsers.c:120:5: danger: ‘fopen("../bench/custom-parsers.c", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  118|       size_t size = 0;
#  119|       char *content = NULL;
#  120|->     map_file(file, &content, &size);
#  121|       assert(content);
#  122|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libxkbcommon-xkbcommon-1.12.2/bench/custom-parsers.c:120:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("../bench/custom-parsers.c", "r")’
libxkbcommon-xkbcommon-1.12.2/bench/custom-parsers.c:116:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/bench/custom-parsers.c:117:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/custom-parsers.c:118:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/custom-parsers.c:120:5: danger: ‘fopen("../bench/custom-parsers.c", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  118|       size_t size = 0;
#  119|       char *content = NULL;
#  120|->     map_file(file, &content, &size);
#  121|       assert(content);
#  122|   

Error: UNICONTROL_WARNING (CWE-94): [#def57]
libxkbcommon-xkbcommon-1.12.2/doc/keymap-text-format-v1-v2.md:2166: warning: bidirectional control characters: ['\u2067', '\u2069', '\u2067', '\u2069']
# 2164|   key <AD08> { [ {i, j}        , U0132         ] }; // IJ Dutch digraph
# 2165|   key <AC05> { [ {g, U0303}    , {G, U0303}    ] }; // G̃ Guarani letter
# 2166|-> key <AB05> { [ {U0644, U0627}, {U0644, U0622}] }; // ⁧لا⁩ ⁧لآ⁩ Arabic Lam-Alef ligatures decomposed
# 2167|   key <AD01> { [ {c, U2019, h} , {C, U2019, h} ] }; // C’H Breton trigraph
# 2168|   ```

Error: UNICONTROL_WARNING (CWE-94): [#def58]
libxkbcommon-xkbcommon-1.12.2/doc/keymap-text-format-v1-v2.md:2184: warning: bidirectional control characters: ['\u2067', '\u2069', '\u2067', '\u2069']
# 2182|   // NOTE: We use U+200E LEFT-TO-RIGHT MARK in order to display the strings in
# 2183|   //       in the proper order.
# 2184|-> key <AB05> { [ "لا"‎  , "لآ"‎   ] }; // ⁧لا⁩ ⁧لآ⁩ Arabic Lam-Alef ligatures decomposed
# 2185|   key <AD01> { [ "c’h", "C’h" ] }; // C’H Breton trigraph
# 2186|   ```

Error: GCC_ANALYZER_WARNING (CWE-775): [#def59]
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:36:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "rb")’
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:20:8: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:25:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:26:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:34:16: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:34:16: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:35:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:36:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:36:17: danger: ‘fopen(argv[1], "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   34|           file = fopen(argv[1], "rb");
#   35|           assert(file);
#   36|->         table = xkb_compose_table_new_from_file(ctx, file,
#   37|                                                   "en_US.UTF-8",
#   38|                                                   XKB_COMPOSE_FORMAT_TEXT_V1,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:36:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "rb")’
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:20:8: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:25:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:26:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:34:16: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:34:16: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:35:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:36:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/compose/target.c:36:17: danger: ‘fopen(argv[1], "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   34|           file = fopen(argv[1], "rb");
#   35|           assert(file);
#   36|->         table = xkb_compose_table_new_from_file(ctx, file,
#   37|                                                   "en_US.UTF-8",
#   38|                                                   XKB_COMPOSE_FORMAT_TEXT_V1,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def61]
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:35:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(argv[1], "rb")’
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:19:8: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:24:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:25:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:33:16: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:33:16: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:34:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:35:18: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:35:18: danger: ‘fopen(argv[1], "rb")’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   33|           file = fopen(argv[1], "rb");
#   34|           assert(file);
#   35|->         keymap = xkb_keymap_new_from_file(ctx, file,
#   36|                                             XKB_KEYMAP_FORMAT_TEXT_V1,
#   37|                                             XKB_KEYMAP_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:35:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(argv[1], "rb")’
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:19:8: branch_false: following ‘false’ branch (when ‘argc == 2’)...
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:24:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:25:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:33:16: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:33:16: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:34:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:35:18: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/fuzz/keymap/target.c:35:18: danger: ‘fopen(argv[1], "rb")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   33|           file = fopen(argv[1], "rb");
#   34|           assert(file);
#   35|->         keymap = xkb_keymap_new_from_file(ctx, file,
#   36|                                             XKB_KEYMAP_FORMAT_TEXT_V1,
#   37|                                             XKB_KEYMAP_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def63]
libxkbcommon-xkbcommon-1.12.2/redhat-linux-build/export-keysyms.p/parser.c:2016:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 2014|           if (! yyptr)
# 2015|             YYNOMEM;
# 2016|->         YYSTACK_RELOCATE (yyss_alloc, yyss);
# 2017|           YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# 2018|   #  undef YYSTACK_RELOCATE

Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
libxkbcommon-xkbcommon-1.12.2/redhat-linux-build/export-keysyms.p/parser.c:2062:16: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 2060|       {
# 2061|         YYDPRINTF ((stderr, "Reading a token\n"));
# 2062|->       yychar = yylex (&yylval, param_scanner);
# 2063|       }
# 2064|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def65]
libxkbcommon-xkbcommon-1.12.2/redhat-linux-build/export-keysyms.p/parser.c:2143:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 2141|        unconditionally makes the parser a bit smaller, and it avoids a
# 2142|        GCC warning that YYVAL may be used uninitialized.  */
# 2143|->   yyval = yyvsp[1-yylen];
# 2144|   
# 2145|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def66]
libxkbcommon-xkbcommon-1.12.2/redhat-linux-build/libxkbcommon-test-internal.so.p/parser.c:2016:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 2014|           if (! yyptr)
# 2015|             YYNOMEM;
# 2016|->         YYSTACK_RELOCATE (yyss_alloc, yyss);
# 2017|           YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# 2018|   #  undef YYSTACK_RELOCATE

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
libxkbcommon-xkbcommon-1.12.2/redhat-linux-build/libxkbcommon-test-internal.so.p/parser.c:2062:16: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 2060|       {
# 2061|         YYDPRINTF ((stderr, "Reading a token\n"));
# 2062|->       yychar = yylex (&yylval, param_scanner);
# 2063|       }
# 2064|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def68]
libxkbcommon-xkbcommon-1.12.2/redhat-linux-build/libxkbcommon-test-internal.so.p/parser.c:2143:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 2141|        unconditionally makes the parser a bit smaller, and it avoids a
# 2142|        GCC warning that YYVAL may be used uninitialized.  */
# 2143|->   yyval = yyvsp[1-yylen];
# 2144|   
# 2145|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def69]
libxkbcommon-xkbcommon-1.12.2/redhat-linux-build/libxkbcommon.so.0.12.2.p/parser.c:2016:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 2014|           if (! yyptr)
# 2015|             YYNOMEM;
# 2016|->         YYSTACK_RELOCATE (yyss_alloc, yyss);
# 2017|           YYSTACK_RELOCATE (yyvs_alloc, yyvs);
# 2018|   #  undef YYSTACK_RELOCATE

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
libxkbcommon-xkbcommon-1.12.2/redhat-linux-build/libxkbcommon.so.0.12.2.p/parser.c:2062:16: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 2060|       {
# 2061|         YYDPRINTF ((stderr, "Reading a token\n"));
# 2062|->       yychar = yylex (&yylval, param_scanner);
# 2063|       }
# 2064|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def71]
libxkbcommon-xkbcommon-1.12.2/redhat-linux-build/libxkbcommon.so.0.12.2.p/parser.c:2143:3: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 2141|        unconditionally makes the parser a bit smaller, and it avoids a
# 2142|        GCC warning that YYVAL may be used uninitialized.  */
# 2143|->   yyval = yyvsp[1-yylen];
# 2144|   
# 2145|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def72]
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:532:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:517:8: branch_false: following ‘false’ branch (when ‘include_depth <= 4’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:524:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:524:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:525:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:532:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:532:10: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  530|       }
#  531|   
#  532|->     ok = map_file(file, &string, &size);
#  533|       if (!ok) {
#  534|           scanner_err(s, XKB_LOG_MESSAGE_NO_ID,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:532:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:517:8: branch_false: following ‘false’ branch (when ‘include_depth <= 4’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:524:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:524:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:525:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:532:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/parser.c:532:10: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  530|       }
#  531|   
#  532|->     ok = map_file(file, &string, &size);
#  533|       if (!ok) {
#  534|           scanner_err(s, XKB_LOG_MESSAGE_NO_ID,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def74]
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:62:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "rb")’
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:55:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:58:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:58:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:59:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:62:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:62:10: danger: ‘fopen(&path, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   60|           return NULL;
#   61|   
#   62|->     ok = map_file(file, &string, &string_size);
#   63|       fclose(file);
#   64|       if (!ok)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:62:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "rb")’
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:55:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:58:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:58:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:59:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:62:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/paths.c:62:10: danger: ‘fopen(&path, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   60|           return NULL;
#   61|   
#   62|->     ok = map_file(file, &string, &string_size);
#   63|       fclose(file);
#   64|       if (!ok)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
libxkbcommon-xkbcommon-1.12.2/src/compose/state.c:43:20: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
libxkbcommon-xkbcommon-1.12.2/src/compose/state.c:38:13: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/compose/state.c:39:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/compose/state.c:42:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/state.c:43:20: danger: ‘state’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   41|   
#   42|       state->refcnt = 1;
#   43|->     state->table = xkb_compose_table_ref(table);
#   44|   
#   45|       state->flags = flags;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:39:18: warning[-Wanalyzer-malloc-leak]: leak of ‘table’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:29:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:32:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:32:13: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:33:8: branch_false: following ‘false’ branch (when ‘table’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:38:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:39:18: danger: ‘table’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   37|   
#   38|       table->refcnt = 1;
#   39|->     table->ctx = xkb_context_ref(ctx);
#   40|   
#   41|       table->locale = resolved_locale;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:52:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*table.nodes.item’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:29:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:32:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:33:8: branch_false: following ‘false’ branch (when ‘table’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:38:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:52:5: acquire_memory: this call could return NULL
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:52:5: danger: ‘*table.nodes.item’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#   50|       dummy.leaf.utf8 = 0;
#   51|       dummy.leaf.keysym = XKB_KEY_NoSymbol;
#   52|->     darray_append(table->nodes, dummy);
#   53|   
#   54|       darray_append(table->utf8, '\0');

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:54:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*table.utf8.item’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:29:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:32:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:33:8: branch_false: following ‘false’ branch (when ‘table’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:38:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:54:5: acquire_memory: this call could return NULL
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:54:5: danger: ‘*table.utf8.item’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#   52|       darray_append(table->nodes, dummy);
#   53|   
#   54|->     darray_append(table->utf8, '\0');
#   55|   
#   56|       return table;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:70:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:179:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:181:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:185:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:187:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:191:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:193:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:198:5: call_function: calling ‘xkb_compose_table_unref’ from ‘xkb_compose_table_new_from_locale’
#   68|   xkb_compose_table_unref(struct xkb_compose_table *table)
#   69|   {
#   70|->     assert(!table || table->refcnt > 0);
#   71|       if (!table || --table->refcnt > 0)
#   72|           return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:106:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:81:1: enter_function: entry to ‘xkb_compose_table_new_from_file’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:90:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:96:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:96:8: branch_false: following ‘false’ branch (when ‘format == 1’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:102:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:102:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_file’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:102:13: return_function: returning to ‘xkb_compose_table_new_from_file’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:103:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:106:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:106:10: danger: ‘<unknown>’ leaks here; was allocated at [(12)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/11)
#  104|           return NULL;
#  105|   
#  106|->     ok = parse_file(table, file, "(unknown file)");
#  107|       if (!ok) {
#  108|           xkb_compose_table_unref(table);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:106:10: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:81:1: enter_function: entry to ‘xkb_compose_table_new_from_file’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:90:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:96:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:96:8: branch_false: following ‘false’ branch (when ‘format == 1’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:102:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:102:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_file’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:102:13: return_function: returning to ‘xkb_compose_table_new_from_file’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:103:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:106:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:106:10: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
#  104|           return NULL;
#  105|   
#  106|->     ok = parse_file(table, file, "(unknown file)");
#  107|       if (!ok) {
#  108|           xkb_compose_table_unref(table);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:141:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:116:1: enter_function: entry to ‘xkb_compose_table_new_from_buffer’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:125:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:131:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:131:8: branch_false: following ‘false’ branch (when ‘format == 1’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:137:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:137:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_buffer’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:137:13: return_function: returning to ‘xkb_compose_table_new_from_buffer’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:138:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:141:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:141:10: danger: ‘<unknown>’ leaks here; was allocated at [(12)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/11)
#  139|           return NULL;
#  140|   
#  141|->     ok = parse_string(table, buffer, length, "(input string)");
#  142|       if (!ok) {
#  143|           xkb_compose_table_unref(table);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:141:10: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:116:1: enter_function: entry to ‘xkb_compose_table_new_from_buffer’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:125:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:131:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:131:8: branch_false: following ‘false’ branch (when ‘format == 1’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:137:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:137:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_buffer’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:137:13: return_function: returning to ‘xkb_compose_table_new_from_buffer’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:138:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:141:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:141:10: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/9)
#  139|           return NULL;
#  140|   
#  141|->     ok = parse_string(table, buffer, length, "(input string)");
#  142|       if (!ok) {
#  143|           xkb_compose_table_unref(table);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/9)
#  169|           return NULL;
#  170|   
#  171|->     path = get_xcomposefile_path(ctx);
#  172|       file = open_file(path);
#  173|       if (file)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/7)
#  169|           return NULL;
#  170|   
#  171|->     path = get_xcomposefile_path(ctx);
#  172|       file = open_file(path);
#  173|       if (file)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:172:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:172:12: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/9)
#  170|   
#  171|       path = get_xcomposefile_path(ctx);
#  172|->     file = open_file(path);
#  173|       if (file)
#  174|           goto found_path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:172:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:172:12: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/7)
#  170|   
#  171|       path = get_xcomposefile_path(ctx);
#  172|->     file = open_file(path);
#  173|       if (file)
#  174|           goto found_path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:177:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:177:12: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/9)
#  175|       free(path);
#  176|   
#  177|->     path = get_xdg_xcompose_file_path(ctx);
#  178|       file = open_file(path);
#  179|       if (file)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:177:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:177:12: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/7)
#  175|       free(path);
#  176|   
#  177|->     path = get_xdg_xcompose_file_path(ctx);
#  178|       file = open_file(path);
#  179|       if (file)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:178:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:178:12: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/9)
#  176|   
#  177|       path = get_xdg_xcompose_file_path(ctx);
#  178|->     file = open_file(path);
#  179|       if (file)
#  180|           goto found_path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:178:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:178:12: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/7)
#  176|   
#  177|       path = get_xdg_xcompose_file_path(ctx);
#  178|->     file = open_file(path);
#  179|       if (file)
#  180|           goto found_path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:183:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:179:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:181:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:183:12: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/9)
#  181|       free(path);
#  182|   
#  183|->     path = get_home_xcompose_file_path(ctx);
#  184|       file = open_file(path);
#  185|       if (file)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:183:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:179:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:181:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:183:12: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/7)
#  181|       free(path);
#  182|   
#  183|->     path = get_home_xcompose_file_path(ctx);
#  184|       file = open_file(path);
#  185|       if (file)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:184:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:179:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:181:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:184:12: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/9)
#  182|   
#  183|       path = get_home_xcompose_file_path(ctx);
#  184|->     file = open_file(path);
#  185|       if (file)
#  186|           goto found_path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:184:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:179:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:181:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:184:12: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/7)
#  182|   
#  183|       path = get_home_xcompose_file_path(ctx);
#  184|->     file = open_file(path);
#  185|       if (file)
#  186|           goto found_path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:189:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:179:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:181:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:185:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:187:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:189:12: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/9)
#  187|       free(path);
#  188|   
#  189|->     path = get_locale_compose_file_path(ctx, table->locale);
#  190|       file = open_file(path);
#  191|       if (file)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:189:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:179:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:181:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:185:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:187:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:189:12: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/7)
#  187|       free(path);
#  188|   
#  189|->     path = get_locale_compose_file_path(ctx, table->locale);
#  190|       file = open_file(path);
#  191|       if (file)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:190:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:179:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:181:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:185:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:187:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:190:12: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/9)
#  188|   
#  189|       path = get_locale_compose_file_path(ctx, table->locale);
#  190|->     file = open_file(path);
#  191|       if (file)
#  192|           goto found_path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:190:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:179:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:181:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:185:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:187:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:190:12: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/7)
#  188|   
#  189|       path = get_locale_compose_file_path(ctx, table->locale);
#  190|->     file = open_file(path);
#  191|       if (file)
#  192|           goto found_path;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:195:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:179:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:181:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:185:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:187:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:191:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:193:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:195:5: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/9)
#  193|       free(path);
#  194|   
#  195|->     log_err(ctx, XKB_ERROR_INVALID_COMPOSE_LOCALE,
#  196|               "couldn't find a Compose file for locale \"%s\" (mapped to \"%s\")\n",
#  197|               locale, table->locale);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:195:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:173:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:175:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:179:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:181:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:185:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:187:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:191:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:193:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:195:5: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/7)
#  193|       free(path);
#  194|   
#  195|->     log_err(ctx, XKB_ERROR_INVALID_COMPOSE_LOCALE,
#  196|               "couldn't find a Compose file for locale \"%s\" (mapped to \"%s\")\n",
#  197|               locale, table->locale);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:202:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:202:10: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/9)
#  200|   
#  201|   found_path:
#  202|->     ok = parse_file(table, file, path);
#  203|       fclose(file);
#  204|       if (!ok) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:202:10: warning[-Wanalyzer-malloc-leak]: leak of ‘xkb_compose_table_new(ctx,  locale, 1, 0)’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:151:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:160:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:166:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:168:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:171:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:202:10: danger: ‘xkb_compose_table_new(ctx,  locale, 1, 0)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/7)
#  200|   
#  201|   found_path:
#  202|->     ok = parse_file(table, file, path);
#  203|       fclose(file);
#  204|       if (!ok) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:284:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*iter.pending_nodes.item’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:256:1: enter_function: entry to ‘xkb_compose_table_iterator_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:262:8: branch_false: following ‘false’ branch (when ‘iter’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:265:19: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:265:19: call_function: calling ‘xkb_compose_table_ref’ from ‘xkb_compose_table_iterator_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:265:19: return_function: returning to ‘xkb_compose_table_iterator_new’ from ‘xkb_compose_table_ref’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:267:8: branch_false: following ‘false’ branch (when ‘sequence’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:271:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:276:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:284:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:284:5: acquire_memory: this call could return NULL
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:284:5: danger: ‘*iter.pending_nodes.item’ could be NULL: unchecked value from [(13)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/12)
#  282|           .processed = false
#  283|       };
#  284|->     darray_append(iter->pending_nodes, pending);
#  285|       const struct compose_node *node = &darray_item(iter->table->nodes,
#  286|                                                      pending.offset);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:291:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:256:1: enter_function: entry to ‘xkb_compose_table_iterator_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:262:8: branch_false: following ‘false’ branch (when ‘iter’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:265:19: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:265:19: call_function: calling ‘xkb_compose_table_ref’ from ‘xkb_compose_table_iterator_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:265:19: return_function: returning to ‘xkb_compose_table_iterator_new’ from ‘xkb_compose_table_ref’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:267:8: branch_false: following ‘false’ branch (when ‘sequence’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:271:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:276:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:284:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:284:5: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:289:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:290:26: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:291:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:291:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:289:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:290:26: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:291:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:291:9: call_function: inlined call to ‘darray_next_alloc’ from ‘xkb_compose_table_iterator_new’
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:291:9: call_function: inlined call to ‘darray_next_alloc’ from ‘xkb_compose_table_iterator_new’
libxkbcommon-xkbcommon-1.12.2/src/compose/table.c:291:9: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/12)
#  289|       while (node->lokid) {
#  290|           pending.offset = node->lokid;
#  291|->         darray_append(iter->pending_nodes, pending);
#  292|           node = &darray_item(iter->table->nodes, pending.offset);
#  293|       };

Error: GCC_ANALYZER_WARNING (CWE-404): [#def107]
libxkbcommon-xkbcommon-1.12.2/src/context-priv.c:82:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/src/context-priv.c:78:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/context-priv.c:81:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/src/context-priv.c:82:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   80|   
#   81|       va_start(args, fmt);
#   82|->     ctx->log_fn(ctx, level, fmt, args);
#   83|       va_end(args);
#   84|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
libxkbcommon-xkbcommon-1.12.2/src/context.c:316:11: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
libxkbcommon-xkbcommon-1.12.2/src/context.c:303:31: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/context.c:305:8: branch_false: following ‘false’ branch (when ‘ctx’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/context.c:308:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/context.c:316:11: danger: ‘ctx’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  314|   
#  315|       /* Environment overwrites defaults. */
#  316|->     env = xkb_context_getenv(ctx, "XKB_LOG_LEVEL");
#  317|       if (env)
#  318|           xkb_context_set_log_level(ctx, log_level(env));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
libxkbcommon-xkbcommon-1.12.2/src/darray.h:214:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:53:1: enter_function: entry to ‘xkb_rmlvo_builder_append_layout’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:60:8: branch_false: following ‘false’ branch (when ‘idx <= 31’)...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:71:19: call_function: inlined call to ‘strdup_safe’ from ‘xkb_rmlvo_builder_append_layout’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:75:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:90:24: branch_true: following ‘true’ branch (when ‘options_len > k’)...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:92:42: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:92:23: call_function: inlined call to ‘strdup_safe’ from ‘xkb_rmlvo_builder_append_layout’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:96:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:104:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:104:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:104:9: call_function: inlined call to ‘darray_next_alloc’ from ‘xkb_rmlvo_builder_append_layout’
#  212|   darray_next_alloc(darray_size_t alloc, darray_size_t need, size_t itemSize)
#  213|   {
#  214|->     assert(need < darray_max_alloc(itemSize) / 2); /* Overflow. */
#  215|       if (alloc == 0)
#  216|           alloc = 4;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
libxkbcommon-xkbcommon-1.12.2/src/keymap-priv.c:34:37: warning[-Wanalyzer-malloc-leak]: leak of ‘keymap’
libxkbcommon-xkbcommon-1.12.2/src/keymap-priv.c:46:1: enter_function: entry to ‘xkb_keymap_new’
libxkbcommon-xkbcommon-1.12.2/src/keymap-priv.c:52:14: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/keymap-priv.c:53:8: branch_false: following ‘false’ branch (when ‘keymap’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/keymap-priv.c:56:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keymap-priv.c:62:5: call_function: calling ‘update_builtin_keymap_fields’ from ‘xkb_keymap_new’
#   32|   
#   33|       for (xkb_mod_index_t i = 0; i < ARRAY_SIZE(builtin_mods); i++) {
#   34|->         keymap->mods.mods[i].name = xkb_atom_intern(keymap->ctx,
#   35|                                                       builtin_mods[i],
#   36|                                                       strlen(builtin_mods[i]));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
libxkbcommon-xkbcommon-1.12.2/src/keymap-priv.c:57:19: warning[-Wanalyzer-malloc-leak]: leak of ‘keymap’
libxkbcommon-xkbcommon-1.12.2/src/keymap-priv.c:52:14: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/keymap-priv.c:53:8: branch_false: following ‘false’ branch (when ‘keymap’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/keymap-priv.c:56:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keymap-priv.c:57:19: danger: ‘keymap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   55|   
#   56|       keymap->refcnt = 1;
#   57|->     keymap->ctx = xkb_context_ref(ctx);
#   58|   
#   59|       keymap->format = format;

Error: CPPCHECK_WARNING (CWE-476): [#def112]
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: iter
#  135|   {
#  136|       struct xkb_keysym_iterator* iter = calloc(1, sizeof(*iter));
#  137|->     iter->explicit = iterate_only_explicit_keysyms;
#  138|       iter->index = -1;
#  139|       iter->keysym = XKB_KEYSYM_UNICODE_MAX;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:137:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘iter’
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:136:40: acquire_memory: this call could return NULL
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:137:5: danger: ‘iter’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  135|   {
#  136|       struct xkb_keysym_iterator* iter = calloc(1, sizeof(*iter));
#  137|->     iter->explicit = iterate_only_explicit_keysyms;
#  138|       iter->index = -1;
#  139|       iter->keysym = XKB_KEYSYM_UNICODE_MAX;

Error: CPPCHECK_WARNING (CWE-476): [#def114]
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: iter
#  136|       struct xkb_keysym_iterator* iter = calloc(1, sizeof(*iter));
#  137|       iter->explicit = iterate_only_explicit_keysyms;
#  138|->     iter->index = -1;
#  139|       iter->keysym = XKB_KEYSYM_UNICODE_MAX;
#  140|       return iter;

Error: CPPCHECK_WARNING (CWE-476): [#def115]
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: iter
#  137|       iter->explicit = iterate_only_explicit_keysyms;
#  138|       iter->index = -1;
#  139|->     iter->keysym = XKB_KEYSYM_UNICODE_MAX;
#  140|       return iter;
#  141|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:282:23: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:237:1: enter_function: entry to ‘xkb_keysym_from_name’
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:244:8: branch_false: following ‘false’ branch (when ‘flags <= 1’)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:251:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:280:16: branch_true: following ‘true’ branch (when ‘lo <= hi’)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:281:27: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:292:12: branch_false: following ‘false’ branch (when ‘entry’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:305:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:341:15: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:342:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:344:35: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:345:15: call_function: calling ‘xkb_keysym_from_name’ from ‘xkb_keysym_from_name’
#  280|           while (hi >= lo) {
#  281|               int32_t mid = (lo + hi) / 2;
#  282|->             int cmp = istrcmp(name, get_name(&name_to_keysym[mid]));
#  283|               if (cmp > 0) {
#  284|                   lo = mid + 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:298:20: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:237:1: enter_function: entry to ‘xkb_keysym_from_name’
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:244:8: branch_false: following ‘false’ branch (when ‘flags <= 1’)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:251:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:280:16: branch_true: following ‘true’ branch (when ‘lo <= hi’)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:281:27: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:292:12: branch_false: following ‘false’ branch (when ‘entry’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:305:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:341:15: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:342:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:344:35: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:345:15: call_function: calling ‘xkb_keysym_from_name’ from ‘xkb_keysym_from_name’
#  296|                * or non case-insensitve match */
#  297|               while (entry < last &&
#  298|->                    istrcmp(get_name(entry + 1), get_name(entry)) == 0) {
#  299|                   entry++;
#  300|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:339:19: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:237:1: enter_function: entry to ‘xkb_keysym_from_name’
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:244:8: branch_false: following ‘false’ branch (when ‘flags <= 1’)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:251:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:280:16: branch_true: following ‘true’ branch (when ‘lo <= hi’)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:281:27: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:292:12: branch_false: following ‘false’ branch (when ‘entry’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:305:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:305:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:341:15: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:342:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:344:35: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/keysym.c:345:15: call_function: calling ‘xkb_keysym_from_name’ from ‘xkb_keysym_from_name’
#  337|        * As a last ditch effort, try without. */
#  338|       if (strncmp(name, "XF86_", 5) == 0 ||
#  339|->         (icase && istrncmp(name, "XF86_", 5) == 0)) {
#  340|           xkb_keysym_t ret;
#  341|           tmp = strdup(name);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def119]
libxkbcommon-xkbcommon-1.12.2/src/registry.c:131:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/src/registry.c:1158:1: enter_function: entry to ‘xml_error_func’
libxkbcommon-xkbcommon-1.12.2/src/registry.c:1175:8: branch_true: following ‘true’ branch (when ‘rc < 0’)...
libxkbcommon-xkbcommon-1.12.2/src/registry.c:1176:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/registry.c:1176:9: call_function: calling ‘rxkb_log’ from ‘xml_error_func’
#  129|   
#  130|       va_start(args, fmt);
#  131|->     ctx->log_fn(ctx, level, fmt, args);
#  132|       va_end(args);
#  133|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:30:20: warning[-Wanalyzer-malloc-leak]: leak of ‘builder’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:25:48: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:26:8: branch_false: following ‘false’ branch (when ‘builder’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:29:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:30:20: danger: ‘builder’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   28|   
#   29|       builder->refcnt = 1;
#   30|->     builder->ctx = xkb_context_ref(context);
#   31|   
#   32|       builder->rules = strdup_safe(rules);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:46:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:21:1: enter_function: entry to ‘xkb_rmlvo_builder_new’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:26:8: branch_false: following ‘false’ branch (when ‘builder’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:29:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:32:22: call_function: inlined call to ‘strdup_safe’ from ‘xkb_rmlvo_builder_new’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:33:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:36:22: call_function: inlined call to ‘strdup_safe’ from ‘xkb_rmlvo_builder_new’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:37:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:46:5: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#   44|   
#   45|   error:
#   46|->     log_err(context, XKB_ERROR_ALLOCATION_ERROR,
#   47|               "Cannot allocate a RMLVO builder.\n");
#   48|       xkb_rmlvo_builder_unref(builder);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:46:5: warning[-Wanalyzer-malloc-leak]: leak of ‘builder’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:21:1: enter_function: entry to ‘xkb_rmlvo_builder_new’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:25:48: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:26:8: branch_false: following ‘false’ branch (when ‘builder’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:29:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:32:22: call_function: inlined call to ‘strdup_safe’ from ‘xkb_rmlvo_builder_new’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:33:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:46:5: danger: ‘builder’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#   44|   
#   45|   error:
#   46|->     log_err(context, XKB_ERROR_ALLOCATION_ERROR,
#   47|               "Cannot allocate a RMLVO builder.\n");
#   48|       xkb_rmlvo_builder_unref(builder);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:136:5: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(option)’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:111:1: enter_function: entry to ‘xkb_rmlvo_builder_append_option’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:114:8: branch_false: following ‘false’ branch (when ‘option’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:119:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:127:19: call_function: inlined call to ‘strdup_safe’ from ‘xkb_rmlvo_builder_append_option’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:130:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:136:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:136:5: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:136:5: call_function: inlined call to ‘darray_next_alloc’ from ‘xkb_rmlvo_builder_append_option’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:136:5: danger: ‘strdup(option)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  134|           return false;
#  135|       }
#  136|->     darray_append(rmlvo->options, new);
#  137|       return true;
#  138|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:170:5: warning[-Wanalyzer-malloc-leak]: leak of ‘builder’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:21:1: enter_function: entry to ‘xkb_rmlvo_builder_new’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:25:48: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:26:8: branch_false: following ‘false’ branch (when ‘builder’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:29:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:32:22: call_function: inlined call to ‘strdup_safe’ from ‘xkb_rmlvo_builder_new’
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:33:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/rmlvo.c:48:5: call_function: calling ‘xkb_rmlvo_builder_unref’ from ‘xkb_rmlvo_builder_new’
#  168|       darray_free(rmlvo->options);
#  169|   
#  170|->     xkb_context_unref(rmlvo->ctx);
#  171|       free(rmlvo);
#  172|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
libxkbcommon-xkbcommon-1.12.2/src/scanner-utils.h:37:32: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#   35|   isvaleq(struct sval s1, struct sval s2)
#   36|   {
#   37|->     return s1.len == s2.len && istrncmp(s1.start, s2.start, s1.len) == 0;
#   38|   }
#   39|   

Error: CPPCHECK_WARNING (CWE-758): [#def126]
libxkbcommon-xkbcommon-1.12.2/src/state.c:1516: warning[objectIndex]: The address of variable 'sym' might be accessed at non-zero index.
# 1514|       char tmp[XKB_KEYSYM_UTF8_MAX_SIZE];
# 1515|       for (int i = 0; i < nsyms; i++) {
# 1516|->         int ret = xkb_keysym_to_utf8(syms[i], tmp, sizeof(tmp));
# 1517|           if (ret <= 0)
# 1518|               goto err_bad;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def127]
libxkbcommon-xkbcommon-1.12.2/src/state.c:1745:37: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/src/state.c:1740:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/src/state.c:1743:12: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/state.c:1745:37: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/state.c:1745:37: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 1743|           if (str == NULL)
# 1744|               break;
# 1745|->         const xkb_mod_index_t idx = xkb_keymap_mod_get_index(state->keymap, str);
# 1746|           if (idx == XKB_MOD_INVALID) {
# 1747|               ret = -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:925:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*type.level_names’
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:913:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:914:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:914:5: branch_false: following ‘false’ branch...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:916:21: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:917:20: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:922:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:925:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:925:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:925:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:925:9: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/x11/keymap.c:925:9: danger: ‘*type.level_names’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  923|   
#  924|           /* Allocate names for all levels, even if some names are missing */
#  925|->         ALLOC_OR_FAIL(type->level_names, type->num_levels);
#  926|   
#  927|           x11_atom_interner_adopt_atom(interner, wire_type_name, &type->name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:284:32: warning[-Wanalyzer-malloc-leak]: leak of ‘next_incl.name’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1013:1: enter_function: entry to ‘CompileCompatMap’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1019:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: call_function: calling ‘HandleCompatMapFile’ from ‘CompileCompatMap’
#  282|       *pred_rtrn = MATCH_EXACTLY;
#  283|       if (expr->common.type == STMT_EXPR_ACTION_DECL) {
#  284|->         const char *pred_txt = xkb_atom_text(info->ctx, expr->action.name);
#  285|           unsigned int pred = 0;
#  286|           if (!LookupString(symInterpretMatchMaskNames, pred_txt, &pred) ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:296:32: warning[-Wanalyzer-malloc-leak]: leak of ‘next_incl.name’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1013:1: enter_function: entry to ‘CompileCompatMap’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1019:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: call_function: calling ‘HandleCompatMapFile’ from ‘CompileCompatMap’
#  294|       }
#  295|       else if (expr->common.type == STMT_EXPR_IDENT) {
#  296|->         const char *pred_txt = xkb_atom_text(info->ctx, expr->ident.ident);
#  297|           if (pred_txt && istreq(pred_txt, "any")) {
#  298|               *pred_rtrn = MATCH_ANY;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:456:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1013:1: enter_function: entry to ‘CompileCompatMap’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1019:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: call_function: calling ‘HandleCompatMapFile’ from ‘CompileCompatMap’
#  454|       CompatInfo included;
#  455|   
#  456|->     if (ExceedsIncludeMaxDepth(info->ctx, info->include_depth)) {
#  457|           info->errorCount += 10;
#  458|           return false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:456:9: warning[-Wanalyzer-malloc-leak]: leak of ‘next_incl.name’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1013:1: enter_function: entry to ‘CompileCompatMap’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1019:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: call_function: calling ‘HandleCompatMapFile’ from ‘CompileCompatMap’
#  454|       CompatInfo included;
#  455|   
#  456|->     if (ExceedsIncludeMaxDepth(info->ctx, info->include_depth)) {
#  457|           info->errorCount += 10;
#  458|           return false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:527:22: warning[-Wanalyzer-malloc-leak]: leak of ‘actions.item’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1013:1: enter_function: entry to ‘CompileCompatMap’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1019:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: call_function: calling ‘HandleCompatMapFile’ from ‘CompileCompatMap’
#  525|                    act; act = (ExprDef *) act->common.next) {
#  526|                   union xkb_action toAct = { 0 };
#  527|->                 if (!HandleActionDef(info->ctx, info->format,
#  528|                                        &info->default_actions, &info->mods,
#  529|                                        act, &toAct)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def134]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:540:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1013:1: enter_function: entry to ‘CompileCompatMap’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1019:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/compat.c:1020:9: call_function: calling ‘HandleCompatMapFile’ from ‘CompileCompatMap’
#  538|                       si->interp.a.action = toAct;
#  539|                   } else {
#  540|->                     darray_append(actions, toAct);
#  541|                   }
#  542|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:194:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*section.buffer.item + (sizetype)(*section.buffer.size + 4294967295)’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:382:1: enter_function: entry to ‘xkb_file_iterator_new_from_buffer’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:391:8: branch_false: following ‘false’ branch (when ‘iter’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:397:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:402:5: call_function: calling ‘xkb_file_section_init’ from ‘xkb_file_iterator_new_from_buffer’
#  192|       darray_init(section->includes);
#  193|       darray_init(section->buffer);
#  194|->     darray_append(section->buffer, '\0');
#  195|   }
#  196|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:256:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*section.buffer.item’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:343:1: enter_function: entry to ‘xkb_file_section_parse’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:351:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:354:18: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:355:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:361:25: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:363:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:370:5: call_function: inlined call to ‘xkb_file_section_reset’ from ‘xkb_file_section_parse’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:373:9: call_function: calling ‘xkb_file_section_set_meta_data’ from ‘xkb_file_section_parse’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:373:9: return_function: returning to ‘xkb_file_section_parse’ from ‘xkb_file_section_set_meta_data’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:372:21: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:375:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:375:10: call_function: calling ‘xkb_file_section_process’ from ‘xkb_file_section_parse’
#  254|   
#  255|               const darray_size_t file = darray_size(section->buffer);
#  256|->             darray_append_string0(section->buffer, stmt->file);
#  257|   
#  258|               const darray_size_t section_name =

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:263:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*iter.section.buffer.item’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:424:1: enter_function: entry to ‘xkb_file_iterator_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:427:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:437:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:439:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:439:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:441:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:472:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:482:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:504:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:505:10: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:505:10: call_function: calling ‘xkb_file_section_process’ from ‘xkb_file_iterator_next’
#  261|                       : 0;
#  262|               if (section_name) {
#  263|->                 darray_append_string0(section->buffer,
#  264|                                         (stmt->map) ? stmt->map : xkb_file->name);
#  265|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:263:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*section.buffer.item’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:343:1: enter_function: entry to ‘xkb_file_section_parse’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:351:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:354:18: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:355:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:361:25: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:363:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:370:5: call_function: inlined call to ‘xkb_file_section_reset’ from ‘xkb_file_section_parse’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:373:9: call_function: calling ‘xkb_file_section_set_meta_data’ from ‘xkb_file_section_parse’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:373:9: return_function: returning to ‘xkb_file_section_parse’ from ‘xkb_file_section_set_meta_data’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:372:21: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:375:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:375:10: call_function: calling ‘xkb_file_section_process’ from ‘xkb_file_section_parse’
#  261|                       : 0;
#  262|               if (section_name) {
#  263|->                 darray_append_string0(section->buffer,
#  264|                                         (stmt->map) ? stmt->map : xkb_file->name);
#  265|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def139]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:271:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*iter.section.buffer.item’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:424:1: enter_function: entry to ‘xkb_file_iterator_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:427:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:437:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:439:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:439:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:441:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:472:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:482:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:504:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:505:10: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:505:10: call_function: calling ‘xkb_file_section_process’ from ‘xkb_file_iterator_next’
#  269|                   : 0;
#  270|               if (modifier) {
#  271|->                 darray_append_string0(section->buffer, stmt->modifier);
#  272|               }
#  273|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:271:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*section.buffer.item’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:343:1: enter_function: entry to ‘xkb_file_section_parse’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:351:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:354:18: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:355:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:361:25: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:363:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:370:5: call_function: inlined call to ‘xkb_file_section_reset’ from ‘xkb_file_section_parse’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:373:9: call_function: calling ‘xkb_file_section_set_meta_data’ from ‘xkb_file_section_parse’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:373:9: return_function: returning to ‘xkb_file_section_parse’ from ‘xkb_file_section_set_meta_data’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:372:21: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:375:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:375:10: call_function: calling ‘xkb_file_section_process’ from ‘xkb_file_section_parse’
#  269|                   : 0;
#  270|               if (modifier) {
#  271|->                 darray_append_string0(section->buffer, stmt->modifier);
#  272|               }
#  273|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def141]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:361:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:351:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:354:18: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:354:18: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:355:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:361:25: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:361:25: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  359|       }
#  360|   
#  361|->     XkbFile *xkb_file = XkbParseFile(ctx, file, path, map);
#  362|       fclose(file);
#  363|       if (!xkb_file) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:361:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:351:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:354:18: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:354:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:355:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:361:25: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:361:25: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  359|       }
#  360|   
#  361|->     XkbFile *xkb_file = XkbParseFile(ctx, file, path, map);
#  362|       fclose(file);
#  363|       if (!xkb_file) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:404:10: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:382:1: enter_function: entry to ‘xkb_file_iterator_new_from_buffer’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:391:8: branch_false: following ‘false’ branch (when ‘iter’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:397:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:402:5: call_function: calling ‘xkb_file_section_init’ from ‘xkb_file_iterator_new_from_buffer’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:402:5: return_function: returning to ‘xkb_file_iterator_new_from_buffer’ from ‘xkb_file_section_init’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:404:10: danger: ‘<unknown>’ leaks here; was allocated at [(6)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/5)
#  402|       xkb_file_section_init(&iter->section);
#  403|   
#  404|->     if (!XkbParseStringInit(ctx, &iter->scanner, string, length, path, NULL)) {
#  405|           xkb_file_iterator_free(iter);
#  406|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def144]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:404:10: warning[-Wanalyzer-malloc-leak]: leak of ‘iter’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:390:45: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:391:8: branch_false: following ‘false’ branch (when ‘iter’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:397:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap-file-iterator.c:404:10: danger: ‘iter’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  402|       xkb_file_section_init(&iter->section);
#  403|   
#  404|->     if (!XkbParseStringInit(ctx, &iter->scanner, string, length, path, NULL)) {
#  405|           xkb_file_iterator_free(iter);
#  406|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:164:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:554:1: enter_function: entry to ‘CompileKeymap’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:594:10: branch_true: following ‘true’ branch (when ‘type != 4’)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:596:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:608:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:595:10: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:616:12: call_function: calling ‘UpdateDerivedKeymapFields’ from ‘CompileKeymap’
#  162|               }
#  163|               if (found) {
#  164|->                 darray_append(*interprets, interp);
#  165|                   interp->required = true;
#  166|                   break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:171:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:554:1: enter_function: entry to ‘CompileKeymap’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:594:10: branch_true: following ‘true’ branch (when ‘type != 4’)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:596:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:608:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:595:10: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:616:12: call_function: calling ‘UpdateDerivedKeymapFields’ from ‘CompileKeymap’
#  169|           if (!found)
#  170|   not_found:
#  171|->             darray_append(*interprets, &default_interpret);
#  172|       }
#  173|       return true;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:217:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:554:1: enter_function: entry to ‘CompileKeymap’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:594:10: branch_true: following ‘true’ branch (when ‘type != 4’)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:596:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:608:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:595:10: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:616:12: call_function: calling ‘UpdateDerivedKeymapFields’ from ‘CompileKeymap’
#  215|                       break;
#  216|                   case 1:
#  217|->                     darray_append(actions, interp->a.action);
#  218|                       break;
#  219|                   default:

Error: GCC_ANALYZER_WARNING (CWE-415): [#def148]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:265:5: warning[-Wanalyzer-double-free]: double-‘free’ of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:554:1: enter_function: entry to ‘CompileKeymap’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:594:10: branch_true: following ‘true’ branch (when ‘type != 4’)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:596:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:608:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:595:10: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/keymap.c:616:12: call_function: calling ‘UpdateDerivedKeymapFields’ from ‘CompileKeymap’
#  263|           }
#  264|       }
#  265|->     darray_free(actions);
#  266|       darray_free(interprets);
#  267|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:50:5: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#   48|   _xkbcommon_error(struct parser_param *param, const char *msg)
#   49|   {
#   50|->     parser_err(param, XKB_ERROR_INVALID_XKB_SYNTAX, "%s", msg);
#   51|   }
#   52|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:76:11: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#   74|       buf[name.len] = '\0';
#   75|   
#   76|->     sym = xkb_keysym_from_name(buf, XKB_KEYSYM_NO_FLAGS);
#   77|       if (sym != XKB_KEY_NoSymbol) {
#   78|           *sym_rtrn = sym;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:79:9: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#   77|       if (sym != XKB_KEY_NoSymbol) {
#   78|           *sym_rtrn = sym;
#   79|->         check_deprecated_keysyms(parser_warn, param, param->ctx,
#   80|                                    sym, buf, buf, "%s", "");
#   81|           return true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:277:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  275|                               XkbMapConfigList
#  276|                           CBRACE SEMI
#  277|->                         { $$ = XkbFileCreate($2, $3, (ParseCommon *) $5.head, $1); }
#  278|                   ;
#  279|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:307:44: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  305|                           CBRACE SEMI
#  306|                           {
#  307|->                             $$ = XkbFileCreate($2, $3, $5.head, $1);
#  308|                           }
#  309|                   ;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:420:59: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  418|                   |       MergeMode STRING
#  419|                           {
#  420|->                             $$ = (ParseCommon *) IncludeCreate(param->ctx, $2, $1);
#  421|                               free($2);
#  422|                           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:426:41: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  424|   
#  425|   VarDecl         :       Lhs EQUALS Expr SEMI
#  426|->                         { $$ = VarCreate($1, $3); }
#  427|                   |       Ident SEMI
#  428|                           { $$ = BoolVarCreate($1, true); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:428:41: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  426|                           { $$ = VarCreate($1, $3); }
#  427|                   |       Ident SEMI
#  428|->                         { $$ = BoolVarCreate($1, true); }
#  429|                   |       EXCLAM Ident SEMI
#  430|                           { $$ = BoolVarCreate($2, false); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:430:41: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  428|                           { $$ = BoolVarCreate($1, true); }
#  429|                   |       EXCLAM Ident SEMI
#  430|->                         { $$ = BoolVarCreate($2, false); }
#  431|                   ;
#  432|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:434:45: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  432|   
#  433|   KeyNameDecl     :       KEYNAME EQUALS KeyCode SEMI
#  434|->                         { $$ = KeycodeCreate($1, $3); }
#  435|                   ;
#  436|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:438:46: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  436|   
#  437|   KeyAliasDecl    :       ALIAS KEYNAME EQUALS KEYNAME SEMI
#  438|->                         { $$ = KeyAliasCreate($2, $4); }
#  439|                   ;
#  440|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:452:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  450|   
#  451|   VModDef         :       Ident
#  452|->                         { $$ = VModCreate($1, NULL); }
#  453|                   |       Ident EQUALS Expr
#  454|                           { $$ = VModCreate($1, $3); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:454:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  452|                           { $$ = VModCreate($1, NULL); }
#  453|                   |       Ident EQUALS Expr
#  454|->                         { $$ = VModCreate($1, $3); }
#  455|                   ;
#  456|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:464:44: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  462|   
#  463|   InterpretMatch  :       KeySym PLUS Expr
#  464|->                         { $$ = InterpCreate($1, $3); }
#  465|                   |       KeySym
#  466|                           { $$ = InterpCreate($1, NULL); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:466:44: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  464|                           { $$ = InterpCreate($1, $3); }
#  465|                   |       KeySym
#  466|->                         { $$ = InterpCreate($1, NULL); }
#  467|                   ;
#  468|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:487:45: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  485|                               VarDeclList
#  486|                           CBRACE SEMI
#  487|->                         { $$ = KeyTypeCreate($2, $4.head); }
#  488|                   ;
#  489|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:493:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  491|                               OptSymbolsBody
#  492|                           CBRACE SEMI
#  493|->                         { $$ = SymbolsCreate($2, $4.head); }
#  494|                   ;
#  495|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def166]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:506:65: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  504|                   ;
#  505|   
#  506|-> SymbolsVarDecl  :       Lhs EQUALS Expr         { $$ = VarCreate($1, $3); }
#  507|                   |       Lhs EQUALS MultiKeySymOrActionList { $$ = VarCreate($1, $3); }
#  508|                   |       Ident                   { $$ = BoolVarCreate($1, true); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:507:76: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  505|   
#  506|   SymbolsVarDecl  :       Lhs EQUALS Expr         { $$ = VarCreate($1, $3); }
#  507|->                 |       Lhs EQUALS MultiKeySymOrActionList { $$ = VarCreate($1, $3); }
#  508|                   |       Ident                   { $$ = BoolVarCreate($1, true); }
#  509|                   |       EXCLAM Ident            { $$ = BoolVarCreate($2, false); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def168]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:508:65: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  506|   SymbolsVarDecl  :       Lhs EQUALS Expr         { $$ = VarCreate($1, $3); }
#  507|                   |       Lhs EQUALS MultiKeySymOrActionList { $$ = VarCreate($1, $3); }
#  508|->                 |       Ident                   { $$ = BoolVarCreate($1, true); }
#  509|                   |       EXCLAM Ident            { $$ = BoolVarCreate($2, false); }
#  510|                   |       MultiKeySymOrActionList { $$ = VarCreate(NULL, $1); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:509:65: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  507|                   |       Lhs EQUALS MultiKeySymOrActionList { $$ = VarCreate($1, $3); }
#  508|                   |       Ident                   { $$ = BoolVarCreate($1, true); }
#  509|->                 |       EXCLAM Ident            { $$ = BoolVarCreate($2, false); }
#  510|                   |       MultiKeySymOrActionList { $$ = VarCreate(NULL, $1); }
#  511|                   ;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:510:65: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  508|                   |       Ident                   { $$ = BoolVarCreate($1, true); }
#  509|                   |       EXCLAM Ident            { $$ = BoolVarCreate($2, false); }
#  510|->                 |       MultiKeySymOrActionList { $$ = VarCreate(NULL, $1); }
#  511|                   ;
#  512|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:535:37: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  533|                               for (uint32_t k = 0; k < $2; k++) {
#  534|                                   ExprDef* const syms =
#  535|->                                     ExprCreateKeySymList(XKB_KEY_NoSymbol);
#  536|                                   if (!syms) {
#  537|                                       /* TODO: Use Bison’s more appropriate YYNOMEM */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:554:55: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  552|                               };
#  553|                               for (uint32_t k = 0; k < $2; k++) {
#  554|->                                 ExprDef* const acts = ExprCreateActionList(NULL);
#  555|                                   if (!acts) {
#  556|                                       /* TODO: Use Bison’s more appropriate YYNOMEM */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:570:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  568|                            */
#  569|                   |       OBRACKET NoSymbolOrActionList CBRACKET
#  570|->                         { $$ = ExprEmptyList(); }
#  571|                   ;
#  572|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:583:49: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  581|   
#  582|   GroupCompatDecl :       GROUP Integer EQUALS Expr SEMI
#  583|->                         { $$ = GroupCompatCreate($2, $4); }
#  584|                   ;
#  585|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:587:45: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  585|   
#  586|   ModMapDecl      :       MODIFIER_MAP Ident OBRACE KeyOrKeySymList CBRACE SEMI
#  587|->                         { $$ = ModMapCreate($2, $4.head); }
#  588|                   ;
#  589|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:597:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  595|   
#  596|   KeyOrKeySym     :       KEYNAME
#  597|->                         { $$ = ExprCreateKeyName($1); }
#  598|                   |       KeySym
#  599|                           { $$ = ExprCreateKeySym($1); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:599:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  597|                           { $$ = ExprCreateKeyName($1); }
#  598|                   |       KeySym
#  599|->                         { $$ = ExprCreateKeySym($1); }
#  600|                   ;
#  601|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:603:44: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  601|   
#  602|   LedMapDecl:             INDICATOR String OBRACE VarDeclList CBRACE SEMI
#  603|->                         { $$ = LedMapCreate($2, $4.head); }
#  604|                   ;
#  605|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:607:45: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  605|   
#  606|   LedNameDecl:            INDICATOR Integer EQUALS Expr SEMI
#  607|->                         { $$ = LedNameCreate($2, $4, false); }
#  608|                   |       VIRTUAL INDICATOR Integer EQUALS Expr SEMI
#  609|                           { $$ = LedNameCreate($3, $5, true); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:609:45: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  607|                           { $$ = LedNameCreate($2, $4, false); }
#  608|                   |       VIRTUAL INDICATOR Integer EQUALS Expr SEMI
#  609|->                         { $$ = LedNameCreate($3, $5, true); }
#  610|                   ;
#  611|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:629:27: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  627|                           { $$ = NULL; }
#  628|                   |       VarDecl
#  629|->                         { FreeStmt((ParseCommon *) $1); $$ = NULL; }
#  630|                   |       DoodadDecl
#  631|                           { $$ = NULL; }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:633:27: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  631|                           { $$ = NULL; }
#  632|                   |       LedMapDecl
#  633|->                         { FreeStmt((ParseCommon *) $1); $$ = NULL; }
#  634|                   |       OverlayDecl
#  635|                           { $$ = NULL; }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:644:27: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  642|   RowBodyItem     :       KEYS OBRACE Keys CBRACE SEMI { $$ = NULL; }
#  643|                   |       VarDecl
#  644|->                         { FreeStmt((ParseCommon *) $1); $$ = NULL; }
#  645|                   ;
#  646|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:654:27: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  652|                           { $$ = NULL; }
#  653|                   |       OBRACE ExprList CBRACE
#  654|->                         { FreeStmt((ParseCommon *) $2.head); $$ = NULL; }
#  655|                   ;
#  656|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:679:27: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  677|                           { (void) $4; $$ = NULL; }
#  678|                   |       Ident EQUALS Expr
#  679|->                         { FreeStmt((ParseCommon *) $3); $$ = NULL; }
#  680|                   ;
#  681|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:693:27: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  691|   
#  692|   DoodadDecl      :       DoodadType String OBRACE VarDeclList CBRACE SEMI
#  693|->                         { FreeStmt((ParseCommon *) $4.head); $$ = NULL; }
#  694|                   ;
#  695|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:707:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  705|   
#  706|   Element         :       ACTION_TOK
#  707|->                         { $$ = xkb_atom_intern_literal(param->ctx, "action"); }
#  708|                   |       INTERPRET
#  709|                           { $$ = xkb_atom_intern_literal(param->ctx, "interpret"); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:709:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  707|                           { $$ = xkb_atom_intern_literal(param->ctx, "action"); }
#  708|                   |       INTERPRET
#  709|->                         { $$ = xkb_atom_intern_literal(param->ctx, "interpret"); }
#  710|                   |       TYPE
#  711|                           { $$ = xkb_atom_intern_literal(param->ctx, "type"); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:711:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  709|                           { $$ = xkb_atom_intern_literal(param->ctx, "interpret"); }
#  710|                   |       TYPE
#  711|->                         { $$ = xkb_atom_intern_literal(param->ctx, "type"); }
#  712|                   |       KEY
#  713|                           { $$ = xkb_atom_intern_literal(param->ctx, "key"); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:713:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  711|                           { $$ = xkb_atom_intern_literal(param->ctx, "type"); }
#  712|                   |       KEY
#  713|->                         { $$ = xkb_atom_intern_literal(param->ctx, "key"); }
#  714|                   |       GROUP
#  715|                           { $$ = xkb_atom_intern_literal(param->ctx, "group"); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:715:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  713|                           { $$ = xkb_atom_intern_literal(param->ctx, "key"); }
#  714|                   |       GROUP
#  715|->                         { $$ = xkb_atom_intern_literal(param->ctx, "group"); }
#  716|                   |       MODIFIER_MAP
#  717|                           {$$ = xkb_atom_intern_literal(param->ctx, "modifier_map");}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:717:41: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  715|                           { $$ = xkb_atom_intern_literal(param->ctx, "group"); }
#  716|                   |       MODIFIER_MAP
#  717|->                         {$$ = xkb_atom_intern_literal(param->ctx, "modifier_map");}
#  718|                   |       INDICATOR
#  719|                           { $$ = xkb_atom_intern_literal(param->ctx, "indicator"); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:719:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  717|                           {$$ = xkb_atom_intern_literal(param->ctx, "modifier_map");}
#  718|                   |       INDICATOR
#  719|->                         { $$ = xkb_atom_intern_literal(param->ctx, "indicator"); }
#  720|                   |       SHAPE
#  721|                           { $$ = xkb_atom_intern_literal(param->ctx, "shape"); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:721:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  719|                           { $$ = xkb_atom_intern_literal(param->ctx, "indicator"); }
#  720|                   |       SHAPE
#  721|->                         { $$ = xkb_atom_intern_literal(param->ctx, "shape"); }
#  722|                   |       ROW
#  723|                           { $$ = xkb_atom_intern_literal(param->ctx, "row"); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:723:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  721|                           { $$ = xkb_atom_intern_literal(param->ctx, "shape"); }
#  722|                   |       ROW
#  723|->                         { $$ = xkb_atom_intern_literal(param->ctx, "row"); }
#  724|                   |       SECTION
#  725|                           { $$ = xkb_atom_intern_literal(param->ctx, "section"); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:725:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  723|                           { $$ = xkb_atom_intern_literal(param->ctx, "row"); }
#  724|                   |       SECTION
#  725|->                         { $$ = xkb_atom_intern_literal(param->ctx, "section"); }
#  726|                   |       TEXT
#  727|                           { $$ = xkb_atom_intern_literal(param->ctx, "text"); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:727:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  725|                           { $$ = xkb_atom_intern_literal(param->ctx, "section"); }
#  726|                   |       TEXT
#  727|->                         { $$ = xkb_atom_intern_literal(param->ctx, "text"); }
#  728|                   ;
#  729|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:744:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  742|                        * unused and has been removed.
#  743|                        */
#  744|->                     parser_warn(param, XKB_LOG_MESSAGE_NO_ID,
#  745|                                   "ignored unsupported legacy merge mode \"alternate\"");
#  746|                       $$ = MERGE_DEFAULT;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:768:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  766|   
#  767|   Expr            :       Expr DIVIDE Expr
#  768|->                         { $$ = ExprCreateBinary(STMT_EXPR_DIVIDE, $1, $3); }
#  769|                   |       Expr PLUS Expr
#  770|                           { $$ = ExprCreateBinary(STMT_EXPR_ADD, $1, $3); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:770:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  768|                           { $$ = ExprCreateBinary(STMT_EXPR_DIVIDE, $1, $3); }
#  769|                   |       Expr PLUS Expr
#  770|->                         { $$ = ExprCreateBinary(STMT_EXPR_ADD, $1, $3); }
#  771|                   |       Expr MINUS Expr
#  772|                           { $$ = ExprCreateBinary(STMT_EXPR_SUBTRACT, $1, $3); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:772:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  770|                           { $$ = ExprCreateBinary(STMT_EXPR_ADD, $1, $3); }
#  771|                   |       Expr MINUS Expr
#  772|->                         { $$ = ExprCreateBinary(STMT_EXPR_SUBTRACT, $1, $3); }
#  773|                   |       Expr TIMES Expr
#  774|                           { $$ = ExprCreateBinary(STMT_EXPR_MULTIPLY, $1, $3); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:774:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  772|                           { $$ = ExprCreateBinary(STMT_EXPR_SUBTRACT, $1, $3); }
#  773|                   |       Expr TIMES Expr
#  774|->                         { $$ = ExprCreateBinary(STMT_EXPR_MULTIPLY, $1, $3); }
#  775|                   |       Lhs EQUALS Expr
#  776|                           { $$ = ExprCreateBinary(STMT_EXPR_ASSIGN, $1, $3); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:776:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  774|                           { $$ = ExprCreateBinary(STMT_EXPR_MULTIPLY, $1, $3); }
#  775|                   |       Lhs EQUALS Expr
#  776|->                         { $$ = ExprCreateBinary(STMT_EXPR_ASSIGN, $1, $3); }
#  777|                   |       Term
#  778|                           { $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:782:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  780|   
#  781|   Term            :       MINUS Term
#  782|->                         { $$ = ExprCreateUnary(STMT_EXPR_NEGATE, $2); }
#  783|                   |       PLUS Term
#  784|                           { $$ = ExprCreateUnary(STMT_EXPR_UNARY_PLUS, $2); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:784:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  782|                           { $$ = ExprCreateUnary(STMT_EXPR_NEGATE, $2); }
#  783|                   |       PLUS Term
#  784|->                         { $$ = ExprCreateUnary(STMT_EXPR_UNARY_PLUS, $2); }
#  785|                   |       EXCLAM Term
#  786|                           { $$ = ExprCreateUnary(STMT_EXPR_NOT, $2); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:786:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  784|                           { $$ = ExprCreateUnary(STMT_EXPR_UNARY_PLUS, $2); }
#  785|                   |       EXCLAM Term
#  786|->                         { $$ = ExprCreateUnary(STMT_EXPR_NOT, $2); }
#  787|                   |       INVERT Term
#  788|                           { $$ = ExprCreateUnary(STMT_EXPR_INVERT, $2); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:788:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  786|                           { $$ = ExprCreateUnary(STMT_EXPR_NOT, $2); }
#  787|                   |       INVERT Term
#  788|->                         { $$ = ExprCreateUnary(STMT_EXPR_INVERT, $2); }
#  789|                   |       Lhs
#  790|                           { $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:792:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  790|                           { $$ = $1; }
#  791|                   |       FieldSpec OPAREN ExprList CPAREN %prec OPAREN
#  792|->                         { $$ = ExprCreateAction($1, $3.head); }
#  793|                   |       Actions
#  794|                           { $$ = $1; }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:803:45: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  801|   MultiActionList :       MultiActionList COMMA Action
#  802|                           {
#  803|->                             ExprDef *expr = ExprCreateActionList($3);
#  804|                               $$ = $1;
#  805|                               $$.last->common.next = &expr->common; $$.last = expr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:810:75: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  808|                           { $$ = $1; $$.last->common.next = &$3->common; $$.last = $3; }
#  809|                   |       Action
#  810|->                         { $$.head = $$.last = ExprCreateActionList($1); }
#  811|                   |       NonEmptyActions
#  812|                           { $$.head = $$.last = $1; }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:822:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  820|   
#  821|   NonEmptyActions :       OBRACE ActionList CBRACE
#  822|->                         { $$ = ExprCreateActionList($2.head); }
#  823|                   ;
#  824|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:828:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  826|                           { $$ = $1; }
#  827|                   |       OBRACE CBRACE
#  828|->                         { $$ = ExprCreateActionList(NULL); }
#  829|                   ;
#  830|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:832:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  830|   
#  831|   Action          :       FieldSpec OPAREN ExprList CPAREN
#  832|->                         { $$ = ExprCreateAction($1, $3.head); }
#  833|                   ;
#  834|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:836:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  834|   
#  835|   Lhs             :       FieldSpec
#  836|->                         { $$ = ExprCreateIdent($1); }
#  837|                   |       FieldSpec DOT FieldSpec
#  838|                           { $$ = ExprCreateFieldRef($1, $3); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:838:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  836|                           { $$ = ExprCreateIdent($1); }
#  837|                   |       FieldSpec DOT FieldSpec
#  838|->                         { $$ = ExprCreateFieldRef($1, $3); }
#  839|                   |       FieldSpec OBRACKET Expr CBRACKET
#  840|                           { $$ = ExprCreateArrayRef(XKB_ATOM_NONE, $1, $3); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:840:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  838|                           { $$ = ExprCreateFieldRef($1, $3); }
#  839|                   |       FieldSpec OBRACKET Expr CBRACKET
#  840|->                         { $$ = ExprCreateArrayRef(XKB_ATOM_NONE, $1, $3); }
#  841|                   |       FieldSpec DOT FieldSpec OBRACKET Expr CBRACKET
#  842|                           { $$ = ExprCreateArrayRef($1, $3, $5); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:842:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  840|                           { $$ = ExprCreateArrayRef(XKB_ATOM_NONE, $1, $3); }
#  841|                   |       FieldSpec DOT FieldSpec OBRACKET Expr CBRACKET
#  842|->                         { $$ = ExprCreateArrayRef($1, $3, $5); }
#  843|                   ;
#  844|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:846:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  844|   
#  845|   Terminal        :       String
#  846|->                         { $$ = ExprCreateString($1); }
#  847|                   |       Integer
#  848|                           { $$ = ExprCreateInteger($1); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:848:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  846|                           { $$ = ExprCreateString($1); }
#  847|                   |       Integer
#  848|->                         { $$ = ExprCreateInteger($1); }
#  849|                   |       Float
#  850|                           { $$ = ExprCreateFloat(/* Discard $1 */); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:850:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  848|                           { $$ = ExprCreateInteger($1); }
#  849|                   |       Float
#  850|->                         { $$ = ExprCreateFloat(/* Discard $1 */); }
#  851|                   |       KEYNAME
#  852|                           { $$ = ExprCreateKeyName($1); }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:852:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  850|                           { $$ = ExprCreateFloat(/* Discard $1 */); }
#  851|                   |       KEYNAME
#  852|->                         { $$ = ExprCreateKeyName($1); }
#  853|                   ;
#  854|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:857:45: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  855|   MultiKeySymList :       MultiKeySymList COMMA KeySymLit
#  856|                           {
#  857|->                             ExprDef *expr = ExprCreateKeySymList($3);
#  858|                               $$ = $1;
#  859|                               $$.last->common.next = &expr->common; $$.last = expr;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:864:75: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  862|                           { $$ = $1; $$.last->common.next = &$3->common; $$.last = $3; }
#  863|                   |       KeySymLit
#  864|->                         { $$.head = $$.last = ExprCreateKeySymList($1); }
#  865|                   |       NonEmptyKeySyms
#  866|                           { $$.head = $$.last = $1; }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:870:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  868|   
#  869|   KeySymList      :       KeySymList COMMA KeySymLit
#  870|->                         { $$ = ExprAppendKeySymList($1, $3); }
#  871|                   |       KeySymList COMMA STRING
#  872|                           {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:873:44: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  871|                   |       KeySymList COMMA STRING
#  872|                           {
#  873|->                             $$ = ExprKeySymListAppendString(param->scanner, $1, $3);
#  874|                               free($3);
#  875|                               if (!$$)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:880:44: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  878|                   |       KeySymLit
#  879|                           {
#  880|->                             $$ = ExprCreateKeySymList($1);
#  881|                               if (!$$)
#  882|                                   YYERROR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:886:44: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  884|                   |       STRING
#  885|                           {
#  886|->                             $$ = ExprCreateKeySymList(XKB_KEY_NoSymbol);
#  887|                               if (!$$)
#  888|                                   YYERROR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:889:44: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  887|                               if (!$$)
#  888|                                   YYERROR;
#  889|->                             $$ = ExprKeySymListAppendString(param->scanner, $$, $1);
#  890|                               free($1);
#  891|                               if (!$$)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:900:44: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  898|                   |       STRING
#  899|                           {
#  900|->                             $$ = ExprCreateKeySymList(XKB_KEY_NoSymbol);
#  901|                               if (!$$)
#  902|                                   YYERROR;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:903:44: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  901|                               if (!$$)
#  902|                                   YYERROR;
#  903|->                             $$ = ExprKeySymListAppendString(param->scanner, $$, $1);
#  904|                               free($1);
#  905|                               if (!$$)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:913:42: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  911|                           { $$ = $1; }
#  912|                   |       OBRACE CBRACE
#  913|->                         { $$ = ExprCreateKeySymList(XKB_KEY_NoSymbol); }
#  914|                   ;
#  915|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:920:46: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  918|                   |       STRING
#  919|                           {
#  920|->                             $$ = KeysymParseString(param->scanner, $1);
#  921|                               free($1);
#  922|                               if ($$ == XKB_KEY_NoSymbol)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:956:33: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  954|                                   static_assert(XKB_KEYSYM_MIN == 0,
#  955|                                                 "Keysyms are positive");
#  956|->                                 parser_warn(
#  957|                                       param,
#  958|                                       XKB_ERROR_INVALID_NUMERIC_KEYSYM,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:982:37: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  980|                                        */
#  981|                                       $$ = (xkb_keysym_t) $1;
#  982|->                                     check_deprecated_keysyms(
#  983|                                           parser_warn, param, param->ctx,
#  984|                                           $$, NULL, $$, "%#06"PRIx32, "");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:987:37: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  985|                                   } else {
#  986|                                       /* Invalid keysym */
#  987|->                                     parser_warn(
#  988|                                           param, XKB_ERROR_INVALID_NUMERIC_KEYSYM,
#  989|                                           "unrecognized keysym \"%#06"PRIx64"\" "

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:994:33: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
#  992|                                       $$ = XKB_KEY_NoSymbol;
#  993|                                   }
#  994|->                                 parser_vrb(
#  995|                                       /*
#  996|                                        * Require an extra high verbosity, because

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1030:50: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 1028|                   ;
# 1029|   
# 1030|-> Ident           :       IDENT   { $$ = xkb_atom_intern(param->ctx, $1.start, $1.len); }
# 1031|                   |       DEFAULT { $$ = xkb_atom_intern_literal(param->ctx, "default"); }
# 1032|                   ;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1031:50: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 1029|   
# 1030|   Ident           :       IDENT   { $$ = xkb_atom_intern(param->ctx, $1.start, $1.len); }
# 1031|->                 |       DEFAULT { $$ = xkb_atom_intern_literal(param->ctx, "default"); }
# 1032|                   ;
# 1033|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1034:50: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1108:1: enter_function: entry to ‘parse_next’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/parser.y:1118:16: call_function: calling ‘_xkbcommon_parse’ from ‘parse_next’
# 1032|                   ;
# 1033|   
# 1034|-> String          :       STRING  { $$ = xkb_atom_intern(param->ctx, $1, strlen($1)); free($1); }
# 1035|                   ;
# 1036|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def240]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:340:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘__builtin_malloc(96)’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2037:1: enter_function: entry to ‘xkb_components_from_rules_names’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2042:31: call_function: calling ‘matcher_new_from_names’ from ‘xkb_components_from_rules_names’
#  338|       if (!s) {
#  339|           struct matched_sval val = { .sval = { NULL, 0 } };
#  340|->         darray_append(arr, val);
#  341|           return arr;
#  342|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:386:17: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2037:1: enter_function: entry to ‘xkb_components_from_rules_names’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2042:31: call_function: calling ‘matcher_new_from_names’ from ‘xkb_components_from_rules_names’
#  384|               while (*s != '\0' && *s != ',') { s++; }
#  385|               if (count <= 0 || layout_index_end != s) {
#  386|->                 log_err(ctx, XKB_ERROR_UNSUPPORTED_GROUP_INDEX,
#  387|                           "Invalid layout index \"%.*s\" for the RMLVO "
#  388|                           "component \"%.*s\"; discarding specifier.\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def242]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:395:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2037:1: enter_function: entry to ‘xkb_components_from_rules_names’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2042:31: call_function: calling ‘matcher_new_from_names’ from ‘xkb_components_from_rules_names’
#  393|           }
#  394|   
#  395|->         darray_append(arr, val);
#  396|   
#  397|           if (*s == '\0') break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:422:32: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2019:1: enter_function: entry to ‘xkb_components_from_rmlvo_builder’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2024:31: call_function: calling ‘matcher_new_from_rmlvo’ from ‘xkb_components_from_rmlvo_builder’
#  420|           .options = (darray_empty(rmlvo->options)) ? NULL : "x",
#  421|       };
#  422|->     const enum RMLVO changed = xkb_context_sanitize_rule_names(rmlvo->ctx,
#  423|                                                                  &names);
#  424|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def244]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:474:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2019:1: enter_function: entry to ‘xkb_components_from_rmlvo_builder’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2024:31: call_function: calling ‘matcher_new_from_rmlvo’ from ‘xkb_components_from_rmlvo_builder’
#  472|                   .matched = false
#  473|               };
#  474|->             darray_append(m->rmlvo.layouts, val);
#  475|               val.sval.start = layout->variant;
#  476|               val.sval.len = strlen_safe(layout->variant);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def245]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:477:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2019:1: enter_function: entry to ‘xkb_components_from_rmlvo_builder’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2024:31: call_function: calling ‘matcher_new_from_rmlvo’ from ‘xkb_components_from_rmlvo_builder’
#  475|               val.sval.start = layout->variant;
#  476|               val.sval.len = strlen_safe(layout->variant);
#  477|->             darray_append(m->rmlvo.variants, val);
#  478|           }
#  479|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def246]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:497:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2019:1: enter_function: entry to ‘xkb_components_from_rmlvo_builder’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:2024:31: call_function: calling ‘matcher_new_from_rmlvo’ from ‘xkb_components_from_rmlvo_builder’
#  495|                   .matched = false
#  496|               };
#  497|->             darray_append(m->rmlvo.options, val);
#  498|           }
#  499|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1324:13: warning[-Wanalyzer-malloc-leak]: leak of ‘expanded.item’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1490:1: enter_function: entry to ‘matcher_rule_apply_if_matches’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1607:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1609:14: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1610:14: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:37: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:16: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1614:44: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1615:54: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1658:21: call_function: calling ‘append_expanded_kccgst_value’ from ‘matcher_rule_apply_if_matches’
# 1322|           str[*i] == 'a' && str[*i+1] == 'l' && str[*i+2] == 'l') {
# 1323|           if (has_layout_idx_range)
# 1324|->             scanner_vrb(s, XKB_LOG_VERBOSITY_DETAILED, XKB_LOG_MESSAGE_NO_ID,
# 1325|                           "Using :all qualifier with indices range "
# 1326|                           "is not recommended.");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1339:21: warning[-Wanalyzer-malloc-leak]: leak of ‘expanded.item’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1490:1: enter_function: entry to ‘matcher_rule_apply_if_matches’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1607:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1609:14: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1610:14: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:37: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:16: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1614:44: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1615:54: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1658:21: call_function: calling ‘append_expanded_kccgst_value’ from ‘matcher_rule_apply_if_matches’
# 1337|               {
# 1338|                   if (!has_separator)
# 1339|->                     darray_append(*expanded, MERGE_DEFAULT_PREFIX);
# 1340|                   /* Append prefix */
# 1341|                   darray_appends_nullterminate(*expanded,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1341:17: warning[-Wanalyzer-malloc-leak]: leak of ‘expanded.item’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1490:1: enter_function: entry to ‘matcher_rule_apply_if_matches’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1607:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1609:14: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1610:14: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:37: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:16: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1614:44: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1615:54: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1658:21: call_function: calling ‘append_expanded_kccgst_value’ from ‘matcher_rule_apply_if_matches’
# 1339|                       darray_append(*expanded, MERGE_DEFAULT_PREFIX);
# 1340|                   /* Append prefix */
# 1341|->                 darray_appends_nullterminate(*expanded,
# 1342|                                                &darray_item(*expanded, prefix_idx),
# 1343|                                                prefix_length);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1347:17: warning[-Wanalyzer-malloc-leak]: leak of ‘expanded.item’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1490:1: enter_function: entry to ‘matcher_rule_apply_if_matches’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1607:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1609:14: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1610:14: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:37: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:16: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1614:44: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1615:54: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1658:21: call_function: calling ‘append_expanded_kccgst_value’ from ‘matcher_rule_apply_if_matches’
# 1345|                   int count = snprintf(layout_index, sizeof(layout_index),
# 1346|                                        "%"PRIu32, l + 1);
# 1347|->                 darray_appends_nullterminate(*expanded, layout_index, count);
# 1348|               }
# 1349|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def251]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1398:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1490:1: enter_function: entry to ‘matcher_rule_apply_if_matches’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1607:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1609:14: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1610:14: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:37: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:16: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1614:44: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1615:54: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1658:21: call_function: calling ‘append_expanded_kccgst_value’ from ‘matcher_rule_apply_if_matches’
# 1396|               /* Qualifier */
# 1397|               case ':':
# 1398|->                 darray_appends_nullterminate(expanded, &str[i++], 1);
# 1399|                   expand_qualifier_in_kccgst_value(m, s, value, &expanded,
# 1400|                                                    m->mapping.has_layout_idx_range,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def252]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1416:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1490:1: enter_function: entry to ‘matcher_rule_apply_if_matches’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1607:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1609:14: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1610:14: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:37: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:16: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1614:44: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1615:54: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1658:21: call_function: calling ‘append_expanded_kccgst_value’ from ‘matcher_rule_apply_if_matches’
# 1414|               case MERGE_AUGMENT_PREFIX:
# 1415|               case MERGE_REPLACE_PREFIX:
# 1416|->                 darray_appends_nullterminate(expanded, &str[i++], 1);
# 1417|                   last_item_idx = darray_size(expanded) - 1;
# 1418|                   has_separator = true;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def253]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1422:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1490:1: enter_function: entry to ‘matcher_rule_apply_if_matches’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1607:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1609:14: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1610:14: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:37: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1613:16: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1614:44: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1615:54: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/rules.c:1658:21: call_function: calling ‘append_expanded_kccgst_value’ from ‘matcher_rule_apply_if_matches’
# 1420|               /* Just a normal character. */
# 1421|               default:
# 1422|->                 darray_appends_nullterminate(expanded, &str[i++], 1);
# 1423|           }
# 1424|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def254]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:117:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘to’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1946:1: enter_function: entry to ‘CompileSymbols’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1952:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1953:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1953:9: call_function: calling ‘HandleSymbolsFile’ from ‘CompileSymbols’
#  115|   CopyGroupInfo(GroupInfo *to, const GroupInfo *from)
#  116|   {
#  117|->     to->defined = from->defined;
#  118|       to->type = from->type;
#  119|       darray_init(to->levels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:693:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1946:1: enter_function: entry to ‘CompileSymbols’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1952:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1953:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1953:9: call_function: calling ‘HandleSymbolsFile’ from ‘CompileSymbols’
#  691|       SymbolsInfo included;
#  692|   
#  693|->     if (ExceedsIncludeMaxDepth(info->ctx, info->include_depth)) {
#  694|           info->errorCount += 10;
#  695|           return false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:693:9: warning[-Wanalyzer-malloc-leak]: leak of ‘next_incl.name’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1946:1: enter_function: entry to ‘CompileSymbols’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1952:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1953:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1953:9: call_function: calling ‘HandleSymbolsFile’ from ‘CompileSymbols’
#  691|       SymbolsInfo included;
#  692|   
#  693|->     if (ExceedsIncludeMaxDepth(info->ctx, info->include_depth)) {
#  694|           info->errorCount += 10;
#  695|           return false;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def257]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:781:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1946:1: enter_function: entry to ‘CompileSymbols’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1952:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1953:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/symbols.c:1953:9: call_function: calling ‘HandleSymbolsFile’ from ‘CompileSymbols’
#argument 1 of ‘__builtin_memset’ must be non-null
#  779|           }
#  780|   
#  781|->         darray_resize0(keyi->groups, darray_size(keyi->groups) + 1);
#  782|           *ndx_rtrn = darray_size(keyi->groups) - 1;
#  783|           return true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:208:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:840:1: enter_function: entry to ‘CompileKeyTypes’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:846:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: call_function: calling ‘HandleKeyTypesFile’ from ‘CompileKeyTypes’
#  206|       KeyTypesInfo included;
#  207|   
#  208|->     if (ExceedsIncludeMaxDepth(info->ctx, info->include_depth)) {
#  209|           info->errorCount += 10;
#  210|           return false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:208:9: warning[-Wanalyzer-malloc-leak]: leak of ‘next_incl.name’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:840:1: enter_function: entry to ‘CompileKeyTypes’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:846:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: call_function: calling ‘HandleKeyTypesFile’ from ‘CompileKeyTypes’
#  206|       KeyTypesInfo included;
#  207|   
#  208|->     if (ExceedsIncludeMaxDepth(info->ctx, info->include_depth)) {
#  209|           info->errorCount += 10;
#  210|           return false;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def260]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:332:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:840:1: enter_function: entry to ‘CompileKeyTypes’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:846:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: call_function: calling ‘HandleKeyTypesFile’ from ‘CompileKeyTypes’
#  330|           type->num_levels = new->level + 1;
#  331|   
#  332|->     darray_append(type->entries, *new);
#  333|       return true;
#  334|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def261]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:427:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:840:1: enter_function: entry to ‘CompileKeyTypes’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:846:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: call_function: calling ‘HandleKeyTypesFile’ from ‘CompileKeyTypes’
#  425|       new.mods.mods = mods;
#  426|       new.preserve.mods = preserve_mods;
#  427|->     darray_append(type->entries, new);
#  428|       return true;
#  429|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def262]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:427:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘new.mods.mask’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:840:1: enter_function: entry to ‘CompileKeyTypes’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:846:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: call_function: calling ‘HandleKeyTypesFile’ from ‘CompileKeyTypes’
#  425|       new.mods.mods = mods;
#  426|       new.preserve.mods = preserve_mods;
#  427|->     darray_append(type->entries, new);
#  428|       return true;
#  429|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:597:14: warning[-Wanalyzer-malloc-leak]: leak of ‘next_incl.name’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:840:1: enter_function: entry to ‘CompileKeyTypes’
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:846:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/src/xkbcomp/types.c:847:9: call_function: calling ‘HandleKeyTypesFile’ from ‘CompileKeyTypes’
#  595|   
#  596|       for (; def; def = (VarDef *) def->common.next) {
#  597|->         ok = ExprResolveLhs(info->ctx, def->name, &elem, &field,
#  598|                               &arrayNdx);
#  599|           if (!ok)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
libxkbcommon-xkbcommon-1.12.2/test/atom.c:69:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*<unknown>.string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:45:1: enter_function: entry to ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:60:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:62:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:64:5: branch_false: following ‘false’ branch (when ‘arr’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:69:16: danger: ‘*<unknown>.string’ leaks here; was allocated at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
#   67|           random_string(&arr[i].string, &arr[i].len);
#   68|   
#   69|->         atom = atom_intern(table, arr[i].string, arr[i].len, false);
#   70|           if (atom != XKB_ATOM_NONE) {
#   71|               string = atom_text(table, atom);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
libxkbcommon-xkbcommon-1.12.2/test/atom.c:69:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:45:1: enter_function: entry to ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:60:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:62:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:64:5: branch_false: following ‘false’ branch (when ‘arr’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:70:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:91:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:28: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:69:16: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
#   67|           random_string(&arr[i].string, &arr[i].len);
#   68|   
#   69|->         atom = atom_intern(table, arr[i].string, arr[i].len, false);
#   70|           if (atom != XKB_ATOM_NONE) {
#   71|               string = atom_text(table, atom);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
libxkbcommon-xkbcommon-1.12.2/test/atom.c:69:16: warning[-Wanalyzer-malloc-leak]: leak of ‘arr’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:45:1: enter_function: entry to ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:60:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:62:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:63:11: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:64:5: branch_false: following ‘false’ branch (when ‘arr’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:69:16: danger: ‘arr’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
#   67|           random_string(&arr[i].string, &arr[i].len);
#   68|   
#   69|->         atom = atom_intern(table, arr[i].string, arr[i].len, false);
#   70|           if (atom != XKB_ATOM_NONE) {
#   71|               string = atom_text(table, atom);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
libxkbcommon-xkbcommon-1.12.2/test/atom.c:71:22: warning[-Wanalyzer-malloc-leak]: leak of ‘*<unknown>.string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:45:1: enter_function: entry to ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:60:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:62:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:64:5: branch_false: following ‘false’ branch (when ‘arr’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:70:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:71:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:71:22: danger: ‘*<unknown>.string’ leaks here; was allocated at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
#   69|           atom = atom_intern(table, arr[i].string, arr[i].len, false);
#   70|           if (atom != XKB_ATOM_NONE) {
#   71|->             string = atom_text(table, atom);
#   72|               assert(string);
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
libxkbcommon-xkbcommon-1.12.2/test/atom.c:71:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:45:1: enter_function: entry to ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:60:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:62:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:64:5: branch_false: following ‘false’ branch (when ‘arr’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:70:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:91:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:28: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:70:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:71:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:71:22: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
#   69|           atom = atom_intern(table, arr[i].string, arr[i].len, false);
#   70|           if (atom != XKB_ATOM_NONE) {
#   71|->             string = atom_text(table, atom);
#   72|               assert(string);
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
libxkbcommon-xkbcommon-1.12.2/test/atom.c:71:22: warning[-Wanalyzer-malloc-leak]: leak of ‘arr’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:45:1: enter_function: entry to ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:60:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:62:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:63:11: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:64:5: branch_false: following ‘false’ branch (when ‘arr’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:70:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:71:22: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:71:22: danger: ‘arr’ leaks here; was allocated at [(4)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/3)
#   69|           atom = atom_intern(table, arr[i].string, arr[i].len, false);
#   70|           if (atom != XKB_ATOM_NONE) {
#   71|->             string = atom_text(table, atom);
#   72|               assert(string);
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: warning[-Wanalyzer-malloc-leak]: leak of ‘*<unknown>.string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:45:1: enter_function: entry to ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:60:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:62:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:64:5: branch_false: following ‘false’ branch (when ‘arr’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:70:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: danger: ‘*<unknown>.string’ leaks here; was allocated at [(10)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/9)
#   88|           }
#   89|   
#   90|->         arr[i].atom = atom_intern(table, arr[i].string, arr[i].len, true);
#   91|           if (arr[i].atom == XKB_ATOM_NONE) {
#   92|               fprintf(stderr, "failed to intern! len: %zu, string: %.*s\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:45:1: enter_function: entry to ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:60:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:62:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:64:5: branch_false: following ‘false’ branch (when ‘arr’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:70:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:91:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:28: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:70:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/9)
#   88|           }
#   89|   
#   90|->         arr[i].atom = atom_intern(table, arr[i].string, arr[i].len, true);
#   91|           if (arr[i].atom == XKB_ATOM_NONE) {
#   92|               fprintf(stderr, "failed to intern! len: %zu, string: %.*s\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: warning[-Wanalyzer-malloc-leak]: leak of ‘arr’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:45:1: enter_function: entry to ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:60:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:62:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:63:11: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:64:5: branch_false: following ‘false’ branch (when ‘arr’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:70:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: danger: ‘arr’ leaks here; was allocated at [(4)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/3)
#   88|           }
#   89|   
#   90|->         arr[i].atom = atom_intern(table, arr[i].string, arr[i].len, true);
#   91|           if (arr[i].atom == XKB_ATOM_NONE) {
#   92|               fprintf(stderr, "failed to intern! len: %zu, string: %.*s\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
libxkbcommon-xkbcommon-1.12.2/test/atom.c:99:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:45:1: enter_function: entry to ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:60:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:62:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:64:5: branch_false: following ‘false’ branch (when ‘arr’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:70:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:91:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:28: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_false: following ‘false’ branch (when ‘i >= N’)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:98:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:99:38: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:99:18: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
#   97|   
#   98|       for (int i = 0; i < N; i++) {
#   99|->         string = atom_text(table, arr[i].atom);
#  100|           assert(string);
#  101|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
libxkbcommon-xkbcommon-1.12.2/test/atom.c:99:18: warning[-Wanalyzer-malloc-leak]: leak of ‘arr’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:45:1: enter_function: entry to ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:60:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:62:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:63:11: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:64:5: branch_false: following ‘false’ branch (when ‘arr’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:43: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: call_function: calling ‘random_string’ from ‘test_random_strings’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:67:9: return_function: returning to ‘test_random_strings’ from ‘random_string’
libxkbcommon-xkbcommon-1.12.2/test/atom.c:70:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:90:23: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:91:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:28: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:66:21: branch_false: following ‘false’ branch (when ‘i >= N’)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:98:21: branch_true: following ‘true’ branch (when ‘i < N’)...
libxkbcommon-xkbcommon-1.12.2/test/atom.c:99:38: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/atom.c:99:18: danger: ‘arr’ leaks here; was allocated at [(4)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/3)
#   97|   
#   98|       for (int i = 0; i < N; i++) {
#   99|->         string = atom_text(table, arr[i].atom);
#  100|           assert(string);
#  101|   

Error: UNICONTROL_WARNING (CWE-94): [#def275]
libxkbcommon-xkbcommon-1.12.2/test/buffercomp.c:1848: warning: bidirectional control characters: ['\u2067', '\u2069', '\u2067', '\u2069']
# 1846|                   /* NOTE: We use U+200E LEFT-TO-RIGHT MARK in order to display the strings in
# 1847|                    *       in the proper order. */
# 1848|->                 u8"    key <AB05> { [ \"لا\"‎  , \"لآ\"‎   ] }; // ⁧لا⁩ ⁧لآ⁩ Arabic Lam-Alef ligatures decomposed\n"
# 1849|                   u8"    key <AD01> { [ \"c’h\", \"C’h\" ] }; // C’H Breton trigraph\n"
# 1850|                   u8"    modifier_map Mod1 { \"✨\", \"\\u{1F54A}\" };\n"

Error: CPPCHECK_WARNING (CWE-758): [#def276]
libxkbcommon-xkbcommon-1.12.2/test/common.c:156: warning[objectIndex]: The address of variable 'sym' might be accessed at non-zero index.
#  154|           for (int i = 0; i < nsyms; i++) {
#  155|               keysym = va_arg(ap, int);
#  156|->             xkb_keysym_get_name(syms[i], ksbuf, sizeof(ksbuf));
#  157|               fprintf(stderr, "%s%s", (i != 0) ? ", " : "", ksbuf);
#  158|   

Error: CPPCHECK_WARNING (CWE-758): [#def277]
libxkbcommon-xkbcommon-1.12.2/test/common.c:160: warning[objectIndex]: The address of variable 'sym' might be accessed at non-zero index.
#  158|   
#  159|               if (keysym == FINISH || keysym == NEXT) {
#  160|->                 xkb_keysym_get_name(syms[i], ksbuf, sizeof(ksbuf));
#  161|                   fprintf(stderr, "\nERROR: Did not expect keysym: %s.\n", ksbuf);
#  162|                   goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
libxkbcommon-xkbcommon-1.12.2/test/common.c:275:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test_get_path(rel_path)’
libxkbcommon-xkbcommon-1.12.2/test/common.c:679:1: enter_function: entry to ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:695:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:714:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:716:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:721:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: call_function: calling ‘test_get_path’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: return_function: returning to ‘test_compile_output2’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:724:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:733:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:734:32: call_function: calling ‘test_read_file’ from ‘test_compile_output2’
#  273|           srcdir = ".";
#  274|   
#  275|->     if (is_absolute_path(path_rel))
#  276|           return strdup(path_rel);
#  277|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def279]
libxkbcommon-xkbcommon-1.12.2/test/common.c:315:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path(path_rel), "rb")’
libxkbcommon-xkbcommon-1.12.2/test/common.c:679:1: enter_function: entry to ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:695:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:714:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:716:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:721:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: call_function: calling ‘test_get_path’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: return_function: returning to ‘test_compile_output2’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:724:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:733:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:734:32: call_function: calling ‘test_read_file’ from ‘test_compile_output2’
#  313|               printf("Error reading file %s: unexpected end of file\n", path);
#  314|           else if (ferror(file))
#  315|->             perror("Error reading file");
#  316|           fclose(file);
#  317|           free(ret);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
libxkbcommon-xkbcommon-1.12.2/test/common.c:315:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path(path_rel), "rb")’
libxkbcommon-xkbcommon-1.12.2/test/common.c:679:1: enter_function: entry to ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:695:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:714:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:716:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:721:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: call_function: calling ‘test_get_path’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: return_function: returning to ‘test_compile_output2’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:724:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:733:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:734:32: call_function: calling ‘test_read_file’ from ‘test_compile_output2’
#  313|               printf("Error reading file %s: unexpected end of file\n", path);
#  314|           else if (ferror(file))
#  315|->             perror("Error reading file");
#  316|           fclose(file);
#  317|           free(ret);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
libxkbcommon-xkbcommon-1.12.2/test/common.c:315:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libxkbcommon-xkbcommon-1.12.2/test/common.c:679:1: enter_function: entry to ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:695:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:714:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:716:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:721:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: call_function: calling ‘test_get_path’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: return_function: returning to ‘test_compile_output2’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:724:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:733:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:734:32: call_function: calling ‘test_read_file’ from ‘test_compile_output2’
#  313|               printf("Error reading file %s: unexpected end of file\n", path);
#  314|           else if (ferror(file))
#  315|->             perror("Error reading file");
#  316|           fclose(file);
#  317|           free(ret);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
libxkbcommon-xkbcommon-1.12.2/test/common.c:315:13: warning[-Wanalyzer-malloc-leak]: leak of ‘test_get_path(path_rel)’
libxkbcommon-xkbcommon-1.12.2/test/common.c:679:1: enter_function: entry to ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:695:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:714:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:716:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:721:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: call_function: calling ‘test_get_path’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: return_function: returning to ‘test_compile_output2’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:724:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:733:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:734:32: call_function: calling ‘test_read_file’ from ‘test_compile_output2’
#  313|               printf("Error reading file %s: unexpected end of file\n", path);
#  314|           else if (ferror(file))
#  315|->             perror("Error reading file");
#  316|           fclose(file);
#  317|           free(ret);

Error: GCC_ANALYZER_WARNING (CWE-910): [#def283]
libxkbcommon-xkbcommon-1.12.2/test/common.c:342:9: warning[-Wanalyzer-double-fclose]: double ‘fclose’ of FILE ‘fopen(test_get_path(path_rel), "rb")’
libxkbcommon-xkbcommon-1.12.2/test/common.c:679:1: enter_function: entry to ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:695:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:714:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:716:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:721:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: call_function: calling ‘test_get_path’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: return_function: returning to ‘test_compile_output2’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:724:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:733:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:734:32: call_function: calling ‘test_read_file’ from ‘test_compile_output2’
#  340|   out:
#  341|       if (file)
#  342|->         fclose(file);
#  343|       free(path);
#  344|       return ret;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def284]
libxkbcommon-xkbcommon-1.12.2/test/common.c:342:9: warning[-Wanalyzer-double-free]: double-‘fclose’ of ‘fopen(test_get_path(path_rel), "rb")’
libxkbcommon-xkbcommon-1.12.2/test/common.c:679:1: enter_function: entry to ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:695:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:714:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:716:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:721:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: call_function: calling ‘test_get_path’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: return_function: returning to ‘test_compile_output2’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:724:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:733:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:734:32: call_function: calling ‘test_read_file’ from ‘test_compile_output2’
#  340|   out:
#  341|       if (file)
#  342|->         fclose(file);
#  343|       free(path);
#  344|       return ret;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
libxkbcommon-xkbcommon-1.12.2/test/common.c:727:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test_get_path(rel_path)’
libxkbcommon-xkbcommon-1.12.2/test/common.c:679:1: enter_function: entry to ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:695:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:714:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:716:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:721:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: call_function: calling ‘test_get_path’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: return_function: returning to ‘test_compile_output2’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:724:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_true: following ‘true’ branch (when ‘update_output_files != 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:727:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:727:9: danger: ‘test_get_path(rel_path)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/11)
#  725|   
#  726|       if (update_output_files) {
#  727|->         fprintf(stderr, "Writing golden test output to: %s\n", path);
#  728|           FILE *file = fopen(path, "wb");
#  729|           assert(file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
libxkbcommon-xkbcommon-1.12.2/test/common.c:733:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test_get_path(rel_path)’
libxkbcommon-xkbcommon-1.12.2/test/common.c:679:1: enter_function: entry to ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:695:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:714:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:716:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:721:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: call_function: calling ‘test_get_path’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: return_function: returning to ‘test_compile_output2’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:724:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:733:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:733:9: danger: ‘test_get_path(rel_path)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/11)
#  731|           fclose(file);
#  732|       } else {
#  733|->         fprintf(stderr, "Reading golden test output: %s\n", path);
#  734|           char* const expected = test_read_file(rel_path);
#  735|           assert(expected);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
libxkbcommon-xkbcommon-1.12.2/test/common.c:746:26: warning[-Wanalyzer-malloc-leak]: leak of ‘test_read_file(rel_path)’
libxkbcommon-xkbcommon-1.12.2/test/common.c:679:1: enter_function: entry to ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:695:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:709:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:714:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:716:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:721:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: call_function: calling ‘test_get_path’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:723:24: return_function: returning to ‘test_compile_output2’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:724:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:726:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:733:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:734:32: call_function: calling ‘test_read_file’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:734:32: return_function: returning to ‘test_compile_output2’ from ‘test_read_file’
libxkbcommon-xkbcommon-1.12.2/test/common.c:735:9: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:738:14: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:740:34: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:741:17: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:741:17: call_function: calling ‘streq’ from ‘test_compile_output2’
libxkbcommon-xkbcommon-1.12.2/test/common.c:741:17: return_function: returning to ‘test_compile_output2’ from ‘streq’
libxkbcommon-xkbcommon-1.12.2/test/common.c:741:16: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:742:17: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:743:20: branch_true: following ‘true’ branch (when ‘test_round_trip != 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:746:26: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:746:26: danger: ‘test_read_file(rel_path)’ leaks here; was allocated at [(46)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/45)
#  744|                       break;
#  745|                   /* Test round trip */
#  746|->                 keymap = compile_buffer(ctx, input_format,
#  747|                                           expected, strlen(expected),
#  748|                                           compile_buffer_private);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
libxkbcommon-xkbcommon-1.12.2/test/common.c:821:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test_get_path(rel_path)’
libxkbcommon-xkbcommon-1.12.2/test/common.c:785:1: enter_function: entry to ‘test_third_pary_compile_output’
libxkbcommon-xkbcommon-1.12.2/test/common.c:799:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:810:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:810:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:810:32: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:817:18: call_function: calling ‘test_get_path’ from ‘test_third_pary_compile_output’
libxkbcommon-xkbcommon-1.12.2/test/common.c:817:18: return_function: returning to ‘test_third_pary_compile_output’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:818:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:820:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:820:8: branch_true: following ‘true’ branch (when ‘update_output_files != 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:821:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:821:9: danger: ‘test_get_path(rel_path)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
#  819|   
#  820|       if (update_output_files) {
#  821|->         fprintf(stderr, "Writing golden test output to: %s\n", path);
#  822|           FILE *file = fopen(path, "wb");
#  823|           assert(file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
libxkbcommon-xkbcommon-1.12.2/test/common.c:827:9: warning[-Wanalyzer-malloc-leak]: leak of ‘test_get_path(rel_path)’
libxkbcommon-xkbcommon-1.12.2/test/common.c:785:1: enter_function: entry to ‘test_third_pary_compile_output’
libxkbcommon-xkbcommon-1.12.2/test/common.c:799:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:810:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:810:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:810:32: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:817:18: call_function: calling ‘test_get_path’ from ‘test_third_pary_compile_output’
libxkbcommon-xkbcommon-1.12.2/test/common.c:817:18: return_function: returning to ‘test_third_pary_compile_output’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.12.2/test/common.c:818:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/common.c:820:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:820:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.12.2/test/common.c:827:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/common.c:827:9: danger: ‘test_get_path(rel_path)’ leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
#  825|           fclose(file);
#  826|       } else {
#  827|->         fprintf(stderr, "Reading golden test output: %s\n", path);
#  828|           char *expected = test_read_file(rel_path);
#  829|           assert(expected);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def290]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:71:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:156:1: enter_function: entry to ‘test_compose_seq_buffer’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:164:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:166:10: call_function: calling ‘test_compose_seq_va’ from ‘test_compose_seq_buffer’
#   69|       char buffer[MAX(XKB_COMPOSE_MAX_STRING_SIZE, XKB_KEYSYM_NAME_MAX_SIZE)];
#   70|   
#   71|->     state = xkb_compose_state_new(table, XKB_COMPOSE_STATE_NO_FLAGS);
#   72|       assert(state);
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def291]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:90:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:156:1: enter_function: entry to ‘test_compose_seq_buffer’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:164:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:166:10: call_function: calling ‘test_compose_seq_va’ from ‘test_compose_seq_buffer’
#   88|           expected_keysym = va_arg(ap, xkb_keysym_t);
#   89|   
#   90|->         result = xkb_compose_state_feed(state, input_keysym);
#   91|   
#   92|           if (result != expected_result) {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def292]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:101:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:156:1: enter_function: entry to ‘test_compose_seq_buffer’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:164:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:166:10: call_function: calling ‘test_compose_seq_va’ from ‘test_compose_seq_buffer’
#   99|           }
#  100|   
#  101|->         status = xkb_compose_state_get_status(state);
#  102|           if (status != expected_status) {
#  103|               fprintf(stderr, "after feeding %d keysyms:\n", i);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def293]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:111:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:156:1: enter_function: entry to ‘test_compose_seq_buffer’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:164:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:166:10: call_function: calling ‘test_compose_seq_va’ from ‘test_compose_seq_buffer’
#  109|           }
#  110|   
#  111|->         ret = xkb_compose_state_get_utf8(state, buffer, sizeof(buffer));
#  112|           if (ret < 0 || (size_t) ret >= sizeof(buffer)) {
#  113|               fprintf(stderr, "after feeding %d keysyms:\n", i);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def294]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:125:18: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:156:1: enter_function: entry to ‘test_compose_seq_buffer’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:164:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:166:10: call_function: calling ‘test_compose_seq_va’ from ‘test_compose_seq_buffer’
#  123|           }
#  124|   
#  125|->         keysym = xkb_compose_state_get_one_sym(state);
#  126|           if (keysym != expected_keysym) {
#  127|               fprintf(stderr, "after feeding %d keysyms:\n", i);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def295]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:128:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:156:1: enter_function: entry to ‘test_compose_seq_buffer’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:164:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:166:10: call_function: calling ‘test_compose_seq_va’ from ‘test_compose_seq_buffer’
#  126|           if (keysym != expected_keysym) {
#  127|               fprintf(stderr, "after feeding %d keysyms:\n", i);
#  128|->             xkb_keysym_get_name(expected_keysym, buffer, sizeof(buffer));
#  129|               fprintf(stderr, "expected keysym: %s\n", buffer);
#  130|               xkb_keysym_get_name(keysym, buffer, sizeof(buffer));

Error: GCC_ANALYZER_WARNING (CWE-404): [#def296]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:130:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:156:1: enter_function: entry to ‘test_compose_seq_buffer’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:164:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:165:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:166:10: call_function: calling ‘test_compose_seq_va’ from ‘test_compose_seq_buffer’
#  128|               xkb_keysym_get_name(expected_keysym, buffer, sizeof(buffer));
#  129|               fprintf(stderr, "expected keysym: %s\n", buffer);
#  130|->             xkb_keysym_get_name(keysym, buffer, sizeof(buffer));
#  131|               fprintf(stderr, "got keysym (%#06"PRIx32"): %s\n", keysym, buffer);
#  132|               goto fail;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def297]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:136:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:610:1: enter_function: entry to ‘test_modifier_syntax’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:617:5: call_function: calling ‘test_compose_seq_buffer’ from ‘test_modifier_syntax’
#  134|       }
#  135|   
#  136|->     xkb_compose_state_unref(state);
#  137|       return true;
#  138|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def298]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:268:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:264:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:265:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:266:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:268:13: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  266|       free(path);
#  267|   
#  268|->     table = xkb_compose_table_new_from_file(ctx, file, "",
#  269|                                               XKB_COMPOSE_FORMAT_TEXT_V1,
#  270|                                               XKB_COMPOSE_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:268:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:264:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:265:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:266:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:268:13: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  266|       free(path);
#  267|   
#  268|->     table = xkb_compose_table_new_from_file(ctx, file, "",
#  269|                                               XKB_COMPOSE_FORMAT_TEXT_V1,
#  270|                                               XKB_COMPOSE_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def300]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:466:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:462:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:463:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:464:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:466:13: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  464|       free(path);
#  465|   
#  466|->     table = xkb_compose_table_new_from_file(ctx, file, "",
#  467|                                               XKB_COMPOSE_FORMAT_TEXT_V1,
#  468|                                               XKB_COMPOSE_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:466:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:462:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:463:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:464:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:466:13: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  464|       free(path);
#  465|   
#  466|->     table = xkb_compose_table_new_from_file(ctx, file, "",
#  467|                                               XKB_COMPOSE_FORMAT_TEXT_V1,
#  468|                                               XKB_COMPOSE_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def302]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:723:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:743:1: enter_function: entry to ‘test_eq_entry’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:747:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:748:10: call_function: calling ‘test_eq_entry_va’ from ‘test_eq_entry’
#  721|       assert (entry != NULL);
#  722|   
#  723|->     assert (xkb_compose_table_entry_keysym(entry) == keysym_ref);
#  724|   
#  725|       const char *utf8 = xkb_compose_table_entry_utf8(entry);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def303]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:725:24: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:743:1: enter_function: entry to ‘test_eq_entry’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:747:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:748:10: call_function: calling ‘test_eq_entry_va’ from ‘test_eq_entry’
#  723|       assert (xkb_compose_table_entry_keysym(entry) == keysym_ref);
#  724|   
#  725|->     const char *utf8 = xkb_compose_table_entry_utf8(entry);
#  726|       assert (utf8 && utf8_ref && strcmp(utf8, utf8_ref) == 0);
#  727|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def304]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:729:36: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:743:1: enter_function: entry to ‘test_eq_entry’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:747:5: acquire_resource: ‘va_start’ called here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:748:10: call_function: calling ‘test_eq_entry_va’ from ‘test_eq_entry’
#  727|   
#  728|       size_t nsyms;
#  729|->     const xkb_keysym_t *sequence = xkb_compose_table_entry_sequence(entry, &nsyms);
#  730|   
#  731|       xkb_keysym_t keysym;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:1066:10: warning[-Wanalyzer-malloc-leak]: leak of ‘output_file’
libxkbcommon-xkbcommon-1.12.2/test/compose.c:1050:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:1051:27: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:1058:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:1062:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:1063:25: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:1064:5: branch_false: following ‘false’ branch (when ‘output_file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/compose.c:1066:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/compose.c:1066:10: danger: ‘output_file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
# 1064|       assert(output_file);
# 1065|   
# 1066|->     ok = xkb_compose_table_dump(output_file, ref_table);
# 1067|       fclose(output_file);
# 1068|       assert(input);

Error: CPPCHECK_WARNING (CWE-416): [#def306]
libxkbcommon-xkbcommon-1.12.2/test/compose.c:1068: error[deallocuse]: Dereferencing 'input' after it is deallocated / released
# 1066|       ok = xkb_compose_table_dump(output_file, ref_table);
# 1067|       fclose(output_file);
# 1068|->     assert(input);
# 1069|   
# 1070|       if (!ok) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def307]
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:326:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:315:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:317:14: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:319:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:321:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:323:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:324:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:324:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:325:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:326:5: danger: dereference of NULL ‘XkbKey(test_compile_rules(test_get_context(0), 1, "evdev", "pc104", "numeric_keysyms", 0, 0), xkb_keymap_key_by_name(<unknown>, "AD01"))’
#  324|       assert(keysyms[0] == 0x1ffffffd);
#  325|       key = XkbKey(keymap, kc);
#  326|->     assert(key->modmap == Mod1Mask);
#  327|   
#  328|       kc = xkb_keymap_key_by_name(keymap, "AD02");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def308]
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:333:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:305:1: enter_function: entry to ‘test_numeric_keysyms’
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:315:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:317:14: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:319:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:321:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:323:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:324:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:324:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:325:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:325:11: call_function: calling ‘XkbKey’ from ‘test_numeric_keysyms’
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:325:11: return_function: returning to ‘test_numeric_keysyms’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:326:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:328:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:330:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:331:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:331:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:332:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:333:5: danger: dereference of NULL ‘XkbKey(test_compile_rules(test_get_context(0), 1, "evdev", "pc104", "numeric_keysyms", 0, 0), xkb_keymap_key_by_name(<unknown>, "AD02"))’
#  331|       assert(keysyms[0] == 0x1ffffffe);
#  332|       key = XkbKey(keymap, kc);
#  333|->     assert(key->modmap == Mod2Mask);
#  334|   
#  335|       kc = xkb_keymap_key_by_name(keymap, "AD03");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def309]
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:343:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:305:1: enter_function: entry to ‘test_numeric_keysyms’
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:315:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:317:14: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:319:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:321:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:323:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:324:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:324:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:325:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:325:11: call_function: calling ‘XkbKey’ from ‘test_numeric_keysyms’
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:325:11: return_function: returning to ‘test_numeric_keysyms’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:326:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:328:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:330:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:331:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:331:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:332:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:332:11: call_function: calling ‘XkbKey’ from ‘test_numeric_keysyms’
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:332:11: return_function: returning to ‘test_numeric_keysyms’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:333:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:335:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:337:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:338:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:338:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:340:21: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:341:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:342:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/keymap.c:343:5: danger: dereference of NULL ‘XkbKey(test_compile_rules(test_get_context(0), 1, "evdev", "pc104", "numeric_keysyms", 0, 0), xkb_keymap_key_by_name(<unknown>, "AD03"))’
#  341|       assert(keysyms_count == 0);
#  342|       key = XkbKey(keymap, kc);
#  343|->     assert(key->modmap == Mod3Mask);
#  344|   
#  345|       xkb_keymap_unref(keymap);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def310]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "LVL3"))’
#  116|       assert(keycode != XKB_KEYCODE_INVALID);
#  117|       key = XkbKey(keymap, keycode);
#  118|->     assert(key->modmap == NoModifier);
#  119|   
#  120|       keycode = xkb_keymap_key_by_name(keymap, "LFSH");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def311]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "LFSH"))’
#  121|       assert(keycode != XKB_KEYCODE_INVALID);
#  122|       key = XkbKey(keymap, keycode);
#  123|->     assert(key->modmap == NoModifier);
#  124|   
#  125|       keycode = xkb_keymap_key_by_name(keymap, "RTSH");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def312]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "RTSH"))’
#  126|       assert(keycode != XKB_KEYCODE_INVALID);
#  127|       key = XkbKey(keymap, keycode);
#  128|->     assert(key->modmap == NoModifier);
#  129|   
#  130|       keycode = xkb_keymap_key_by_name(keymap, "LWIN");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def313]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "LWIN"))’
#  131|       assert(keycode != XKB_KEYCODE_INVALID);
#  132|       key = XkbKey(keymap, keycode);
#  133|->     assert(key->modmap == Mod4Mask);
#  134|   
#  135|       keycode = xkb_keymap_key_by_name(keymap, "RWIN");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def314]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "RWIN"))’
#  136|       assert(keycode != XKB_KEYCODE_INVALID);
#  137|       key = XkbKey(keymap, keycode);
#  138|->     assert(key->modmap == Mod4Mask);
#  139|   
#  140|       keycode = xkb_keymap_key_by_name(keymap, "LCTL");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def315]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "LCTL"))’
#  141|       assert(keycode != XKB_KEYCODE_INVALID);
#  142|       key = XkbKey(keymap, keycode);
#  143|->     assert(key->modmap == ControlMask);
#  144|   
#  145|       keycode = xkb_keymap_key_by_name(keymap, "RCTL");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def316]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "RCTL"))’
#  146|       assert(keycode != XKB_KEYCODE_INVALID);
#  147|       key = XkbKey(keymap, keycode);
#  148|->     assert(key->modmap == ControlMask);
#  149|   
#  150|       keycode = xkb_keymap_key_by_name(keymap, "LALT");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def317]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "LALT"))’
#  151|       assert(keycode != XKB_KEYCODE_INVALID);
#  152|       key = XkbKey(keymap, keycode);
#  153|->     assert(key->modmap == Mod1Mask);
#  154|   
#  155|       keycode = xkb_keymap_key_by_name(keymap, "RALT");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def318]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:155:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:156:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "RALT"))’
#  156|       assert(keycode != XKB_KEYCODE_INVALID);
#  157|       key = XkbKey(keymap, keycode);
#  158|->     assert(key->modmap == (Mod2Mask | Mod5Mask));
#  159|   
#  160|       keycode = xkb_keymap_key_by_name(keymap, "CAPS");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def319]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:163:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:155:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:156:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:160:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:161:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:163:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "CAPS"))’
#  161|       assert(keycode != XKB_KEYCODE_INVALID);
#  162|       key = XkbKey(keymap, keycode);
#  163|->     assert(key->modmap == LockMask);
#  164|   
#  165|       keycode = xkb_keymap_key_by_name(keymap, "AD01");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def320]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:168:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:155:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:156:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:160:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:161:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:163:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:165:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:166:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:168:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "AD01"))’
#  166|       assert(keycode != XKB_KEYCODE_INVALID);
#  167|       key = XkbKey(keymap, keycode);
#  168|->     assert(key->modmap == Mod1Mask);
#  169|   
#  170|       keycode = xkb_keymap_key_by_name(keymap, "AD02");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def321]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:173:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:155:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:156:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:160:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:161:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:163:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:165:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:166:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:168:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:170:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:171:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:173:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "AD02"))’
#  171|       assert(keycode != XKB_KEYCODE_INVALID);
#  172|       key = XkbKey(keymap, keycode);
#  173|->     assert(key->modmap == NoModifier);
#  174|   
#  175|       keycode = xkb_keymap_key_by_name(keymap, "AD03");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def322]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:178:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:155:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:156:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:160:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:161:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:163:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:165:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:166:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:168:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:170:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:171:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:173:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:175:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:176:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:178:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "AD03"))’
#  176|       assert(keycode != XKB_KEYCODE_INVALID);
#  177|       key = XkbKey(keymap, keycode);
#  178|->     assert(key->modmap == NoModifier);
#  179|   
#  180|       keycode = xkb_keymap_key_by_name(keymap, "AD04");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def323]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:183:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:155:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:156:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:160:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:161:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:163:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:165:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:166:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:168:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:170:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:171:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:173:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:175:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:176:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:178:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:180:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:181:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:183:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "AD04"))’
#  181|       assert(keycode != XKB_KEYCODE_INVALID);
#  182|       key = XkbKey(keymap, keycode);
#  183|->     assert(key->modmap == Mod1Mask);
#  184|   
#  185|       keycode = xkb_keymap_key_by_name(keymap, "AD05");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def324]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:188:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:155:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:156:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:160:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:161:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:163:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:165:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:166:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:168:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:170:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:171:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:173:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:175:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:176:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:178:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:180:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:181:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:183:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:185:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:186:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:188:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "AD05"))’
#  186|       assert(keycode != XKB_KEYCODE_INVALID);
#  187|       key = XkbKey(keymap, keycode);
#  188|->     assert(key->modmap == Mod2Mask);
#  189|   
#  190|       keycode = xkb_keymap_key_by_name(keymap, "AD06");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def325]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:193:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:155:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:156:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:160:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:161:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:163:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:165:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:166:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:168:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:170:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:171:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:173:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:175:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:176:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:178:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:180:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:181:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:183:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:185:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:186:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:188:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:190:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:191:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:192:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:193:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "AD06"))’
#  191|       assert(keycode != XKB_KEYCODE_INVALID);
#  192|       key = XkbKey(keymap, keycode);
#  193|->     assert(key->modmap == Mod3Mask);
#  194|   
#  195|       keycode = xkb_keymap_key_by_name(keymap, "AD07");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def326]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:198:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:155:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:156:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:160:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:161:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:163:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:165:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:166:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:168:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:170:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:171:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:173:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:175:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:176:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:178:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:180:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:181:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:183:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:185:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:186:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:188:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:190:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:191:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:192:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:192:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:192:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:193:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:195:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:196:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:197:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:198:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "AD07"))’
#  196|       assert(keycode != XKB_KEYCODE_INVALID);
#  197|       key = XkbKey(keymap, keycode);
#  198|->     assert(key->modmap == Mod1Mask);
#  199|   
#  200|       keycode = xkb_keymap_key_by_name(keymap, "AD08");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def327]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:203:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:155:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:156:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:160:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:161:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:163:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:165:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:166:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:168:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:170:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:171:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:173:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:175:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:176:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:178:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:180:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:181:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:183:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:185:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:186:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:188:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:190:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:191:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:192:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:192:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:192:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:193:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:195:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:196:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:197:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:197:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:197:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:198:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:200:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:201:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:202:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:203:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "AD08"))’
#  201|       assert(keycode != XKB_KEYCODE_INVALID);
#  202|       key = XkbKey(keymap, keycode);
#  203|->     assert(key->modmap == Mod2Mask);
#  204|   
#  205|       keycode = xkb_keymap_key_by_name(keymap, "AD09");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def328]
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:208:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:104:1: enter_function: entry to ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:113:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:115:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:116:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:117:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:118:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:120:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:121:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:122:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:123:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:125:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:126:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:127:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:128:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:130:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:131:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:132:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:133:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:135:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:136:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:137:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:138:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:140:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:141:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:142:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:143:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:145:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:146:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:147:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:148:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:150:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:151:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:152:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:153:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:155:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:156:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:157:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:158:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:160:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:161:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:162:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:163:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:165:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:166:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:167:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:168:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:170:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:171:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:172:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:173:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:175:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:176:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:177:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:178:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:180:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:181:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:182:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:183:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:185:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:186:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:187:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:188:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:190:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:191:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:192:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:192:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:192:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:193:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:195:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:196:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:197:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:197:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:197:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:198:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:200:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:201:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:202:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:202:11: call_function: calling ‘XkbKey’ from ‘test_modmap_none’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:202:11: return_function: returning to ‘test_modmap_none’ from ‘XkbKey’
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:203:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:205:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:206:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:207:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/modifiers.c:208:5: danger: dereference of NULL ‘XkbKey(test_compile_file(context, 1, "keymaps/modmap-none.xkb"), xkb_keymap_key_by_name(<unknown>, "AD09"))’
#  206|       assert(keycode != XKB_KEYCODE_INVALID);
#  207|       key = XkbKey(keymap, keycode);
#  208|->     assert(key->modmap == Mod3Mask);
#  209|   
#  210|       xkb_keymap_unref(keymap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def329]
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:25:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:200:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:206:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:210:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:210:5: call_function: calling ‘test_rmlvo’ from ‘main’
#   23|   {
#   24|       struct xkb_keymap * const keymap =
#   25|->         test_compile_rules(context, format, rules, model, layout, variant, options);
#   26|       if (!keymap)
#   27|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def330]
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:33:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:200:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:206:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:210:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:210:5: call_function: calling ‘test_rmlvo’ from ‘main’
#   31|               strnull(variant), strnull(options));
#   32|   
#   33|->     const int ret = test_key_seq_va(keymap, ap);
#   34|   
#   35|       xkb_keymap_unref(keymap);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def331]
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:47:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:200:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:206:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:210:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:210:5: call_function: calling ‘test_rmlvo’ from ‘main’
#   45|   {
#   46|       struct xkb_keymap * const keymap =
#   47|->         test_compile_rmlvo(context, format, rules, model, layout, variant, options);
#   48|       if (!keymap)
#   49|           return 0;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def332]
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:55:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:200:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:206:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:210:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/rulescomp.c:210:5: call_function: calling ‘test_rmlvo’ from ‘main’
#   53|               strnull(variant), strnull(options));
#   54|   
#   55|->     const int ret = test_key_seq_va(keymap, ap);
#   56|   
#   57|       xkb_keymap_unref(keymap);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def333]
libxkbcommon-xkbcommon-1.12.2/test/test.h:152:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:18:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:31:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: call_function: calling ‘xkb_enable_quiet_logging’ from ‘main’
#  150|   xkb_enable_quiet_logging(struct xkb_context *ctx)
#  151|   {
#  152|->     xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
#  153|       xkb_context_set_log_verbosity(ctx, XKB_LOG_VERBOSITY_MINIMAL);
#  154|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
libxkbcommon-xkbcommon-1.12.2/test/test.h:152:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:18:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:31:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: call_function: calling ‘xkb_enable_quiet_logging’ from ‘main’
#  150|   xkb_enable_quiet_logging(struct xkb_context *ctx)
#  151|   {
#  152|->     xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
#  153|       xkb_context_set_log_verbosity(ctx, XKB_LOG_VERBOSITY_MINIMAL);
#  154|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def335]
libxkbcommon-xkbcommon-1.12.2/test/test.h:153:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:18:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:31:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: call_function: calling ‘xkb_enable_quiet_logging’ from ‘main’
#  151|   {
#  152|       xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
#  153|->     xkb_context_set_log_verbosity(ctx, XKB_LOG_VERBOSITY_MINIMAL);
#  154|   }
#  155|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
libxkbcommon-xkbcommon-1.12.2/test/test.h:153:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:18:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:31:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/bench/compose.c:39:5: call_function: calling ‘xkb_enable_quiet_logging’ from ‘main’
#  151|   {
#  152|       xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
#  153|->     xkb_context_set_log_verbosity(ctx, XKB_LOG_VERBOSITY_MINIMAL);
#  154|   }
#  155|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def337]
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:171:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[0]’
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:145:5: branch_false: following ‘false’ branch (when ‘keymap’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:148:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:165:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:170:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:170:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:171:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:171:9: danger: ‘stdin_pipe[0]’ leaks here
#  169|       }
#  170|       if (posix_spawn_file_actions_init(&action)) {
#  171|->         perror("spawn_file_actions_init error");
#  172|           goto posix_spawn_file_actions_init_error;
#  173|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def338]
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:171:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[1]’
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:145:5: branch_false: following ‘false’ branch (when ‘keymap’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:148:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:165:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:170:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:170:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:171:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:171:9: danger: ‘stdin_pipe[1]’ leaks here
#  169|       }
#  170|       if (posix_spawn_file_actions_init(&action)) {
#  171|->         perror("spawn_file_actions_init error");
#  172|           goto posix_spawn_file_actions_init_error;
#  173|       }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def339]
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:219:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[0]’
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:145:5: branch_false: following ‘false’ branch (when ‘keymap’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:148:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:165:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:170:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:170:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:178:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:178:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:179:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:219:5: danger: ‘stdin_pipe[0]’ leaks here
#  217|   
#  218|   posix_spawn_file_actions_error:
#  219|->     perror("posix_spawn_file_actions_* error");
#  220|   posix_spawn_file_actions_init_error:
#  221|       close(stdin_pipe[PIPE_WRITE]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def340]
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:221:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[0]’
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:145:5: branch_false: following ‘false’ branch (when ‘keymap’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:148:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:165:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:170:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:170:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:171:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:221:5: danger: ‘stdin_pipe[0]’ leaks here
#  219|       perror("posix_spawn_file_actions_* error");
#  220|   posix_spawn_file_actions_init_error:
#  221|->     close(stdin_pipe[PIPE_WRITE]);
#  222|       close(stdin_pipe[PIPE_READ]);
#  223|       ret = TEST_SETUP_FAILURE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def341]
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:221:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[1]’
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:145:5: branch_false: following ‘false’ branch (when ‘keymap’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:148:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:165:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:170:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:170:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:171:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:221:5: danger: ‘stdin_pipe[1]’ leaks here
#  219|       perror("posix_spawn_file_actions_* error");
#  220|   posix_spawn_file_actions_init_error:
#  221|->     close(stdin_pipe[PIPE_WRITE]);
#  222|       close(stdin_pipe[PIPE_READ]);
#  223|       ret = TEST_SETUP_FAILURE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def342]
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:222:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘stdin_pipe[0]’
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:145:5: branch_false: following ‘false’ branch (when ‘keymap’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:148:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:165:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:170:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:222:5: danger: ‘stdin_pipe[0]’ leaks here
#  220|   posix_spawn_file_actions_init_error:
#  221|       close(stdin_pipe[PIPE_WRITE]);
#  222|->     close(stdin_pipe[PIPE_READ]);
#  223|       ret = TEST_SETUP_FAILURE;
#  224|   cleanup:

Error: GCC_ANALYZER_WARNING (CWE-775): [#def343]
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:278:22: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:257:1: enter_function: entry to ‘test_keymap_roundtrip’
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:265:9: branch_false: following ‘false’ branch (when the strings are non-equal)...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:272:16: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:272:16: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:273:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:278:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:278:22: danger: ‘file’ leaks here; was opened at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#  276|           }
#  277|       }
#  278|->     char *original = read_file(keymap_path, file);
#  279|       fclose(file);
#  280|       if (!original)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:278:22: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:257:1: enter_function: entry to ‘test_keymap_roundtrip’
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:265:9: branch_false: following ‘false’ branch (when the strings are non-equal)...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:272:16: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:272:16: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:273:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:278:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/x11comp.c:278:22: danger: ‘file’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#  276|           }
#  277|       }
#  278|->     char *original = read_file(keymap_path, file);
#  279|       fclose(file);
#  280|       if (!original)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:75:11: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:46:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:51:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:75:11: danger: ‘tmpfile()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   73|        * that works.
#   74|        */
#   75|->     ret = posix_spawnp(&xvfb_pid, "Xvfb", NULL, NULL, xvfb_argv, envp);
#   76|       if (ret != 0) {
#   77|           fprintf(stderr,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:93:12: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:46:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:51:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:76:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:90:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:103:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:111:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:113:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:119:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:93:12: danger: ‘tmpfile()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   91|   
#   92|       /* Now wait for the SIGUSR1 signal that Xvfb is ready */
#   93|->     while (!xvfb_is_ready) {
#   94|           usleep(1000);
#   95|           if (++counter >= 3000) /* 3 seconds max wait */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:94:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:46:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:51:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:76:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:90:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:93:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:94:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:94:9: danger: ‘tmpfile()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   92|       /* Now wait for the SIGUSR1 signal that Xvfb is ready */
#   93|       while (!xvfb_is_ready) {
#   94|->         usleep(1000);
#   95|           if (++counter >= 3000) /* 3 seconds max wait */
#   96|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:102:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:46:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:51:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:76:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:90:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:102:17: danger: ‘tmpfile()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  100|   
#  101|       /* Check if Xvfb is still alive */
#  102|->     pid_t pid = waitpid(xvfb_pid, NULL, WNOHANG);
#  103|       if (pid != 0) {
#  104|           fprintf(stderr, "ERROR: Xvfb not alive\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:111:5: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:46:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:51:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:76:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:90:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:103:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:111:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:111:5: danger: ‘tmpfile()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  109|       /* Retrieve the display number: Xvfd writes the display number as a newline-
#  110|        * terminated string; copy this number to form a proper display string. */
#  111|->     fseek(display_fd, 0, SEEK_SET);
#  112|       length = fread(&display[1], 1, sizeof(display) - 2, display_fd);
#  113|       if (length <= 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:128:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:46:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:51:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:76:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:90:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:103:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:111:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:113:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:119:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:128:13: danger: ‘tmpfile()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  126|       switch (test_pid) {
#  127|           case -1:
#  128|->             perror("fork");
#  129|               ret = TEST_SETUP_FAILURE;
#  130|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:140:35: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:46:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:51:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:76:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:90:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:103:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:111:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:113:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:119:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:140:35: danger: ‘tmpfile()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  138|               {
#  139|                   int test_status = 0;
#  140|->                 pid_t test_pid2 = waitpid(test_pid, &test_status, 0);
#  141|                   ret = (test_pid2 > 0 && WIFEXITED(test_status))
#  142|                       ? WEXITSTATUS(test_status)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:157:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:46:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:51:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:152:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:153:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:157:13: danger: ‘tmpfile()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  155|           fprintf(stderr, "Waiting for Xvfb to exit (pid: %d)...\n", xvfb_pid);
#  156|           int xvfb_status = 0;
#  157|->         if (waitpid(xvfb_pid, &xvfb_status, 0) <= 0) {
#  158|               perror("Xvfb waitpid failed.");
#  159|           } else if (WIFEXITED(xvfb_status)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:158:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:46:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:51:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:152:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:153:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:157:12: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:158:13: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:158:13: danger: ‘tmpfile()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  156|           int xvfb_status = 0;
#  157|           if (waitpid(xvfb_pid, &xvfb_status, 0) <= 0) {
#  158|->             perror("Xvfb waitpid failed.");
#  159|           } else if (WIFEXITED(xvfb_status)) {
#  160|               fprintf(stderr, "Xvfb shut down (pid: %d) with exit code %d.\n",

Error: CPPCHECK_WARNING (CWE-570): [#def354]
libxkbcommon-xkbcommon-1.12.2/test/xvfb-wrapper.c:182: error[comparePointers]: Comparing pointers that point to different objects
#  180|       int rc = 0;
#  181|       for (const struct test_function *t = &__start_test_func_sec;
#  182|->          t < &__stop_test_func_sec;
#  183|            t++) {
#  184|           fprintf(stderr, "------ Running test: %s from %s ------\n",

Error: GCC_ANALYZER_WARNING (CWE-775): [#def355]
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:158:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:45:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:105:8: branch_false: following ‘false’ branch (when ‘locale’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:111:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:125:15: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:131:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:136:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:142:8: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:144:13: call_function: inlined call to ‘isempty’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:144:30: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:144:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:149:20: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:149:20: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:152:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:158:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:158:13: danger: ‘file’ leaks here; was opened at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#  156|   
#  157|           compose_table =
#  158|->             xkb_compose_table_new_from_file(ctx, file, locale, format,
#  159|                                               XKB_COMPOSE_COMPILE_NO_FLAGS);
#  160|           fclose(file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:158:13: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:45:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:105:8: branch_false: following ‘false’ branch (when ‘locale’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:111:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:125:15: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:131:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:136:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:142:8: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:144:13: call_function: inlined call to ‘isempty’ from ‘main’
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:144:30: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:144:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:149:20: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:149:20: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:152:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:158:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-compose.c:158:13: danger: ‘file’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  156|   
#  157|           compose_table =
#  158|->             xkb_compose_table_new_from_file(ctx, file, locale, format,
#  159|                                               XKB_COMPOSE_COMPILE_NO_FLAGS);
#  160|           fclose(file);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def357]
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:499:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:487:12: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:489:20: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:489:20: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:494:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:499:16: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:499:16: danger: ‘file’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  497|               return NULL;
#  498|           }
#  499|->         return xkb_keymap_new_from_file(ctx, file,
#  500|                                           keymap_input_format,
#  501|                                           XKB_KEYMAP_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:499:16: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:487:12: branch_true: following ‘true’ branch (when ‘path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:489:20: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:489:20: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:494:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:499:16: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/compile-keymap.c:499:16: danger: ‘file’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  497|               return NULL;
#  498|           }
#  499|->         return xkb_keymap_new_from_file(ctx, file,
#  500|                                           keymap_input_format,
#  501|                                           XKB_KEYMAP_COMPILE_NO_FLAGS);

Error: CPPCHECK_WARNING (CWE-457): [#def359]
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:62: warning[uninitvar]: Uninitialized variable: val
#   60|               }
#   61|           }
#   62|->         if (val < 0) {
#   63|               fprintf(stderr, "ERROR: Failed to convert argument to Unicode code point\n");
#   64|               return INVALID_UTF8_CODE_POINT;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def360]
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:335:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:321:8: branch_true: following ‘true’ branch (when ‘keymap_source == 2’)...
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:323:12: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:323:12: branch_true: following ‘true’ branch (when ‘keymap_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:325:20: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:325:20: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:330:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:335:16: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:335:16: danger: ‘file’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  333|               return NULL;
#  334|           }
#  335|->         return xkb_keymap_new_from_file(ctx, file, keymap_format,
#  336|                                           XKB_KEYMAP_COMPILE_NO_FLAGS);
#  337|       } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:335:16: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:321:8: branch_true: following ‘true’ branch (when ‘keymap_source == 2’)...
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:323:12: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:323:12: branch_true: following ‘true’ branch (when ‘keymap_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:325:20: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:325:20: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:330:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:335:16: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:335:16: danger: ‘file’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  333|               return NULL;
#  334|           }
#  335|->         return xkb_keymap_new_from_file(ctx, file, keymap_format,
#  336|                                           XKB_KEYMAP_COMPILE_NO_FLAGS);
#  337|       } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:508:9: warning[-Wanalyzer-malloc-leak]: leak of ‘realloc(*<unknown>.entries.item, (long unsigned int)alloc * 16)’
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:459:1: enter_function: entry to ‘add_compose_keysym_entry’
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:465:9: call_function: calling ‘lookup_keysym_entries’ from ‘add_compose_keysym_entry’
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:465:9: return_function: returning to ‘add_compose_keysym_entry’ from ‘lookup_keysym_entries’
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:466:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:475:10: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:479:24: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:480:21: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:500:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:506:21: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:508:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:508:9: call_function: inlined call to ‘darray_next_alloc’ from ‘add_compose_keysym_entry’
libxkbcommon-xkbcommon-1.12.2/tools/how-to-type.c:508:9: danger: ‘realloc(*<unknown>.entries.item, (long unsigned int)alloc * 16)’ leaks here; was allocated at [(20)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/19)
#  506|               .mask = masks[j]
#  507|           };
#  508|->         darray_append(entry->entries, new);
#  509|       }
#  510|       return true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
libxkbcommon-xkbcommon-1.12.2/tools/interactive-evdev.c:324:15: warning[-Wanalyzer-malloc-leak]: leak of ‘fds’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-evdev.c:312:11: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-evdev.c:313:8: branch_false: following ‘false’ branch (when ‘fds’ is non-NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-evdev.c:318:29: branch_false: following ‘false’ branch (when ‘kbd’ is NULL)...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-evdev.c:323:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-evdev.c:324:15: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-evdev.c:324:15: danger: ‘fds’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  322|   
#  323|       while (!terminate) {
#  324|->         ret = poll(fds, nfds, -1);
#  325|           if (ret < 0) {
#  326|               if (errno == EINTR)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:108:14: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:199:1: enter_function: entry to ‘os_create_anonymous_file’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:208:8: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:213:24: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:214:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:215:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:218:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:221:10: call_function: calling ‘create_tmpfile_cloexec’ from ‘os_create_anonymous_file’
#  106|   create_tmpfile_cloexec(char *tmpname)
#  107|   {
#  108|->     int fd = mkostemp(tmpname, O_CLOEXEC);
#  109|       if (fd >= 0)
#  110|           unlink(tmpname);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def365]
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:679:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘seat’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:677:37: acquire_memory: this call could return NULL
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:679:5: danger: ‘seat’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  677|       struct interactive_seat *seat = calloc(1, sizeof(*seat));
#  678|   
#  679|->     seat->global_name = name;
#  680|       seat->inter = inter;
#  681|       seat->wl_seat = wl_registry_bind(registry, name, &wl_seat_interface,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def366]
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1059:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:850:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:997:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:997:39: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:999:12: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1001:28: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1002:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1016:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1019:9: branch_false: following ‘false’ branch (when the strings are non-equal)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1023:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1027:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1033:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1034:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1040:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1040:8: branch_false: following ‘false’ branch (when ‘verbose == 0’)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1044:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1044:8: branch_true: following ‘true’ branch (when ‘with_keymap_file != 0’)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1046:12: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1046:12: branch_true: following ‘true’ branch (when ‘keymap_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1048:20: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1048:20: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1053:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1059:25: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1059:25: danger: ‘file’ leaks here; was opened at [(26)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/25)
# 1057|               goto err_out;
# 1058|           }
# 1059|->         custom_keymap = xkb_keymap_new_from_file(inter.ctx, file,
# 1060|                                                    keymap_input_format,
# 1061|                                                    XKB_KEYMAP_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1059:25: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:850:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:997:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:997:39: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:999:12: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1001:28: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1002:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1016:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1019:9: branch_false: following ‘false’ branch (when the strings are non-equal)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1023:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1027:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1033:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1034:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1040:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1040:8: branch_false: following ‘false’ branch (when ‘verbose == 0’)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1044:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1044:8: branch_true: following ‘true’ branch (when ‘with_keymap_file != 0’)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1046:12: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1046:12: branch_true: following ‘true’ branch (when ‘keymap_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1048:20: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1048:20: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1053:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1059:25: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-wayland.c:1059:25: danger: ‘file’ leaks here; was allocated at [(26)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/25)
# 1057|               goto err_out;
# 1058|           }
# 1059|->         custom_keymap = xkb_keymap_new_from_file(inter.ctx, file,
# 1060|                                                    keymap_input_format,
# 1061|                                                    XKB_KEYMAP_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def368]
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:649:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:455:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:579:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:579:39: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:581:12: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:583:28: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:584:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:598:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:601:9: branch_false: following ‘false’ branch (when the strings are non-equal)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:605:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:606:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:618:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:623:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:624:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:630:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:634:8: branch_true: following ‘true’ branch (when ‘with_keymap_file != 0’)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:636:12: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:636:12: branch_true: following ‘true’ branch (when ‘keymap_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:638:20: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:638:20: acquire_resource: opened here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:643:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:649:25: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:649:25: danger: ‘file’ leaks here; was opened at [(26)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/25)
#  647|               goto err_out;
#  648|           }
#  649|->         custom_keymap = xkb_keymap_new_from_file(ctx, file,
#  650|                                                    keymap_format,
#  651|                                                    XKB_KEYMAP_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:649:25: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:455:1: enter_function: entry to ‘main’
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:579:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:579:39: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:581:12: branch_false: following ‘false’ branch (when ‘keymap_path’ is NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:583:28: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:584:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:598:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:601:9: branch_false: following ‘false’ branch (when the strings are non-equal)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:605:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:606:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:618:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:623:11: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:624:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:630:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:634:8: branch_true: following ‘true’ branch (when ‘with_keymap_file != 0’)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:636:12: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:636:12: branch_true: following ‘true’ branch (when ‘keymap_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:638:20: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:638:20: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:643:12: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:649:25: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/interactive-x11.c:649:25: danger: ‘file’ leaks here; was allocated at [(26)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/25)
#  647|               goto err_out;
#  648|           }
#  649|->         custom_keymap = xkb_keymap_new_from_file(ctx, file,
#  650|                                                    keymap_format,
#  651|                                                    XKB_KEYMAP_COMPILE_NO_FLAGS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:295:9: warning[-Wanalyzer-malloc-leak]: leak of ‘parent2_node.item’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:329:1: enter_function: entry to ‘print_dot_included_sections’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: call_function: calling ‘print_dot_node’ from ‘print_dot_included_sections’
#  293|       );
#  294|       if (inc->section) {
#  295|->         darray_append_lit(*node, "(");
#  296|           darray_append_string(
#  297|               *node,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:296:9: warning[-Wanalyzer-malloc-leak]: leak of ‘parent2_node.item’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:329:1: enter_function: entry to ‘print_dot_included_sections’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: call_function: calling ‘print_dot_node’ from ‘print_dot_included_sections’
#  294|       if (inc->section) {
#  295|           darray_append_lit(*node, "(");
#  296|->         darray_append_string(
#  297|               *node,
#  298|               xkb_file_section_get_string(section, inc->section)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:300:9: warning[-Wanalyzer-malloc-leak]: leak of ‘parent2_node.item’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:329:1: enter_function: entry to ‘print_dot_included_sections’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: call_function: calling ‘print_dot_node’ from ‘print_dot_included_sections’
#  298|               xkb_file_section_get_string(section, inc->section)
#  299|           );
#  300|->         darray_append_lit(*node, ")");
#  301|       }
#  302|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def373]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:305:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:329:1: enter_function: entry to ‘print_dot_included_sections’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: call_function: calling ‘print_dot_node’ from ‘print_dot_included_sections’
#argument 1 of ‘__builtin_memcpy’ must be non-null
#  303|       /* Node label */
#  304|       darray_size(*label) = 0;
#  305|->     darray_append_lit(*label, "<B>");
#  306|       darray_append_string(
#  307|           *label,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:306:5: warning[-Wanalyzer-malloc-leak]: leak of ‘parent2_label.item’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:329:1: enter_function: entry to ‘print_dot_included_sections’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: call_function: calling ‘print_dot_node’ from ‘print_dot_included_sections’
#  304|       darray_size(*label) = 0;
#  305|       darray_append_lit(*label, "<B>");
#  306|->     darray_append_string(
#  307|           *label,
#  308|           ((output_options & OUTPUT_YAML_SHORT_LABELS)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:306:5: warning[-Wanalyzer-malloc-leak]: leak of ‘parent2_node.item’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:329:1: enter_function: entry to ‘print_dot_included_sections’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: call_function: calling ‘print_dot_node’ from ‘print_dot_included_sections’
#  304|       darray_size(*label) = 0;
#  305|       darray_append_lit(*label, "<B>");
#  306|->     darray_append_string(
#  307|           *label,
#  308|           ((output_options & OUTPUT_YAML_SHORT_LABELS)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:312:5: warning[-Wanalyzer-malloc-leak]: leak of ‘parent2_label.item’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:329:1: enter_function: entry to ‘print_dot_included_sections’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
 branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:343:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:344:17: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:345:22: call_function: calling ‘print_dot_node’ from ‘print_dot_included_sections’
#  310|               : xkb_file_section_get_string(section, inc->path))
#  311|       );
#  312|->     darray_append_lit(*label, "</B>");
#  313|       if (inc->section) {
#  314|           darray_append_lit(*label, "(");

Error: COMPILER_WARNING (CWE-252): [#def377]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c: scope_hint: In function ‘print_dot’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:385:9: warning[-Wunused-result]: ignoring return value of ‘realpath’ declared with attribute ‘warn_unused_result’
#  385 |         realpath(path, root);
#      |         ^~~~~~~~~~~~~~~~~~~~
#  383|       } else {
#  384|   #ifdef HAVE_REAL_PATH
#  385|->         realpath(path, root);
#  386|   #else
#  387|           if (unlikely(!strcpy_safe(root, sizeof(root), path)))

Error: GCC_ANALYZER_WARNING (CWE-415): [#def378]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:427:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:812:1: enter_function: entry to ‘print_sections’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:879:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:886:39: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:892:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:898:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:909:14: call_function: calling ‘print_dot’ from ‘print_sections’
#  425|           }
#  426|           /* Append full path & section */
#  427|->         darray_append_string(parent_node, root);
#  428|           if (section->name) {
#  429|               darray_append_lit(parent_node, "(");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def379]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:448:13: warning[-Wanalyzer-null-argument]: use of NULL ‘<unknown>’ where non-null expected
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:812:1: enter_function: entry to ‘print_sections’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:879:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:886:39: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:892:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:898:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:909:14: call_function: calling ‘print_dot’ from ‘print_sections’
#argument 1 of ‘__builtin_memcpy’ must be non-null
#  446|           if (!is_composite_file || section->file_type == FILE_TYPE_KEYMAP) {
#  447|               /* Display file only for top-level components */
#  448|->             darray_append_lit(parent_label, "<B>");
#  449|               if (root_file && (output_options & OUTPUT_YAML_SHORT_LABELS)) {
#  450|                   darray_append_string(parent_label, root_file);

Error: GCC_ANALYZER_WARNING (CWE-415): [#def380]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:454:13: warning[-Wanalyzer-double-free]: double-‘free’ of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:812:1: enter_function: entry to ‘print_sections’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:879:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:886:39: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:892:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:898:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:909:14: call_function: calling ‘print_dot’ from ‘print_sections’
#  452|                   darray_append_string(parent_label, root);
#  453|               }
#  454|->             darray_append_lit(parent_label, "</B>");
#  455|           }
#  456|           if (section->name) {

Error: GCC_ANALYZER_WARNING (CWE-415): [#def381]
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:464:13: warning[-Wanalyzer-double-free]: double-‘free’ of ‘<unknown>’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:812:1: enter_function: entry to ‘print_sections’
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:879:8: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:886:39: branch_true: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:892:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:898:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/introspection.c:909:14: call_function: calling ‘print_dot’ from ‘print_sections’
#  462|               darray_append_lit(parent_label, ")");
#  463|           } else {
#  464|->             darray_append_string(
#  465|                   parent_label,
#  466|                   (is_composite_file ? "(unnamed)" : "(-)")

Error: CPPCHECK_WARNING (CWE-758): [#def382]
libxkbcommon-xkbcommon-1.12.2/tools/tools-common.c:486: warning[objectIndex]: The address of variable 'sym' might be accessed at non-zero index.
#  484|       printf("keysyms [ ");
#  485|       for (int i = 0; i < nsyms; i++) {
#  486|->         xkb_keysym_get_name(syms[i], s, sizeof(s));
#  487|           printf("%-*s ", XKB_KEYSYM_NAME_MAX_SIZE, s);
#  488|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
libxkbcommon-xkbcommon-1.12.2/tools/tools-common.c:764:5: warning[-Wanalyzer-malloc-leak]: leak of ‘tmpfile()’
libxkbcommon-xkbcommon-1.12.2/tools/tools-common.c:741:18: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.12.2/tools/tools-common.c:742:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/tools-common.c:750:12: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.12.2/tools/tools-common.c:754:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.12.2/tools/tools-common.c:764:5: danger: ‘tmpfile()’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  762|               break;
#  763|       }
#  764|->     fseek(file, 0, SEEK_SET);
#  765|       return file;
#  766|   err:

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-204.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namelibxkbcommon-1.12.2-1.fc44
store-results-to/tmp/tmpfz8dw2ek/libxkbcommon-1.12.2-1.fc44.tar.xz
time-created2025-10-28 19:23:03
time-finished2025-10-28 19:25:59
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpfz8dw2ek/libxkbcommon-1.12.2-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpfz8dw2ek/libxkbcommon-1.12.2-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9