Task #91518 - fixed.err
back to task #91518download
Error: GCC_ANALYZER_WARNING (CWE-775):
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:55:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:43:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:45:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:46:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:53:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:55:5: throw: if ‘xkb_context_set_log_level’ throws an exception...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:55:5: 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)
# 53| free(path);
# 54|
# 55|-> xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
# 56| xkb_context_set_log_verbosity(ctx, 0);
# 57|
Error: GCC_ANALYZER_WARNING (CWE-401):
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:55:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:43:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:45:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:46:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:53:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:55:5: throw: if ‘xkb_context_set_log_level’ throws an exception...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:55:5: 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)
# 53| free(path);
# 54|
# 55|-> xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
# 56| xkb_context_set_log_verbosity(ctx, 0);
# 57|
Error: GCC_ANALYZER_WARNING (CWE-775):
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:56:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:43:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:45:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:46:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:53:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:56:5: throw: if ‘xkb_context_set_log_verbosity’ throws an exception...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:56:5: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 54|
# 55| xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
# 56|-> xkb_context_set_log_verbosity(ctx, 0);
# 57|
# 58| table = xkb_compose_table_new_from_file(ctx, file, "",
Error: GCC_ANALYZER_WARNING (CWE-401):
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:56:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:43:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:45:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:46:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:47:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:53:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:56:5: throw: if ‘xkb_context_set_log_verbosity’ throws an exception...
libxkbcommon-xkbcommon-1.11.0/bench/compose-traversal.c:56:5: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 54|
# 55| xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
# 56|-> xkb_context_set_log_verbosity(ctx, 0);
# 57|
# 58| table = xkb_compose_table_new_from_file(ctx, file, "",
Error: GCC_ANALYZER_WARNING (CWE-775):
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:39:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:31:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:39:5: throw: if ‘xkb_context_set_log_level’ throws an exception...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:39:5: 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)
# 37| }
# 38|
# 39|-> xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
# 40| xkb_context_set_log_verbosity(ctx, 0);
# 41|
Error: GCC_ANALYZER_WARNING (CWE-401):
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:39:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:31:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:39:5: throw: if ‘xkb_context_set_log_level’ throws an exception...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:39:5: 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)
# 37| }
# 38|
# 39|-> xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
# 40| xkb_context_set_log_verbosity(ctx, 0);
# 41|
Error: GCC_ANALYZER_WARNING (CWE-775):
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:40:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:31:12: acquire_resource: opened here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:40:5: throw: if ‘xkb_context_set_log_verbosity’ throws an exception...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:40:5: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 38|
# 39| xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
# 40|-> xkb_context_set_log_verbosity(ctx, 0);
# 41|
# 42| bench_start(&bench);
Error: GCC_ANALYZER_WARNING (CWE-401):
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:40:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:28:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:30:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:31:12: acquire_memory: allocated here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:32:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:39:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:40:5: throw: if ‘xkb_context_set_log_verbosity’ throws an exception...
libxkbcommon-xkbcommon-1.11.0/bench/compose.c:40:5: danger: ‘fopen(test_get_path("locale/en_US.UTF-8/Compose"), "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 38|
# 39| xkb_context_set_log_level(ctx, XKB_LOG_LEVEL_CRITICAL);
# 40|-> xkb_context_set_log_verbosity(ctx, 0);
# 41|
# 42| bench_start(&bench);
Error: GCC_ANALYZER_WARNING (CWE-401):
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:194:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:150:1: enter_function: entry to ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:159:8: branch_false: following ‘false’ branch (when ‘flags == 0’)...
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:165:13: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:165:13: call_function: calling ‘xkb_compose_table_new’ from ‘xkb_compose_table_new_from_locale’
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:165:13: return_function: returning to ‘xkb_compose_table_new_from_locale’ from ‘xkb_compose_table_new’
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:167:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:170:12: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:172:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:174:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:178:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:180:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:184:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:186:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:190:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:192:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:194:5: throw: if ‘xkb_log’ throws an exception...
libxkbcommon-xkbcommon-1.11.0/src/compose/table.c:194:5: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/9)
# 192| free(path);
# 193|
# 194|-> log_err(ctx, XKB_LOG_MESSAGE_NO_ID,
# 195| "couldn't find a Compose file for locale \"%s\" (mapped to \"%s\")\n",
# 196| locale, table->locale);
Error: GCC_ANALYZER_WARNING (CWE-688):
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keycodes.c:276:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keycodes.c:697:1: enter_function: entry to ‘CompileKeycodes’
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keycodes.c:703:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keycodes.c:704:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keycodes.c:704:9: call_function: calling ‘HandleKeycodesFile’ from ‘CompileKeycodes’
# 274| /* No previous keycode, resize if relevant */
# 275| if (kc >= (xkb_keycode_t) darray_size(info->key_names))
# 276|-> darray_resize0(info->key_names, kc + 1);
# 277|
# 278| /* Update the keycode bounds */
Error: GCC_ANALYZER_WARNING (CWE-476):
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keycodes.c:465:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keycodes.c:697:1: enter_function: entry to ‘CompileKeycodes’
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keycodes.c:703:8: branch_true: following ‘true’ branch (when ‘file’ is non-NULL)...
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keycodes.c:704:9: branch_true: ...to here
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keycodes.c:704:9: call_function: calling ‘HandleKeycodesFile’ from ‘CompileKeycodes’
# 463|
# 464| InitAliasInfo(&new, def->merge, def->alias, def->real);
# 465|-> darray_append(info->aliases, new);
# 466| return true;
# 467| }
Error: GCC_ANALYZER_WARNING (CWE-401):
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keymap-dump.c:281:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf.buf’
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keymap-dump.c:1011:1: enter_function: entry to ‘text_v1_keymap_get_as_string’
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/keymap-dump.c:1016:10: call_function: calling ‘write_keymap’ from ‘text_v1_keymap_get_as_string’
# 279| continue;
# 280|
# 281|-> write_buf(buf, "\t%-20s = %"PRIu32";\n",
# 282| KeyNameText(keymap->ctx, key->name), key->keycode);
# 283| }
Error: GCC_ANALYZER_WARNING (CWE-401):
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/symbols.c:487:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*into.groups.item’
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/symbols.c:598:1: enter_function: entry to ‘MergeIncludedSymbols’
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/symbols.c:630:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/symbols.c:636:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/symbols.c:636:9: branch_true: following ‘true’ branch...
libxkbcommon-xkbcommon-1.11.0/src/xkbcomp/symbols.c:638:18: call_function: calling ‘AddKeySymbols’ from ‘MergeIncludedSymbols’
# 485| /* If @from has extra groups, just move them to @into. */
# 486| for (i = groups_in_both; i < darray_size(from->groups); i++) {
# 487|-> darray_append(into->groups, darray_item(from->groups, i));
# 488| InitGroupInfo(&darray_item(from->groups, i));
# 489| }
Error: GCC_ANALYZER_WARNING (CWE-775):
libxkbcommon-xkbcommon-1.11.0/test/common.c:301:8: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(test_get_path(path_rel), "rb")’
libxkbcommon-xkbcommon-1.11.0/test/common.c:650:1: enter_function: entry to ‘test_compile_output’
libxkbcommon-xkbcommon-1.11.0/test/common.c:664:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.11.0/test/common.c:677:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/test/common.c:677:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/test/common.c:682:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/test/common.c:683:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/test/common.c:688:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/test/common.c:690:24: call_function: calling ‘test_get_path’ from ‘test_compile_output’
libxkbcommon-xkbcommon-1.11.0/test/common.c:690:24: return_function: returning to ‘test_compile_output’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.11.0/test/common.c:691:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/test/common.c:693:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/test/common.c:693:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.11.0/test/common.c:700:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/test/common.c:701:32: call_function: calling ‘test_read_file’ from ‘test_compile_output’
# 299|
# 300| const int fd = fileno(file);
# 301|-> if (fd < 0)
# 302| return NULL;
# 303|
Error: GCC_ANALYZER_WARNING (CWE-401):
libxkbcommon-xkbcommon-1.11.0/test/common.c:301:8: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(test_get_path(path_rel), "rb")’
libxkbcommon-xkbcommon-1.11.0/test/common.c:650:1: enter_function: entry to ‘test_compile_output’
libxkbcommon-xkbcommon-1.11.0/test/common.c:664:8: branch_false: following ‘false’ branch (when ‘rel_path’ is non-NULL)...
libxkbcommon-xkbcommon-1.11.0/test/common.c:677:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/test/common.c:677:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/test/common.c:682:17: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/test/common.c:683:8: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/test/common.c:688:5: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/test/common.c:690:24: call_function: calling ‘test_get_path’ from ‘test_compile_output’
libxkbcommon-xkbcommon-1.11.0/test/common.c:690:24: return_function: returning to ‘test_compile_output’ from ‘test_get_path’
libxkbcommon-xkbcommon-1.11.0/test/common.c:691:5: branch_false: following ‘false’ branch...
libxkbcommon-xkbcommon-1.11.0/test/common.c:693:8: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/test/common.c:693:8: branch_false: following ‘false’ branch (when ‘update_output_files == 0’)...
libxkbcommon-xkbcommon-1.11.0/test/common.c:700:9: branch_false: ...to here
libxkbcommon-xkbcommon-1.11.0/test/common.c:701:32: call_function: calling ‘test_read_file’ from ‘test_compile_output’
# 299|
# 300| const int fd = fileno(file);
# 301|-> if (fd < 0)
# 302| return NULL;
# 303|