libdecor-0.2.5-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libdecor-0.2.5/src/libdecor-fallback.c:184:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
libdecor-0.2.5/src/libdecor-fallback.c:179:1: enter_function: entry to ‘libdecor_fallback_plugin_new’
libdecor-0.2.5/src/libdecor-fallback.c:183:18: call_function: inlined call to ‘zalloc’ from ‘libdecor_fallback_plugin_new’
libdecor-0.2.5/src/libdecor-fallback.c:184:9: throw: if ‘libdecor_plugin_init’ throws an exception...
libdecor-0.2.5/src/libdecor-fallback.c:184:9: danger: ‘calloc(1, 16)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
libdecor-0.2.5/src/libdecor-fallback.c:185:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 16)’
libdecor-0.2.5/src/libdecor-fallback.c:179:1: enter_function: entry to ‘libdecor_fallback_plugin_new’
libdecor-0.2.5/src/libdecor-fallback.c:183:18: call_function: inlined call to ‘zalloc’ from ‘libdecor_fallback_plugin_new’
libdecor-0.2.5/src/libdecor-fallback.c:185:9: danger: ‘calloc(1, 16)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
libdecor-0.2.5/src/libdecor.c:218:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 12)’
libdecor-0.2.5/src/libdecor.c:212:1: enter_function: entry to ‘libdecor_state_new’
libdecor-0.2.5/src/libdecor.c:217:17: call_function: inlined call to ‘zalloc’ from ‘libdecor_state_new’
libdecor-0.2.5/src/libdecor.c:218:9: danger: ‘calloc(1, 12)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
libdecor-0.2.5/src/libdecor.c:366:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘configuration’
libdecor-0.2.5/src/libdecor.c:352:1: enter_function: entry to ‘xdg_surface_configure’
libdecor-0.2.5/src/libdecor.c:363:12: branch_true: following ‘true’ branch (when ‘configuration’ is NULL)...
libdecor-0.2.5/src/libdecor.c:364:33: call_function: inlined call to ‘libdecor_configuration_new’ from ‘xdg_surface_configure’
libdecor-0.2.5/src/libdecor.c:366:9: danger: ‘configuration’ could be NULL: unchecked value from [(6)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libdecor-0.2.5/src/libdecor.c:368:9: warning[-Wanalyzer-malloc-leak]: leak of ‘configuration’
libdecor-0.2.5/src/libdecor.c:352:1: enter_function: entry to ‘xdg_surface_configure’
libdecor-0.2.5/src/libdecor.c:363:12: branch_true: following ‘true’ branch (when ‘configuration’ is NULL)...
libdecor-0.2.5/src/libdecor.c:364:33: call_function: inlined call to ‘libdecor_configuration_new’ from ‘xdg_surface_configure’
libdecor-0.2.5/src/libdecor.c:368:9: throw: if the called function throws an exception...
libdecor-0.2.5/src/libdecor.c:368:9: danger: ‘configuration’ leaks here; was allocated at [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
libdecor-0.2.5/src/libdecor.c:438:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*((struct libdecor_frame)*(void *)user_data).priv.pending_configuration’
libdecor-0.2.5/src/libdecor.c:424:1: enter_function: entry to ‘xdg_toplevel_configure’
libdecor-0.2.5/src/libdecor.c:436:45: call_function: inlined call to ‘libdecor_configuration_new’ from ‘xdg_toplevel_configure’
libdecor-0.2.5/src/libdecor.c:438:9: danger: ‘calloc(1, 24)’ could be NULL: unchecked value from [(4)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libdecor-0.2.5/src/libdecor.c:443:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*((struct libdecor_frame)*(void *)user_data).priv.pending_configuration’
libdecor-0.2.5/src/libdecor.c:424:1: enter_function: entry to ‘xdg_toplevel_configure’
libdecor-0.2.5/src/libdecor.c:436:45: call_function: inlined call to ‘libdecor_configuration_new’ from ‘xdg_toplevel_configure’
libdecor-0.2.5/src/libdecor.c:443:9: danger: ‘*((struct libdecor_frame)*(void *)user_data).priv.pending_configuration’ leaks here; was allocated at [(4)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
libdecor-0.2.5/src/libdecor.c:583:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 168)’
libdecor-0.2.5/src/libdecor.c:564:1: enter_function: entry to ‘libdecor_decorate’
libdecor-0.2.5/src/libdecor.c:573:12: branch_false: following ‘false’ branch...
libdecor-0.2.5/src/libdecor.c:576:17: branch_false: ...to here
libdecor-0.2.5/src/libdecor.c:577:12: branch_false: following ‘false’ branch...
libdecor-0.2.5/src/libdecor.c:580:22: call_function: inlined call to ‘zalloc’ from ‘libdecor_decorate’
libdecor-0.2.5/src/libdecor.c:583:9: danger: ‘calloc(1, 168)’ could be NULL: unchecked value from [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libdecor-0.2.5/src/libdecor.c:1162:39: warning[-Wanalyzer-malloc-leak]: leak of ‘libdecor_state_new(*frame_22(D)->priv.content_width, *frame_22(D)->priv.content_height)’
libdecor-0.2.5/src/libdecor.c:758:1: enter_function: entry to ‘notify_on_capability_change’
libdecor-0.2.5/src/libdecor.c:764:12: branch_false: following ‘false’ branch...
libdecor-0.2.5/src/libdecor.c:767:13: branch_false: ...to here
libdecor-0.2.5/src/libdecor.c:767:12: branch_false: following ‘false’ branch...
libdecor-0.2.5/src/libdecor.c:768:13: branch_false: ...to here
libdecor-0.2.5/src/libdecor.c:767:13: branch_false: following ‘false’ branch...
libdecor-0.2.5/src/libdecor.c:771:9: branch_false: ...to here
libdecor-0.2.5/src/libdecor.c:787:17: call_function: calling ‘libdecor_state_new’ from ‘notify_on_capability_change’
libdecor-0.2.5/src/libdecor.c:787:17: return_function: returning to ‘notify_on_capability_change’ from ‘libdecor_state_new’
libdecor-0.2.5/src/libdecor.c:789:9: call_function: calling ‘libdecor_frame_commit’ from ‘notify_on_capability_change’
Error: COMPILER_WARNING (CWE-704): [#def10]
libdecor-0.2.5/src/libdecor.c: scope_hint: In function ‘load_plugin_loader’
libdecor-0.2.5/src/libdecor.c:1479:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def11]
libdecor-0.2.5/src/libdecor.c:1479:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
libdecor-0.2.5/src/libdecor.c:1533:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 48)’
libdecor-0.2.5/src/libdecor.c:1468:1: enter_function: entry to ‘load_plugin_loader’
libdecor-0.2.5/src/libdecor.c:1480:12: branch_false: following ‘false’ branch...
libdecor-0.2.5/src/libdecor.c:1483:12: branch_false: following ‘false’ branch...
libdecor-0.2.5/src/libdecor.c:1486:15: branch_false: ...to here
libdecor-0.2.5/src/libdecor.c:1488:12: branch_false: following ‘false’ branch (when ‘lib’ is non-NULL)...
libdecor-0.2.5/src/libdecor.c:1493:30: branch_false: ...to here
libdecor-0.2.5/src/libdecor.c:1494:12: branch_false: following ‘false’ branch (when ‘plugin_description’ is non-NULL)...
libdecor-0.2.5/src/libdecor.c:1502:13: branch_false: ...to here
libdecor-0.2.5/src/libdecor.c:1502:12: branch_false: following ‘false’ branch...
libdecor-0.2.5/src/libdecor.c:1513:15: branch_false: ...to here
libdecor-0.2.5/src/libdecor.c:1513:12: branch_false: following ‘false’ branch...
libdecor-0.2.5/src/libdecor.c:1518:14: branch_false: ...to here
libdecor-0.2.5/src/libdecor.c:1518:12: branch_true: following ‘true’ branch...
libdecor-0.2.5/src/libdecor.c:1523:20: branch_true: ...to here
libdecor-0.2.5/src/libdecor.c:1524:12: branch_false: following ‘false’ branch...
libdecor-0.2.5/src/libdecor.c:1532:25: call_function: inlined call to ‘zalloc’ from ‘load_plugin_loader’
libdecor-0.2.5/src/libdecor.c:1533:9: danger: ‘calloc(1, 48)’ could be NULL: unchecked value from [(19)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libdecor-0.2.5/src/libdecor.c:1567:9: warning[-Wanalyzer-malloc-leak]: leak of ‘all_plugin_dirs’
libdecor-0.2.5/src/libdecor.c:1565:27: acquire_memory: allocated here
libdecor-0.2.5/src/libdecor.c:1567:9: throw: if ‘wl_list_init’ throws an exception...
libdecor-0.2.5/src/libdecor.c:1567:9: danger: ‘all_plugin_dirs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libdecor-0.2.5/src/libdecor.c:1579:38: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(plugin_dir)’
libdecor-0.2.5/src/libdecor.c:1569:16: branch_true: following ‘true’ branch (when ‘plugin_dir’ is non-NULL)...
libdecor-0.2.5/src/libdecor.c:1570:23: branch_true: ...to here
libdecor-0.2.5/src/libdecor.c:1570:23: acquire_memory: allocated here
libdecor-0.2.5/src/libdecor.c:1579:38: throw: if ‘readdir’ throws an exception...
libdecor-0.2.5/src/libdecor.c:1579:38: danger: ‘opendir(plugin_dir)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
libdecor-0.2.5/src/libdecor.c:1725:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 96)’
libdecor-0.2.5/src/libdecor.c:1718:1: enter_function: entry to ‘libdecor_new’
libdecor-0.2.5/src/libdecor.c:1723:19: call_function: inlined call to ‘zalloc’ from ‘libdecor_new’
libdecor-0.2.5/src/libdecor.c:1725:9: danger: ‘calloc(1, 96)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libdecor-0.2.5/src/os-compatibility.c:76:14: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
libdecor-0.2.5/src/os-compatibility.c:151:1: enter_function: entry to ‘libdecor_os_create_anonymous_file’
libdecor-0.2.5/src/os-compatibility.c:160:12: branch_false: following ‘false’ branch (when ‘fd < 0’)...
libdecor-0.2.5/src/os-compatibility.c:171:24: branch_false: ...to here
libdecor-0.2.5/src/os-compatibility.c:172:20: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
libdecor-0.2.5/src/os-compatibility.c:177:31: branch_false: ...to here
libdecor-0.2.5/src/os-compatibility.c:177:24: acquire_memory: allocated here
libdecor-0.2.5/src/os-compatibility.c:178:20: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
libdecor-0.2.5/src/os-compatibility.c:181:17: branch_false: ...to here
libdecor-0.2.5/src/os-compatibility.c:184:22: call_function: calling ‘create_tmpfile_cloexec’ from ‘libdecor_os_create_anonymous_file’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:887:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 24)’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:893:1: enter_function: entry to ‘surface_enter’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:903:17: call_function: inlined call to ‘get_component_for_surface’ from ‘surface_enter’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:907:14: call_function: calling ‘add_surface_output’ from ‘surface_enter’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:888:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:893:1: enter_function: entry to ‘surface_enter’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:903:17: call_function: inlined call to ‘get_component_for_surface’ from ‘surface_enter’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:907:14: call_function: calling ‘add_surface_output’ from ‘surface_enter’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:1566:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘border_component’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2271:1: enter_function: entry to ‘pointer_leave’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2284:9: call_function: calling ‘synthesize_pointer_leave’ from ‘pointer_leave’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:1985:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 24)’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:1976:1: enter_function: entry to ‘cursor_surface_enter’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:1984:33: call_function: inlined call to ‘zalloc’ from ‘cursor_surface_enter’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:1985:17: danger: ‘calloc(1, 24)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:1986:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:1976:1: enter_function: entry to ‘cursor_surface_enter’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:1984:33: call_function: inlined call to ‘zalloc’ from ‘cursor_surface_enter’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:1986:17: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2486:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 200)’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2471:1: enter_function: entry to ‘init_wl_seat’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2485:16: call_function: inlined call to ‘zalloc’ from ‘init_wl_seat’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2486:9: danger: ‘calloc(1, 200)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2488:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 200)’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2471:1: enter_function: entry to ‘init_wl_seat’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2485:16: call_function: inlined call to ‘zalloc’ from ‘init_wl_seat’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2488:9: throw: if ‘wl_list_init’ throws an exception...
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2488:9: danger: ‘calloc(1, 200)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2575:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 40)’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2560:1: enter_function: entry to ‘init_wl_output’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2574:18: call_function: inlined call to ‘zalloc’ from ‘init_wl_output’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2575:9: danger: ‘calloc(1, 40)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2576:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 40)’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2560:1: enter_function: entry to ‘init_wl_output’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2574:18: call_function: inlined call to ‘zalloc’ from ‘init_wl_output’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2576:9: throw: if ‘wl_list_insert’ throws an exception...
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2576:9: danger: ‘calloc(1, 40)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2706:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 152)’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2700:1: enter_function: entry to ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2705:24: call_function: inlined call to ‘zalloc’ from ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2706:9: throw: if ‘libdecor_plugin_init’ throws an exception...
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2706:9: danger: ‘calloc(1, 152)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2709:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 152)’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2700:1: enter_function: entry to ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2705:24: call_function: inlined call to ‘zalloc’ from ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/cairo/libdecor-cairo.c:2709:9: danger: ‘calloc(1, 152)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
libdecor-0.2.5/src/plugins/dummy/libdecor-dummy.c:114:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 16)’
libdecor-0.2.5/src/plugins/dummy/libdecor-dummy.c:109:1: enter_function: entry to ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/dummy/libdecor-dummy.c:113:24: call_function: inlined call to ‘zalloc’ from ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/dummy/libdecor-dummy.c:114:9: throw: if ‘libdecor_plugin_init’ throws an exception...
libdecor-0.2.5/src/plugins/dummy/libdecor-dummy.c:114:9: danger: ‘calloc(1, 16)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
libdecor-0.2.5/src/plugins/dummy/libdecor-dummy.c:115:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 16)’
libdecor-0.2.5/src/plugins/dummy/libdecor-dummy.c:109:1: enter_function: entry to ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/dummy/libdecor-dummy.c:113:24: call_function: inlined call to ‘zalloc’ from ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/dummy/libdecor-dummy.c:115:9: danger: ‘calloc(1, 16)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def30]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:411: error[uninitvar]: Uninitialized variable: seat->wl_pointer
Error: CPPCHECK_WARNING (CWE-457): [#def31]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:423: error[uninitvar]: Uninitialized variable: cursor_output.output
Error: CPPCHECK_WARNING (CWE-457): [#def32]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:667: error[uninitvar]: Uninitialized variable: surface_output.output
Error: CPPCHECK_WARNING (CWE-457): [#def33]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:741: error[uninitvar]: Uninitialized variable: surface_output->output
Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:771:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 24)’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:777:1: enter_function: entry to ‘surface_enter’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:787:17: call_function: inlined call to ‘get_component_for_surface’ from ‘surface_enter’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:791:14: call_function: calling ‘add_surface_output’ from ‘surface_enter’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:772:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:777:1: enter_function: entry to ‘surface_enter’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:787:17: call_function: inlined call to ‘get_component_for_surface’ from ‘surface_enter’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:791:14: call_function: calling ‘add_surface_output’ from ‘surface_enter’
Error: CPPCHECK_WARNING (CWE-457): [#def36]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:804: error[uninitvar]: Uninitialized variable: surface_output->output
Error: CPPCHECK_WARNING (CWE-457): [#def37]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1686: error[uninitvar]: Uninitialized variable: seat->name
Error: CPPCHECK_WARNING (CWE-457): [#def38]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1712: error[uninitvar]: Uninitialized variable: seat->name
Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1884:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 24)’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1875:1: enter_function: entry to ‘cursor_surface_enter’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1883:33: call_function: inlined call to ‘zalloc’ from ‘cursor_surface_enter’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1884:17: danger: ‘calloc(1, 24)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1885:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 24)’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1875:1: enter_function: entry to ‘cursor_surface_enter’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1883:33: call_function: inlined call to ‘zalloc’ from ‘cursor_surface_enter’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1885:17: danger: ‘calloc(1, 24)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def41]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1901: error[uninitvar]: Uninitialized variable: cursor_output->output
Error: CPPCHECK_WARNING (CWE-457): [#def42]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:1939: error[uninitvar]: Uninitialized variable: cursor_output->output
Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2574:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 216)’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2558:1: enter_function: entry to ‘init_wl_seat’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2573:16: call_function: inlined call to ‘zalloc’ from ‘init_wl_seat’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2574:9: danger: ‘calloc(1, 216)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2576:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 216)’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2558:1: enter_function: entry to ‘init_wl_seat’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2573:16: call_function: inlined call to ‘zalloc’ from ‘init_wl_seat’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2576:9: throw: if ‘wl_list_init’ throws an exception...
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2576:9: danger: ‘calloc(1, 216)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def45]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2619: error[uninitvar]: Uninitialized variables: frame_gtk.frame, frame_gtk.plugin_gtk, frame_gtk.content_width, frame_gtk.content_height, frame_gtk.window_state, frame_gtk.decoration_type, frame_gtk.title, frame_gtk.capabilities, frame_gtk.active, frame_gtk.touch_active, frame_gtk.focus, frame_gtk.grab, frame_gtk.shadow_showing, frame_gtk.shadow, frame_gtk.window, frame_gtk.header, frame_gtk.headerbar, frame_gtk.hdr_focus, frame_gtk.shadow_blur, frame_gtk.link
Error: CPPCHECK_WARNING (CWE-457): [#def46]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2624: error[uninitvar]: Uninitialized variables: seat.plugin_gtk, seat.name, seat.wl_seat, seat.wl_pointer, seat.wl_touch, seat.cursor_surface, seat.current_cursor, seat.cursor_scale, seat.cursor_outputs, seat.cursor_theme, seat.cursor_left_ptr, seat.pointer_focus, seat.touch_focus, seat.pointer_x, seat.pointer_y, seat.pointer_button_time_stamp, seat.touch_down_time_stamp, seat.serial, seat.grabbed, seat.link
Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2663:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 40)’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2647:1: enter_function: entry to ‘init_wl_output’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2662:18: call_function: inlined call to ‘zalloc’ from ‘init_wl_output’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2663:9: danger: ‘calloc(1, 40)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2664:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 40)’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2647:1: enter_function: entry to ‘init_wl_output’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2662:18: call_function: inlined call to ‘zalloc’ from ‘init_wl_output’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2664:9: throw: if ‘wl_list_insert’ throws an exception...
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2664:9: danger: ‘calloc(1, 40)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-457): [#def49]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2701: error[uninitvar]: Uninitialized variable: surface_output->output
Error: CPPCHECK_WARNING (CWE-457): [#def50]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2722: error[uninitvar]: Uninitialized variable: cursor_output->output
Error: CPPCHECK_WARNING (CWE-457): [#def51]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2743: error[uninitvar]: Uninitialized variable: output->id
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2796:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 152)’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2784:1: enter_function: entry to ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2795:22: call_function: inlined call to ‘zalloc’ from ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2796:9: throw: if ‘libdecor_plugin_init’ throws an exception...
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2796:9: danger: ‘calloc(1, 152)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2799:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(1, 152)’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2784:1: enter_function: entry to ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2795:22: call_function: inlined call to ‘zalloc’ from ‘libdecor_plugin_new’
libdecor-0.2.5/src/plugins/gtk/libdecor-gtk.c:2799:9: danger: ‘calloc(1, 152)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-212.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libdecor-0.2.5-1.fc44 |
| store-results-to | /tmp/tmpebrqwsal/libdecor-0.2.5-1.fc44.tar.xz |
| time-created | 2026-01-08 18:51:22 |
| time-finished | 2026-01-08 18:52:56 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpebrqwsal/libdecor-0.2.5-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpebrqwsal/libdecor-0.2.5-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |