Task #92167 - added.err
back to task #92167download
Error: GCC_ANALYZER_WARNING (CWE-401): wayland-utils-1.3.0/wayland-info/wayland-info.c:1454:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 72)’ wayland-utils-1.3.0/wayland-info/wayland-info.c:1447:1: enter_function: entry to ‘handle_tablet_v2_tablet_pad_group’ wayland-utils-1.3.0/wayland-info/wayland-info.c:1452:47: call_function: inlined call to ‘zalloc’ from ‘handle_tablet_v2_tablet_pad_group’ wayland-utils-1.3.0/wayland-info/wayland-info.c:1452:47: call_function: inlined call to ‘fail_on_null’ from ‘handle_tablet_v2_tablet_pad_group’ wayland-utils-1.3.0/wayland-info/wayland-info.c:1454:9: branch_false: ...to here wayland-utils-1.3.0/wayland-info/wayland-info.c:1454:9: throw: if ‘wl_list_insert’ throws an exception... wayland-utils-1.3.0/wayland-info/wayland-info.c:1454:9: danger: ‘calloc(1, 72)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2) # 1452| struct tablet_pad_group_info *group = xzalloc(sizeof *group); # 1453| # 1454|-> wl_list_insert(&pad_info->groups, &group->link); # 1455| group->group = pad_group; # 1456| zwp_tablet_pad_group_v2_add_listener(pad_group, Error: GCC_ANALYZER_WARNING (CWE-401): wayland-utils-1.3.0/wayland-info/wayland-info.c:1613:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 64)’ wayland-utils-1.3.0/wayland-info/wayland-info.c:1607:1: enter_function: entry to ‘add_tablet_v2_tablet_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:1611:43: call_function: inlined call to ‘zalloc’ from ‘add_tablet_v2_tablet_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:1611:43: call_function: inlined call to ‘fail_on_null’ from ‘add_tablet_v2_tablet_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:1613:9: branch_false: ...to here wayland-utils-1.3.0/wayland-info/wayland-info.c:1613:9: throw: if ‘wl_list_init’ throws an exception... wayland-utils-1.3.0/wayland-info/wayland-info.c:1613:9: danger: ‘calloc(1, 64)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2) # 1611| struct tablet_info *tablet_info = xzalloc(sizeof *tablet_info); # 1612| # 1613|-> wl_list_init(&tablet_info->paths); # 1614| tablet_info->tablet = tablet; # 1615| wl_list_insert(&tablet_seat->tablets, &tablet_info->link); Error: GCC_ANALYZER_WARNING (CWE-401): wayland-utils-1.3.0/wayland-info/wayland-info.c:2741:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 200)’ wayland-utils-1.3.0/wayland-info/wayland-info.c:2735:1: enter_function: entry to ‘add_color_management_output_v1_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:2739:17: call_function: inlined call to ‘zalloc’ from ‘add_color_management_output_v1_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:2739:17: call_function: inlined call to ‘fail_on_null’ from ‘add_color_management_output_v1_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:2741:9: branch_false: ...to here wayland-utils-1.3.0/wayland-info/wayland-info.c:2741:9: throw: if ‘wl_list_insert’ throws an exception... wayland-utils-1.3.0/wayland-info/wayland-info.c:2741:9: danger: ‘calloc(1, 200)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2) # 2739| xzalloc(sizeof(struct wp_color_management_output_v1_info)); # 2740| # 2741|-> wl_list_insert(&color->outputs, &output->link); # 2742| output->color = color; # 2743| output->output = wl_output; Error: GCC_ANALYZER_WARNING (CWE-401): wayland-utils-1.3.0/wayland-info/wayland-info.c:2916:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 176)’ wayland-utils-1.3.0/wayland-info/wayland-info.c:2910:1: enter_function: entry to ‘add_color_management_v1_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:2913:53: call_function: inlined call to ‘zalloc’ from ‘add_color_management_v1_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:2913:53: call_function: inlined call to ‘fail_on_null’ from ‘add_color_management_v1_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:2916:17: branch_false: ...to here wayland-utils-1.3.0/wayland-info/wayland-info.c:2915:9: call_function: calling ‘init_global_info’ from ‘add_color_management_v1_info’ # 2914| # 2915| init_global_info(info, &color->global, id, # 2916|-> wp_color_manager_v1_interface.name, version); # 2917| # 2918| color->wayland = info; Error: GCC_ANALYZER_WARNING (CWE-401): wayland-utils-1.3.0/wayland-info/wayland-info.c:3084:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 136)’ wayland-utils-1.3.0/wayland-info/wayland-info.c:3077:1: enter_function: entry to ‘add_color_representation_management_v1_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:3081:17: call_function: inlined call to ‘zalloc’ from ‘add_color_representation_management_v1_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:3081:17: call_function: inlined call to ‘fail_on_null’ from ‘add_color_representation_management_v1_info’ wayland-utils-1.3.0/wayland-info/wayland-info.c:3084:17: branch_false: ...to here wayland-utils-1.3.0/wayland-info/wayland-info.c:3083:9: call_function: calling ‘init_global_info’ from ‘add_color_representation_management_v1_info’ # 3082| # 3083| init_global_info(info, &color_repr->global, id, # 3084|-> wp_color_representation_manager_v1_interface.name, version); # 3085| # 3086| color_repr->wayland = info;