libcomps-0.1.23-2.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
libcomps-0.1.23/libcomps/src/comps_bradix.c:42:17: warning[-Wanalyzer-malloc-leak]: leak of ‘brtd’
libcomps-0.1.23/libcomps/src/comps_bradix.c:40:17: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:40:8: branch_false: following ‘false’ branch (when ‘brtd’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:42:17: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:42:17: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:42:17: danger: ‘brtd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
libcomps-0.1.23/libcomps/src/comps_bradix.c:42:17: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_brtree_data_create_n(brt, *brtdata.key, *brt.key_cmp(*(COMPS_BRTreeData *)it.23_14->data.key, key, 1, offset + 1, *brt.key_len(key), &ended), 0)’
libcomps-0.1.23/libcomps/src/comps_bradix.c:232:6: enter_function: entry to ‘comps_brtree_set’
libcomps-0.1.23/libcomps/src/comps_bradix.c:246:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:248:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:255:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:258:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:265:12: branch_false: following ‘false’ branch (when ‘found != 0’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:272:44: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:274:16: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:278:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:278:23: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:293:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:298:24: call_function: calling ‘comps_brtree_data_create_n’ from ‘comps_brtree_set’
libcomps-0.1.23/libcomps/src/comps_bradix.c:298:24: return_function: returning to ‘comps_brtree_set’ from ‘comps_brtree_data_create_n’
libcomps-0.1.23/libcomps/src/comps_bradix.c:42:17: danger: ‘comps_brtree_data_create_n(brt, *brtdata.key, *brt.key_cmp(*(COMPS_BRTreeData *)it.23_14->data.key, key, 1, offset + 1, *brt.key_len(key), &ended), 0)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libcomps-0.1.23/libcomps/src/comps_bradix.c:53:22: warning[-Wanalyzer-malloc-leak]: leak of ‘brtd’
libcomps-0.1.23/libcomps/src/comps_bradix.c:40:17: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:40:8: branch_false: following ‘false’ branch (when ‘brtd’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:42:17: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:43:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:48:5: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:53:22: throw: if ‘comps_hslist_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:53:22: danger: ‘brtd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libcomps-0.1.23/libcomps/src/comps_bradix.c:55:5: warning[-Wanalyzer-malloc-leak]: leak of ‘brtd’
libcomps-0.1.23/libcomps/src/comps_bradix.c:40:17: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:40:8: branch_false: following ‘false’ branch (when ‘brtd’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:42:17: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:43:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:48:5: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:55:5: throw: if ‘comps_hslist_init’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:55:5: danger: ‘brtd’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libcomps-0.1.23/libcomps/src/comps_bradix.c:62:49: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_brtree_data_create(brt, key, ndata)’
libcomps-0.1.23/libcomps/src/comps_bradix.c:232:6: enter_function: entry to ‘comps_brtree_set’
libcomps-0.1.23/libcomps/src/comps_bradix.c:246:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:248:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:255:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:258:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:265:12: branch_false: following ‘false’ branch (when ‘found != 0’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:272:44: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:274:16: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:278:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:281:24: call_function: calling ‘comps_brtree_data_create’ from ‘comps_brtree_set’
libcomps-0.1.23/libcomps/src/comps_bradix.c:281:24: return_function: returning to ‘comps_brtree_set’ from ‘comps_brtree_data_create’
libcomps-0.1.23/libcomps/src/comps_bradix.c:62:49: danger: ‘comps_brtree_data_create(brt, key, ndata)’ leaks here; was allocated at [(14)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libcomps-0.1.23/libcomps/src/comps_bradix.c:62:49: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_brtree_data_create(brt, *(COMPS_BRTreeData *)it_34->data.key, 0)’
libcomps-0.1.23/libcomps/src/comps_bradix.c:144:16: enter_function: entry to ‘comps_brtree_clone’
libcomps-0.1.23/libcomps/src/comps_bradix.c:152:8: branch_false: following ‘false’ branch (when ‘brt’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:154:16: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:167:37: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:169:59: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:168:19: call_function: calling ‘comps_brtree_data_create’ from ‘comps_brtree_clone’
libcomps-0.1.23/libcomps/src/comps_bradix.c:168:19: return_function: returning to ‘comps_brtree_clone’ from ‘comps_brtree_data_create’
libcomps-0.1.23/libcomps/src/comps_bradix.c:170:20: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:62:49: danger: ‘comps_brtree_data_create(brt, *(COMPS_BRTreeData *)it_34->data.key, 0)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libcomps-0.1.23/libcomps/src/comps_bradix.c:62:49: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_brtree_data_create(brt, *(COMPS_BRTreeData *)it_35->data.key, 0)’
libcomps-0.1.23/libcomps/src/comps_bradix.c:144:16: enter_function: entry to ‘comps_brtree_clone’
libcomps-0.1.23/libcomps/src/comps_bradix.c:152:8: branch_false: following ‘false’ branch (when ‘brt’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:154:16: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:167:37: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:167:37: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:180:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:182:39: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:188:23: call_function: calling ‘comps_brtree_data_create’ from ‘comps_brtree_clone’
libcomps-0.1.23/libcomps/src/comps_bradix.c:188:23: return_function: returning to ‘comps_brtree_clone’ from ‘comps_brtree_data_create’
libcomps-0.1.23/libcomps/src/comps_bradix.c:190:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:191:28: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:191:28: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:62:49: danger: ‘comps_brtree_data_create(brt, *(COMPS_BRTreeData *)it_35->data.key, 0)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libcomps-0.1.23/libcomps/src/comps_bradix.c:62:49: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_brtree_data_create(brt, *brt.subkey(key, offset + *brt.key_cmp(*(COMPS_BRTreeData *)it.23_14->data.key, key, 1, offset + 1, *brt.key_len(key), &ended), *brt.key_len(key)), ndata)’
libcomps-0.1.23/libcomps/src/comps_bradix.c:232:6: enter_function: entry to ‘comps_brtree_set’
libcomps-0.1.23/libcomps/src/comps_bradix.c:246:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:248:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:255:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:258:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:265:12: branch_false: following ‘false’ branch (when ‘found != 0’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:272:44: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:274:16: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:278:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:278:23: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:293:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:302:24: call_function: calling ‘comps_brtree_data_create’ from ‘comps_brtree_set’
libcomps-0.1.23/libcomps/src/comps_bradix.c:302:24: return_function: returning to ‘comps_brtree_set’ from ‘comps_brtree_data_create’
libcomps-0.1.23/libcomps/src/comps_bradix.c:303:17: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:62:49: danger: ‘comps_brtree_data_create(brt, *brt.subkey(key, offset + *brt.key_cmp(*(COMPS_BRTreeData *)it.23_14->data.key, key, 1, offset + 1, *brt.key_len(key), &ended), *brt.key_len(key)), ndata)’ leaks here; was allocated at [(16)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libcomps-0.1.23/libcomps/src/comps_bradix.c:62:49: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_brtree_data_create(brt, *brt.subkey(key, offset, *brt.key_len(key)), ndata)’
libcomps-0.1.23/libcomps/src/comps_bradix.c:232:6: enter_function: entry to ‘comps_brtree_set’
libcomps-0.1.23/libcomps/src/comps_bradix.c:246:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:248:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:255:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:258:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:267:20: call_function: calling ‘comps_brtree_data_create’ from ‘comps_brtree_set’
libcomps-0.1.23/libcomps/src/comps_bradix.c:267:20: return_function: returning to ‘comps_brtree_set’ from ‘comps_brtree_data_create’
libcomps-0.1.23/libcomps/src/comps_bradix.c:268:13: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:62:49: danger: ‘comps_brtree_data_create(brt, *brt.subkey(key, offset, *brt.key_len(key)), ndata)’ leaks here; was allocated at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
libcomps-0.1.23/libcomps/src/comps_bradix.c:91:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/src/comps_bradix.c:89:16: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:89:8: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:91:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:91:21: throw: if ‘comps_hslist_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:91:21: danger: ‘ret’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libcomps-0.1.23/libcomps/src/comps_bradix.c:92:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/src/comps_bradix.c:89:16: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:89:8: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:91:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:92:5: throw: if ‘comps_hslist_init’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:92:5: danger: ‘ret’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libcomps-0.1.23/libcomps/src/comps_bradix.c:167:15: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_brtree_create(*brt.data_constructor, *brt.data_cloner, *brt.data_destructor, *brt.key_clone, *brt.key_destroy, *brt.key_cmp, *brt.key_len, *brt.subkey, *brt.key_concat)’
libcomps-0.1.23/libcomps/src/comps_bradix.c:144:16: enter_function: entry to ‘comps_brtree_clone’
libcomps-0.1.23/libcomps/src/comps_bradix.c:152:8: branch_false: following ‘false’ branch (when ‘brt’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:154:16: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:156:11: call_function: calling ‘comps_brtree_create’ from ‘comps_brtree_clone’
libcomps-0.1.23/libcomps/src/comps_bradix.c:156:11: return_function: returning to ‘comps_brtree_clone’ from ‘comps_brtree_create’
libcomps-0.1.23/libcomps/src/comps_bradix.c:167:37: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:169:59: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:168:19: call_function: calling ‘comps_brtree_data_create’ from ‘comps_brtree_clone’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
libcomps-0.1.23/libcomps/src/comps_bradix.c:173:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.23/libcomps/src/comps_bradix.c:152:8: branch_false: following ‘false’ branch (when ‘brt’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:154:16: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:167:37: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:169:59: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:173:9: danger: dereference of NULL ‘comps_brtree_data_create(brt, *(COMPS_BRTreeData *)it_34->data.key, 0)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
libcomps-0.1.23/libcomps/src/comps_bradix.c:175:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.23/libcomps/src/comps_bradix.c:144:16: enter_function: entry to ‘comps_brtree_clone’
libcomps-0.1.23/libcomps/src/comps_bradix.c:152:8: branch_false: following ‘false’ branch (when ‘brt’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:154:16: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:167:37: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:169:59: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:168:19: call_function: calling ‘comps_brtree_data_create’ from ‘comps_brtree_clone’
libcomps-0.1.23/libcomps/src/comps_bradix.c:168:19: return_function: returning to ‘comps_brtree_clone’ from ‘comps_brtree_data_create’
libcomps-0.1.23/libcomps/src/comps_bradix.c:175:9: danger: dereference of NULL ‘comps_brtree_create(*brt.data_constructor, *brt.data_cloner, *brt.data_destructor, *brt.key_clone, *brt.key_destroy, *brt.key_cmp, *brt.key_len, *brt.subkey, *brt.key_concat)’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def15]
libcomps-0.1.23/libcomps/src/comps_bradix.c:182:39: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*to_clone.first’
libcomps-0.1.23/libcomps/src/comps_bradix.c:152:8: branch_false: following ‘false’ branch (when ‘brt’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:154:16: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:167:37: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:167:37: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:180:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:182:39: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:187:35: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:201:29: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:202:9: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_bradix.c:180:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:182:39: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:182:39: danger: use after ‘free’ of ‘*to_clone.first’; freed at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
libcomps-0.1.23/libcomps/src/comps_bradix.c:195:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.23/libcomps/src/comps_bradix.c:152:8: branch_false: following ‘false’ branch (when ‘brt’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:154:16: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:167:37: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:167:37: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:180:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:182:39: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:190:16: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:194:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:195:13: danger: dereference of NULL ‘comps_brtree_data_create(brt, *(COMPS_BRTreeData *)it_35->data.key, 0)’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libcomps-0.1.23/libcomps/src/comps_bradix.c:477:9: warning[-Wanalyzer-malloc-leak]: leak of ‘relation’
libcomps-0.1.23/libcomps/src/comps_bradix.c:403:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:406:5: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:411:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:413:14: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:413:36: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:414:17: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:414:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:420:12: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:420:12: branch_false: following ‘false’ branch (when ‘found != 0’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:424:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:426:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:465:17: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:465:17: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:465:30: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:470:25: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:470:12: branch_false: following ‘false’ branch (when ‘relation’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:474:40: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:477:9: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:477:9: danger: ‘relation’ leaks here; was allocated at [(15)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/14)
Error: CPPCHECK_WARNING (CWE-476): [#def18]
libcomps-0.1.23/libcomps/src/comps_bradix.c:517: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
libcomps-0.1.23/libcomps/src/comps_bradix.c:517:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:516:12: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_bradix.c:517:5: danger: ‘pair’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def20]
libcomps-0.1.23/libcomps/src/comps_bradix.c:518: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def21]
libcomps-0.1.23/libcomps/src/comps_bradix.c:519: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
libcomps-0.1.23/libcomps/src/comps_bradix.c:521:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:516:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:521:15: throw: if ‘comps_hslist_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:521:15: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libcomps-0.1.23/libcomps/src/comps_bradix.c:522:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:516:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:522:5: throw: if ‘comps_hslist_init’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:522:5: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
libcomps-0.1.23/libcomps/src/comps_bradix.c:523:11: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:516:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:523:11: throw: if ‘comps_hslist_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:523:11: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libcomps-0.1.23/libcomps/src/comps_bradix.c:525:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:516:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:524:8: branch_true: following ‘true’ branch (when ‘pairorkey == 1’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:525:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:525:9: throw: if ‘comps_hslist_init’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:525:9: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
libcomps-0.1.23/libcomps/src/comps_bradix.c:527:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:516:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:524:8: branch_false: following ‘false’ branch (when ‘pairorkey != 1’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:527:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:527:9: throw: if ‘comps_hslist_init’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:527:9: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libcomps-0.1.23/libcomps/src/comps_bradix.c:529:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:516:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:529:5: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:529:5: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def28]
libcomps-0.1.23/libcomps/src/comps_bradix.c:534:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘**tmplist.first.data’
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:538:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:577:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:577:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:578:17: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:578:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:579:17: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:581:9: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:534:9: danger: use after ‘free’ of ‘*tmplist.73_35->first.data’; freed at [(10)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/9)
Error: CPPCHECK_WARNING (CWE-476): [#def29]
libcomps-0.1.23/libcomps/src/comps_bradix.c:540: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
libcomps-0.1.23/libcomps/src/comps_bradix.c:540:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_bradix.c:540:13: danger: ‘pair’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def31]
libcomps-0.1.23/libcomps/src/comps_bradix.c:541: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
libcomps-0.1.23/libcomps/src/comps_bradix.c:544:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:543:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:544:29: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:544:29: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:544:29: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libcomps-0.1.23/libcomps/src/comps_bradix.c:547:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:543:16: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:547:29: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:547:29: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:547:29: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
libcomps-0.1.23/libcomps/src/comps_bradix.c:553:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:543:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:544:29: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:551:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:552:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:552:20: branch_true: following ‘true’ branch (when ‘pairorkey == 1’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:553:21: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:553:21: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:553:21: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def35]
libcomps-0.1.23/libcomps/src/comps_bradix.c:556: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
libcomps-0.1.23/libcomps/src/comps_bradix.c:556:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rtpair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:543:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:544:29: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:551:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:552:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:552:20: branch_false: following ‘false’ branch (when ‘pairorkey != 1’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:555:30: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:555:30: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_bradix.c:556:21: danger: ‘rtpair’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def37]
libcomps-0.1.23/libcomps/src/comps_bradix.c:557: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: CPPCHECK_WARNING (CWE-476): [#def38]
libcomps-0.1.23/libcomps/src/comps_bradix.c:558: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libcomps-0.1.23/libcomps/src/comps_bradix.c:559:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:543:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:544:29: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:551:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:552:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:552:20: branch_false: following ‘false’ branch (when ‘pairorkey != 1’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:555:30: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:559:21: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:559:21: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
libcomps-0.1.23/libcomps/src/comps_bradix.c:559:21: warning[-Wanalyzer-malloc-leak]: leak of ‘rtpair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:543:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:544:29: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:551:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:552:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:552:20: branch_false: following ‘false’ branch (when ‘pairorkey != 1’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:555:30: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:555:30: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:559:21: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:559:21: danger: ‘rtpair’ leaks here; was allocated at [(11)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
libcomps-0.1.23/libcomps/src/comps_bradix.c:563:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:543:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:544:29: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:551:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:552:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:552:20: branch_true: following ‘true’ branch (when ‘pairorkey == 1’)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:553:21: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:562:20: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:563:21: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:563:21: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:563:21: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
libcomps-0.1.23/libcomps/src/comps_bradix.c:570:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:543:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:544:29: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:551:16: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:569:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:569:20: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:570:21: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:570:21: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:570:21: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
libcomps-0.1.23/libcomps/src/comps_bradix.c:572:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:539:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_bradix.c:543:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:544:29: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:551:16: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:569:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:569:20: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_bradix.c:572:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_bradix.c:572:21: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_bradix.c:572:21: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def44]
libcomps-0.1.23/libcomps/src/comps_doc.c:903:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘str’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_doc.c:894:10: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_doc.c:896:18: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_doc.c:897:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_doc.c:898:17: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_doc.c:898:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_doc.c:900:26: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_doc.c:902:19: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_doc.c:903:13: danger: argument 1 (‘str’) from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
libcomps-0.1.23/libcomps/src/comps_doc.c:904:13: warning[-Wanalyzer-malloc-leak]: leak of ‘str’
libcomps-0.1.23/libcomps/src/comps_doc.c:894:10: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_doc.c:896:18: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_doc.c:897:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_doc.c:898:17: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_doc.c:898:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_doc.c:900:26: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_doc.c:902:19: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_doc.c:904:13: throw: if ‘comps_valgenres_prefix’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_doc.c:904:13: danger: ‘str’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def46]
libcomps-0.1.23/libcomps/src/comps_docgroupid.c:97:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_docgroupid.c:96:17: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_docgroupid.c:97:5: danger: argument 1 (‘ret’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def47]
libcomps-0.1.23/libcomps/src/comps_docpackage.c:220: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
libcomps-0.1.23/libcomps/src/comps_elem.c:914:19: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_elem.c:899:8: branch_false: following ‘false’ branch (when ‘elem’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:902:5: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:903:8: branch_true: following ‘true’ branch (when ‘type == 0’)...
libcomps-0.1.23/libcomps/src/comps_elem.c:904:50: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:904:27: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_elem.c:904:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_elem.c:908:32: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:914:19: throw: if ‘comps_dict_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_elem.c:914:19: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
libcomps-0.1.23/libcomps/src/comps_elem.c:914:19: warning[-Wanalyzer-malloc-leak]: leak of ‘elem’
libcomps-0.1.23/libcomps/src/comps_elem.c:899:17: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_elem.c:899:8: branch_false: following ‘false’ branch (when ‘elem’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:902:5: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:903:8: branch_false: following ‘false’ branch (when ‘type != 0’)...
libcomps-0.1.23/libcomps/src/comps_elem.c:910:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:914:19: throw: if ‘comps_dict_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_elem.c:914:19: danger: ‘elem’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
libcomps-0.1.23/libcomps/src/comps_elem.c:919:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_elem.c:899:8: branch_false: following ‘false’ branch (when ‘elem’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:902:5: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:903:8: branch_true: following ‘true’ branch (when ‘type == 0’)...
libcomps-0.1.23/libcomps/src/comps_elem.c:904:50: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:904:27: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_elem.c:904:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_elem.c:908:32: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:915:8: branch_true: following ‘true’ branch (when ‘attrs’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:915:8: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:916:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_elem.c:917:27: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:919:17: throw: if ‘comps_dict_destroy’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_elem.c:919:17: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
libcomps-0.1.23/libcomps/src/comps_elem.c:919:17: warning[-Wanalyzer-malloc-leak]: leak of ‘elem’
libcomps-0.1.23/libcomps/src/comps_elem.c:899:17: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_elem.c:899:8: branch_false: following ‘false’ branch (when ‘elem’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:902:5: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:903:8: branch_false: following ‘false’ branch (when ‘type != 0’)...
libcomps-0.1.23/libcomps/src/comps_elem.c:910:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:915:8: branch_true: following ‘true’ branch (when ‘attrs’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:915:8: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:916:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_elem.c:917:27: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:919:17: throw: if ‘comps_dict_destroy’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_elem.c:919:17: danger: ‘elem’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libcomps-0.1.23/libcomps/src/comps_elem.c:925:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_elem.c:899:8: branch_false: following ‘false’ branch (when ‘elem’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:902:5: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:903:8: branch_true: following ‘true’ branch (when ‘type == 0’)...
libcomps-0.1.23/libcomps/src/comps_elem.c:904:50: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:904:27: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_elem.c:904:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_elem.c:908:32: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:915:8: branch_true: following ‘true’ branch (when ‘attrs’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:915:8: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:916:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_elem.c:917:27: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:918:16: branch_false: following ‘false’ branch (when ‘val’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:924:53: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:925:13: throw: if ‘comps_dict_set’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_elem.c:925:13: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
libcomps-0.1.23/libcomps/src/comps_elem.c:925:13: warning[-Wanalyzer-malloc-leak]: leak of ‘elem’
libcomps-0.1.23/libcomps/src/comps_elem.c:899:17: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_elem.c:899:8: branch_false: following ‘false’ branch (when ‘elem’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:902:5: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:903:8: branch_false: following ‘false’ branch (when ‘type != 0’)...
libcomps-0.1.23/libcomps/src/comps_elem.c:910:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:915:8: branch_true: following ‘true’ branch (when ‘attrs’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:915:8: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:916:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_elem.c:917:27: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:918:16: branch_false: following ‘false’ branch (when ‘val’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:924:53: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:925:13: throw: if ‘comps_dict_set’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_elem.c:925:13: danger: ‘elem’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
libcomps-0.1.23/libcomps/src/comps_elem.c:925:13: warning[-Wanalyzer-malloc-leak]: leak of ‘val’
libcomps-0.1.23/libcomps/src/comps_elem.c:899:8: branch_false: following ‘false’ branch (when ‘elem’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:902:5: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:903:8: branch_false: following ‘false’ branch (when ‘type != 0’)...
libcomps-0.1.23/libcomps/src/comps_elem.c:910:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:915:8: branch_true: following ‘true’ branch (when ‘attrs’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:915:8: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:916:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_elem.c:917:27: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:917:19: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_elem.c:918:16: branch_false: following ‘false’ branch (when ‘val’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_elem.c:924:53: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_elem.c:925:13: throw: if ‘comps_dict_set’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_elem.c:925:13: danger: ‘val’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libcomps-0.1.23/libcomps/src/comps_hslist.c:55:20: warning[-Wanalyzer-malloc-leak]: leak of ‘it’
libcomps-0.1.23/libcomps/src/comps_hslist.c:52:15: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_hslist.c:52:8: branch_false: following ‘false’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_hslist.c:54:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:54:8: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_hslist.c:55:20: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_hslist.c:55:20: danger: ‘it’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libcomps-0.1.23/libcomps/src/comps_hslist.c:79:17: warning[-Wanalyzer-malloc-leak]: leak of ‘it’
libcomps-0.1.23/libcomps/src/comps_hslist.c:74:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_hslist.c:76:15: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:76:15: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_hslist.c:76:8: branch_false: following ‘false’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_hslist.c:78:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:78:8: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_hslist.c:79:17: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_hslist.c:79:17: danger: ‘it’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
libcomps-0.1.23/libcomps/src/comps_hslist.c:101:23: warning[-Wanalyzer-malloc-leak]: leak of ‘newit’
libcomps-0.1.23/libcomps/src/comps_hslist.c:96:8: branch_false: following ‘false’ branch (when ‘hslist’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_hslist.c:98:18: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:98:18: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_hslist.c:98:8: branch_false: following ‘false’ branch (when ‘newit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_hslist.c:100:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:100:8: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_hslist.c:101:23: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_hslist.c:101:23: danger: ‘newit’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
libcomps-0.1.23/libcomps/src/comps_hslist.c:119:13: warning[-Wanalyzer-malloc-leak]: leak of ‘newit’
libcomps-0.1.23/libcomps/src/comps_hslist.c:96:8: branch_false: following ‘false’ branch (when ‘hslist’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_hslist.c:98:18: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:98:18: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_hslist.c:98:8: branch_false: following ‘false’ branch (when ‘newit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_hslist.c:100:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:109:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_hslist.c:114:15: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:114:15: branch_false: following ‘false’ branch (when ‘n != pos’)...
libcomps-0.1.23/libcomps/src/comps_hslist.c:118:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:118:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_hslist.c:119:13: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:119:13: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_hslist.c:119:13: danger: ‘newit’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libcomps-0.1.23/libcomps/src/comps_hslist.c:134:17: warning[-Wanalyzer-malloc-leak]: leak of ‘it’
libcomps-0.1.23/libcomps/src/comps_hslist.c:129:8: branch_false: following ‘false’ branch (when ‘hslist’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_hslist.c:131:15: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:131:15: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_hslist.c:131:8: branch_false: following ‘false’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_hslist.c:133:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:133:8: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_hslist.c:134:17: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_hslist.c:134:17: danger: ‘it’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING: [#def60]
libcomps-0.1.23/libcomps/src/comps_hslist.c: scope_hint: In function ‘comps_hslist_destroy’
libcomps-0.1.23/libcomps/src/comps_hslist.c:187:18: warning[-Wunused-but-set-variable=]: variable ‘x’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
libcomps-0.1.23/libcomps/src/comps_hslist.c:245:5: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_hslist_create()’
libcomps-0.1.23/libcomps/src/comps_hslist.c:240:15: enter_function: entry to ‘comps_hslist_clone’
libcomps-0.1.23/libcomps/src/comps_hslist.c:244:11: call_function: calling ‘comps_hslist_create’ from ‘comps_hslist_clone’
libcomps-0.1.23/libcomps/src/comps_hslist.c:244:11: return_function: returning to ‘comps_hslist_clone’ from ‘comps_hslist_create’
libcomps-0.1.23/libcomps/src/comps_hslist.c:245:5: call_function: calling ‘comps_hslist_init’ from ‘comps_hslist_clone’
libcomps-0.1.23/libcomps/src/comps_hslist.c:245:5: return_function: returning to ‘comps_hslist_clone’ from ‘comps_hslist_init’
libcomps-0.1.23/libcomps/src/comps_hslist.c:248:30: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_hslist.c:249:34: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_hslist.c:249:9: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_hslist.c:245:5: danger: ‘comps_hslist_create()’ leaks here; was allocated at [(4)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def62]
libcomps-0.1.23/libcomps/src/comps_log.c:94:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘comps_log_entry_create()’
libcomps-0.1.23/libcomps/src/comps_log.c:157:6: enter_function: entry to ‘comps_log_warning_x’
libcomps-0.1.23/libcomps/src/comps_log.c:160:5: call_function: calling ‘__comps_log_entry_x’ from ‘comps_log_warning_x’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
libcomps-0.1.23/libcomps/src/comps_log.c:94:19: warning[-Wanalyzer-malloc-leak]: leak of ‘__comps_log_entry_prep(code, type, n)’
libcomps-0.1.23/libcomps/src/comps_log.c:157:6: enter_function: entry to ‘comps_log_warning_x’
libcomps-0.1.23/libcomps/src/comps_log.c:160:5: call_function: calling ‘__comps_log_entry_x’ from ‘comps_log_warning_x’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
libcomps-0.1.23/libcomps/src/comps_log.c:110:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown>.args + (long unsigned int)i * 8’
libcomps-0.1.23/libcomps/src/comps_log.c:151:6: enter_function: entry to ‘comps_log_warning’
libcomps-0.1.23/libcomps/src/comps_log.c:154:5: call_function: calling ‘__comps_log_entry’ from ‘comps_log_warning’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
libcomps-0.1.23/libcomps/src/comps_log.c:110:26: warning[-Wanalyzer-malloc-leak]: leak of ‘*<unknown>.args + (long unsigned int)i * 8’
libcomps-0.1.23/libcomps/src/comps_log.c:151:6: enter_function: entry to ‘comps_log_warning’
libcomps-0.1.23/libcomps/src/comps_log.c:154:5: call_function: calling ‘__comps_log_entry’ from ‘comps_log_warning’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def66]
libcomps-0.1.23/libcomps/src/comps_log.c:110:26: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libcomps-0.1.23/libcomps/src/comps_log.c:151:6: enter_function: entry to ‘comps_log_warning’
libcomps-0.1.23/libcomps/src/comps_log.c:153:5: acquire_resource: ‘va_start’ called here
libcomps-0.1.23/libcomps/src/comps_log.c:154:5: call_function: calling ‘__comps_log_entry’ from ‘comps_log_warning’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
libcomps-0.1.23/libcomps/src/comps_log.c:128:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown>.args + (long unsigned int)i * 8’
libcomps-0.1.23/libcomps/src/comps_log.c:157:6: enter_function: entry to ‘comps_log_warning_x’
libcomps-0.1.23/libcomps/src/comps_log.c:160:5: call_function: calling ‘__comps_log_entry_x’ from ‘comps_log_warning_x’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
libcomps-0.1.23/libcomps/src/comps_log.c:135:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_log.c:157:6: enter_function: entry to ‘comps_log_warning_x’
libcomps-0.1.23/libcomps/src/comps_log.c:160:5: call_function: calling ‘__comps_log_entry_x’ from ‘comps_log_warning_x’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def69]
libcomps-0.1.23/libcomps/src/comps_log.c:135:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libcomps-0.1.23/libcomps/src/comps_log.c:157:6: enter_function: entry to ‘comps_log_warning_x’
libcomps-0.1.23/libcomps/src/comps_log.c:159:5: acquire_resource: ‘va_start’ called here
libcomps-0.1.23/libcomps/src/comps_log.c:160:5: call_function: calling ‘__comps_log_entry_x’ from ‘comps_log_warning_x’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
libcomps-0.1.23/libcomps/src/comps_log.c:167:35: warning[-Wanalyzer-malloc-leak]: leak of ‘__comps_log_entry_out(log_entry, & total_len)’
libcomps-0.1.23/libcomps/src/comps_log.c:195:6: enter_function: entry to ‘comps_log_entry_print’
libcomps-0.1.23/libcomps/src/comps_log.c:199:12: call_function: calling ‘__comps_log_entry_out’ from ‘comps_log_entry_print’
libcomps-0.1.23/libcomps/src/comps_log.c:199:12: return_function: returning to ‘comps_log_entry_print’ from ‘__comps_log_entry_out’
libcomps-0.1.23/libcomps/src/comps_log.c:200:5: throw: if ‘expand_out’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_log.c:167:35: danger: ‘__comps_log_entry_out(log_entry, & total_len)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def71]
libcomps-0.1.23/libcomps/src/comps_log.c:171: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: args
Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
libcomps-0.1.23/libcomps/src/comps_log.c:171:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘args’
libcomps-0.1.23/libcomps/src/comps_log.c:167:12: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_log.c:170:21: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_log.c:171:53: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_log.c:171:9: danger: ‘args + (long unsigned int)i * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libcomps-0.1.23/libcomps/src/comps_log.c:171:19: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_log.c:157:6: enter_function: entry to ‘comps_log_warning_x’
libcomps-0.1.23/libcomps/src/comps_log.c:160:5: call_function: calling ‘__comps_log_entry_x’ from ‘comps_log_warning_x’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
libcomps-0.1.23/libcomps/src/comps_log.c:171:19: warning[-Wanalyzer-malloc-leak]: leak of ‘args’
libcomps-0.1.23/libcomps/src/comps_log.c:167:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_log.c:170:21: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_log.c:171:53: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_log.c:171:19: throw: if ‘comps_object_tostr’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_log.c:171:19: danger: ‘args’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def75]
libcomps-0.1.23/libcomps/src/comps_log.c:171:19: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libcomps-0.1.23/libcomps/src/comps_log.c:157:6: enter_function: entry to ‘comps_log_warning_x’
libcomps-0.1.23/libcomps/src/comps_log.c:159:5: acquire_resource: ‘va_start’ called here
libcomps-0.1.23/libcomps/src/comps_log.c:160:5: call_function: calling ‘__comps_log_entry_x’ from ‘comps_log_warning_x’
Error: CPPCHECK_WARNING (CWE-476): [#def76]
libcomps-0.1.23/libcomps/src/comps_log.c:172: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: args
Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
libcomps-0.1.23/libcomps/src/comps_log.c:185:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_log.c:157:6: enter_function: entry to ‘comps_log_warning_x’
libcomps-0.1.23/libcomps/src/comps_log.c:160:5: call_function: calling ‘__comps_log_entry_x’ from ‘comps_log_warning_x’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
libcomps-0.1.23/libcomps/src/comps_log.c:185:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/src/comps_log.c:177:7: enter_function: entry to ‘comps_log_entry_str’
libcomps-0.1.23/libcomps/src/comps_log.c:182:12: call_function: calling ‘__comps_log_entry_out’ from ‘comps_log_entry_str’
libcomps-0.1.23/libcomps/src/comps_log.c:182:12: return_function: returning to ‘comps_log_entry_str’ from ‘__comps_log_entry_out’
libcomps-0.1.23/libcomps/src/comps_log.c:183:11: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_log.c:185:5: throw: if ‘expand_s’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_log.c:185:5: danger: ‘ret’ leaks here; was allocated at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def79]
libcomps-0.1.23/libcomps/src/comps_log.c:185:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libcomps-0.1.23/libcomps/src/comps_log.c:157:6: enter_function: entry to ‘comps_log_warning_x’
libcomps-0.1.23/libcomps/src/comps_log.c:159:5: acquire_resource: ‘va_start’ called here
libcomps-0.1.23/libcomps/src/comps_log.c:160:5: call_function: calling ‘__comps_log_entry_x’ from ‘comps_log_warning_x’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
libcomps-0.1.23/libcomps/src/comps_mradix.c:39:21: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_mrtree_data_create(rt, key + offset, ndata)’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: return_function: returning to ‘__comps_mrtree_set’ from ‘comps_mrtree_data_create’
libcomps-0.1.23/libcomps/src/comps_mradix.c:39:21: danger: ‘comps_mrtree_data_create(rt, key + offset, ndata)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
libcomps-0.1.23/libcomps/src/comps_mradix.c:46:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
libcomps-0.1.23/libcomps/src/comps_mradix.c:46:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
libcomps-0.1.23/libcomps/src/comps_mradix.c:47:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
libcomps-0.1.23/libcomps/src/comps_mradix.c:47:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
libcomps-0.1.23/libcomps/src/comps_mradix.c:50:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
libcomps-0.1.23/libcomps/src/comps_mradix.c:50:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
libcomps-0.1.23/libcomps/src/comps_mradix.c:51:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
libcomps-0.1.23/libcomps/src/comps_mradix.c:51:21: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
libcomps-0.1.23/libcomps/src/comps_mradix.c:52:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
libcomps-0.1.23/libcomps/src/comps_mradix.c:52:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
Error: CPPCHECK_WARNING (CWE-476): [#def91]
libcomps-0.1.23/libcomps/src/comps_mradix.c:183: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def92]
libcomps-0.1.23/libcomps/src/comps_mradix.c:184: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def93]
libcomps-0.1.23/libcomps/src/comps_mradix.c:199: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def94]
libcomps-0.1.23/libcomps/src/comps_mradix.c:257: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
libcomps-0.1.23/libcomps/src/comps_mradix.c:257:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_mradix.c:256:12: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_mradix.c:257:5: danger: ‘pair’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def96]
libcomps-0.1.23/libcomps/src/comps_mradix.c:258: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def97]
libcomps-0.1.23/libcomps/src/comps_mradix.c:259: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
libcomps-0.1.23/libcomps/src/comps_mradix.c:261:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_mradix.c:256:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_mradix.c:261:15: throw: if ‘comps_hslist_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_mradix.c:261:15: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
libcomps-0.1.23/libcomps/src/comps_mradix.c:262:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_mradix.c:256:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_mradix.c:262:5: throw: if ‘comps_hslist_init’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_mradix.c:262:5: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
libcomps-0.1.23/libcomps/src/comps_mradix.c:263:11: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_mradix.c:256:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_mradix.c:263:11: throw: if ‘comps_hslist_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_mradix.c:263:11: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
libcomps-0.1.23/libcomps/src/comps_mradix.c:264:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_mradix.c:256:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_mradix.c:264:5: throw: if ‘comps_hslist_init’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_mradix.c:264:5: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
libcomps-0.1.23/libcomps/src/comps_mradix.c:265:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_mradix.c:256:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_mradix.c:265:5: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_mradix.c:265:5: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def103]
libcomps-0.1.23/libcomps/src/comps_mradix.c:270:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘**tmplist.first.data’
libcomps-0.1.23/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:274:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:317:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:317:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:318:18: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:319:9: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:270:9: danger: use after ‘free’ of ‘*tmplist.29_46->first.data’; freed at [(8)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def104]
libcomps-0.1.23/libcomps/src/comps_mradix.c:276: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
libcomps-0.1.23/libcomps/src/comps_mradix.c:276:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:274:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:275:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:275:20: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_mradix.c:276:13: danger: ‘pair’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def106]
libcomps-0.1.23/libcomps/src/comps_mradix.c:277: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-688): [#def107]
libcomps-0.1.23/libcomps/src/comps_mradix.c:284:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(*(COMPS_MRTreeData *)it_48->data.key) + strlen(*(struct Pair *)_47->data.key) + 1)’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:274:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:275:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:279:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:282:58: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:281:21: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_mradix.c:284:17: danger: argument 1 (‘malloc(strlen(*(COMPS_MRTreeData *)it_48->data.key) + strlen(*(struct Pair *)_47->data.key) + 1)’) from [(7)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def108]
libcomps-0.1.23/libcomps/src/comps_mradix.c:293:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(*(COMPS_MRTreeData *)it_48->data.key) + 1)’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:274:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:275:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:279:16: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:291:61: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:290:29: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_mradix.c:293:17: danger: argument 1 (‘malloc(strlen(*(COMPS_MRTreeData *)it_48->data.key) + 1)’) from [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
libcomps-0.1.23/libcomps/src/comps_mradix.c:299:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:274:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:275:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:279:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:282:58: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:281:21: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_mradix.c:297:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:299:42: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:299:17: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_mradix.c:299:17: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
libcomps-0.1.23/libcomps/src/comps_mradix.c:299:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:274:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:275:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:275:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_mradix.c:279:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:282:58: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:297:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:299:42: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:299:17: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_mradix.c:299:17: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
libcomps-0.1.23/libcomps/src/comps_mradix.c:303:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:274:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:275:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:275:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_mradix.c:279:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:282:58: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:297:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:299:42: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:301:20: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:303:21: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:303:21: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_mradix.c:303:21: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def112]
libcomps-0.1.23/libcomps/src/comps_mradix.c:318:13: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)**tmplist.first.data).key’
libcomps-0.1.23/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:274:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:317:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:317:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:318:18: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:318:13: release_memory: first ‘free’ here
libcomps-0.1.23/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:274:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:317:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:317:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:318:18: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:318:13: danger: second ‘free’ here; first ‘free’ was at [(7)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
libcomps-0.1.23/libcomps/src/comps_mradix.c:356:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:355:19: return_function: returning to ‘__comps_mrtree_set’ from ‘comps_mrtree_data_create’
libcomps-0.1.23/libcomps/src/comps_mradix.c:356:13: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
libcomps-0.1.23/libcomps/src/comps_mradix.c:374:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_mradix.c:325:6: enter_function: entry to ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:337:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:339:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:345:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:348:36: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_mradix.c:349:37: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:354:12: branch_false: following ‘false’ branch (when ‘found != 0’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:359:41: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:367:16: branch_false: following ‘false’ branch (when ‘ended != 3’)...
libcomps-0.1.23/libcomps/src/comps_mradix.c:370:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_mradix.c:373:23: call_function: calling ‘comps_mrtree_data_create’ from ‘__comps_mrtree_set’
libcomps-0.1.23/libcomps/src/comps_mradix.c:373:23: return_function: returning to ‘__comps_mrtree_set’ from ‘comps_mrtree_data_create’
libcomps-0.1.23/libcomps/src/comps_mradix.c:374:17: danger: ‘<unknown>’ leaks here; was allocated at [(18)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/17)
Error: CPPCHECK_WARNING (CWE-476): [#def115]
libcomps-0.1.23/libcomps/src/comps_obj.c:10: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
libcomps-0.1.23/libcomps/src/comps_obj.c:10:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘obj’
libcomps-0.1.23/libcomps/src/comps_obj.c:9:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_obj.c:10:5: danger: ‘obj’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def117]
libcomps-0.1.23/libcomps/src/comps_obj.c:11: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
libcomps-0.1.23/libcomps/src/comps_obj.c:11:17: warning[-Wanalyzer-malloc-leak]: leak of ‘obj’
libcomps-0.1.23/libcomps/src/comps_obj.c:9:11: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_obj.c:11:17: throw: if ‘comps_refc_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_obj.c:11:17: danger: ‘obj’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def119]
libcomps-0.1.23/libcomps/src/comps_obj.c:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
libcomps-0.1.23/libcomps/src/comps_obj.c:36:17: warning[-Wanalyzer-malloc-leak]: leak of ‘obj’
libcomps-0.1.23/libcomps/src/comps_obj.c:33:8: branch_false: following ‘false’ branch (when ‘comps_obj’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_obj.c:35:18: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_obj.c:35:11: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_obj.c:36:17: throw: if ‘comps_refc_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_obj.c:36:17: danger: ‘obj’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def121]
libcomps-0.1.23/libcomps/src/comps_obj.c:38: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
Error: CPPCHECK_WARNING (CWE-476): [#def122]
libcomps-0.1.23/libcomps/src/comps_obj.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
libcomps-0.1.23/libcomps/src/comps_obj.c:69:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.23/libcomps/src/comps_obj.c:68:15: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_obj.c:69:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def124]
libcomps-0.1.23/libcomps/src/comps_obj.c:105:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_obj.c:104:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_obj.c:105:5: danger: argument 1 (‘ret’) from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def125]
libcomps-0.1.23/libcomps/src/comps_obj.c:117:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(*(COMPS_Str *)*args_10(D).val) + 1)’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_obj.c:114:8: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_obj.c:115:34: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_obj.c:117:9: danger: argument 1 (‘malloc(strlen(*(COMPS_Str *)*args_10(D).val) + 1)’) from [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def126]
libcomps-0.1.23/libcomps/src/comps_obj.c:126:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(*(COMPS_Str *)str_src.val) + 1)’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_obj.c:122:8: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_obj.c:125:31: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_obj.c:124:23: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_obj.c:126:9: danger: argument 1 (‘malloc(strlen(*(COMPS_Str *)str_src.val) + 1)’) from [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def127]
libcomps-0.1.23/libcomps/src/comps_obj.c:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-688): [#def128]
libcomps-0.1.23/libcomps/src/comps_obj.c:139:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_obj.c:137:8: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_obj.c:138:36: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_obj.c:138:15: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_obj.c:139:9: danger: argument 1 (‘ret’) from [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def129]
libcomps-0.1.23/libcomps/src/comps_obj.c:142: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
libcomps-0.1.23/libcomps/src/comps_obj.c:142:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.23/libcomps/src/comps_obj.c:141:15: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_obj.c:142:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def131]
libcomps-0.1.23/libcomps/src/comps_obj.c:167:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(s) + 1)’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_obj.c:165:8: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_obj.c:166:44: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_obj.c:166:20: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_obj.c:167:9: danger: argument 1 (‘malloc(strlen(s) + 1)’) from [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def132]
libcomps-0.1.23/libcomps/src/comps_obj.c:180:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*str.val’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_obj.c:179:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_obj.c:180:5: danger: argument 1 (‘malloc(strlen(s) + 1)’) from [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
libcomps-0.1.23/libcomps/src/comps_objlist.c:13:24: warning[-Wanalyzer-malloc-leak]: leak of ‘objit’
libcomps-0.1.23/libcomps/src/comps_objlist.c:160:5: enter_function: entry to ‘comps_objlist_append’
libcomps-0.1.23/libcomps/src/comps_objlist.c:161:31: call_function: calling ‘comps_objlist_it_create’ from ‘comps_objlist_append’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
libcomps-0.1.23/libcomps/src/comps_objlist.c:144:9: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_objlist_it_create(obj)’
libcomps-0.1.23/libcomps/src/comps_objlist.c:409:6: enter_function: entry to ‘comps_objlist_concat_in’
libcomps-0.1.23/libcomps/src/comps_objlist.c:411:29: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:412:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:412:9: call_function: calling ‘comps_objlist_append’ from ‘comps_objlist_concat_in’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
libcomps-0.1.23/libcomps/src/comps_objlist.c:173:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘comps_objlist_it_create(obj)’
libcomps-0.1.23/libcomps/src/comps_objlist.c:165:5: enter_function: entry to ‘comps_objlist_insert_after’
libcomps-0.1.23/libcomps/src/comps_objlist.c:168:8: branch_false: following ‘false’ branch (when ‘objlist’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:169:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:169:8: branch_false: following ‘false’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:171:31: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:171:31: call_function: calling ‘comps_objlist_it_create’ from ‘comps_objlist_insert_after’
libcomps-0.1.23/libcomps/src/comps_objlist.c:171:31: return_function: returning to ‘comps_objlist_insert_after’ from ‘comps_objlist_it_create’
libcomps-0.1.23/libcomps/src/comps_objlist.c:173:5: danger: dereference of NULL ‘comps_objlist_it_create(obj)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
libcomps-0.1.23/libcomps/src/comps_objlist.c:193:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘comps_objlist_it_create(obj)’
libcomps-0.1.23/libcomps/src/comps_objlist.c:182:5: enter_function: entry to ‘comps_objlist_insert_before’
libcomps-0.1.23/libcomps/src/comps_objlist.c:185:8: branch_false: following ‘false’ branch (when ‘objlist’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:186:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:186:8: branch_false: following ‘false’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:188:31: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:188:31: call_function: calling ‘comps_objlist_it_create’ from ‘comps_objlist_insert_before’
libcomps-0.1.23/libcomps/src/comps_objlist.c:188:31: return_function: returning to ‘comps_objlist_insert_before’ from ‘comps_objlist_it_create’
libcomps-0.1.23/libcomps/src/comps_objlist.c:192:8: branch_true: following ‘true’ branch (when ‘tmpit == tmpit’)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:193:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:193:9: danger: dereference of NULL ‘comps_objlist_it_create(obj)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
libcomps-0.1.23/libcomps/src/comps_objlist.c:198:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘comps_objlist_it_create(obj)’
libcomps-0.1.23/libcomps/src/comps_objlist.c:182:5: enter_function: entry to ‘comps_objlist_insert_before’
libcomps-0.1.23/libcomps/src/comps_objlist.c:185:8: branch_false: following ‘false’ branch (when ‘objlist’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:186:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:186:8: branch_false: following ‘false’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:188:31: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:188:31: call_function: calling ‘comps_objlist_it_create’ from ‘comps_objlist_insert_before’
libcomps-0.1.23/libcomps/src/comps_objlist.c:188:31: return_function: returning to ‘comps_objlist_insert_before’ from ‘comps_objlist_it_create’
libcomps-0.1.23/libcomps/src/comps_objlist.c:190:34: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objlist.c:190:34: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:192:8: branch_false: following ‘false’ branch (when ‘tmpit != tmpit’)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:198:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:198:9: danger: dereference of NULL ‘comps_objlist_it_create(obj)’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def138]
libcomps-0.1.23/libcomps/src/comps_objlist.c:211:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newit’
libcomps-0.1.23/libcomps/src/comps_objlist.c:241:5: enter_function: entry to ‘comps_objlist_insert_at’
libcomps-0.1.23/libcomps/src/comps_objlist.c:244:8: branch_false: following ‘false’ branch (when ‘objlist’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:245:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:245:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objlist.c:246:30: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:246:30: call_function: calling ‘comps_objlist_it_create’ from ‘comps_objlist_insert_at’
libcomps-0.1.23/libcomps/src/comps_objlist.c:246:30: return_function: returning to ‘comps_objlist_insert_at’ from ‘comps_objlist_it_create’
libcomps-0.1.23/libcomps/src/comps_objlist.c:247:12: call_function: calling ‘__comps_objlist_insert_at’ from ‘comps_objlist_insert_at’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
libcomps-0.1.23/libcomps/src/comps_objlist.c:217:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newit’
libcomps-0.1.23/libcomps/src/comps_objlist.c:241:5: enter_function: entry to ‘comps_objlist_insert_at’
libcomps-0.1.23/libcomps/src/comps_objlist.c:244:8: branch_false: following ‘false’ branch (when ‘objlist’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:245:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:245:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objlist.c:246:30: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:246:30: call_function: calling ‘comps_objlist_it_create’ from ‘comps_objlist_insert_at’
libcomps-0.1.23/libcomps/src/comps_objlist.c:246:30: return_function: returning to ‘comps_objlist_insert_at’ from ‘comps_objlist_it_create’
libcomps-0.1.23/libcomps/src/comps_objlist.c:247:12: call_function: calling ‘__comps_objlist_insert_at’ from ‘comps_objlist_insert_at’
Error: CPPCHECK_WARNING (CWE-476): [#def140]
libcomps-0.1.23/libcomps/src/comps_objlist.c:227: warning[nullPointer]: Possible null pointer dereference: oldit
Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
libcomps-0.1.23/libcomps/src/comps_objlist.c:227:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newit’
libcomps-0.1.23/libcomps/src/comps_objlist.c:241:5: enter_function: entry to ‘comps_objlist_insert_at’
libcomps-0.1.23/libcomps/src/comps_objlist.c:244:8: branch_false: following ‘false’ branch (when ‘objlist’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:245:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:245:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objlist.c:246:30: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:246:30: call_function: calling ‘comps_objlist_it_create’ from ‘comps_objlist_insert_at’
libcomps-0.1.23/libcomps/src/comps_objlist.c:246:30: return_function: returning to ‘comps_objlist_insert_at’ from ‘comps_objlist_it_create’
libcomps-0.1.23/libcomps/src/comps_objlist.c:247:12: call_function: calling ‘__comps_objlist_insert_at’ from ‘comps_objlist_insert_at’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
libcomps-0.1.23/libcomps/src/comps_objlist.c:227:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldit’
libcomps-0.1.23/libcomps/src/comps_objlist.c:210:8: branch_false: following ‘false’ branch (when ‘pos != 0’)...
libcomps-0.1.23/libcomps/src/comps_objlist.c:216:16: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:216:15: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objlist.c:223:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:223:38: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objlist.c:227:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objlist.c:227:23: danger: dereference of NULL ‘oldit’
Error: CPPCHECK_WARNING (CWE-476): [#def143]
libcomps-0.1.23/libcomps/src/comps_objlist.c:228: warning[nullPointer]: Possible null pointer dereference: oldit
Error: CPPCHECK_WARNING (CWE-476): [#def144]
libcomps-0.1.23/libcomps/src/comps_objlist.c:469: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
libcomps-0.1.23/libcomps/src/comps_objlist.c:469:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.23/libcomps/src/comps_objlist.c:468:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_objlist.c:469:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def146]
libcomps-0.1.23/libcomps/src/comps_objlist.c:470: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def147]
libcomps-0.1.23/libcomps/src/comps_objlist.c:484: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:42:21: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_objmrtree_data_create(key + offset, ndata)’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:362:6: enter_function: entry to ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:377:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:386:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: call_function: calling ‘comps_objmrtree_data_create’ from ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: return_function: returning to ‘__comps_objmrtree_set’ from ‘comps_objmrtree_data_create’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:42:21: danger: ‘comps_objmrtree_data_create(key + offset, ndata)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:49:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:362:6: enter_function: entry to ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:377:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:386:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: call_function: calling ‘comps_objmrtree_data_create’ from ‘__comps_objmrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:49:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:362:6: enter_function: entry to ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:377:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:386:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: call_function: calling ‘comps_objmrtree_data_create’ from ‘__comps_objmrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:51:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:362:6: enter_function: entry to ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:377:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:386:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: call_function: calling ‘comps_objmrtree_data_create’ from ‘__comps_objmrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:51:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:362:6: enter_function: entry to ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:377:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:386:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: call_function: calling ‘comps_objmrtree_data_create’ from ‘__comps_objmrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:52:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:362:6: enter_function: entry to ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:377:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:386:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: call_function: calling ‘comps_objmrtree_data_create’ from ‘__comps_objmrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:52:21: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:362:6: enter_function: entry to ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:377:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:386:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: call_function: calling ‘comps_objmrtree_data_create’ from ‘__comps_objmrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:53:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:362:6: enter_function: entry to ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:377:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:386:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: call_function: calling ‘comps_objmrtree_data_create’ from ‘__comps_objmrtree_set’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:53:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:362:6: enter_function: entry to ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:377:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:386:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: call_function: calling ‘comps_objmrtree_data_create’ from ‘__comps_objmrtree_set’
Error: CPPCHECK_WARNING (CWE-476): [#def157]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:291: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def158]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:292: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def159]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:307: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:388:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:362:6: enter_function: entry to ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:377:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:386:12: branch_true: following ‘true’ branch (when ‘found == 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: call_function: calling ‘comps_objmrtree_data_create’ from ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:387:19: return_function: returning to ‘__comps_objmrtree_set’ from ‘comps_objmrtree_data_create’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:388:13: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:408:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:362:6: enter_function: entry to ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:373:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:377:12: branch_true: following ‘true’ branch (when ‘offset != len’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:380:36: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:381:40: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:386:12: branch_false: following ‘false’ branch (when ‘found != 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:392:44: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:396:20: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:396:46: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:400:16: branch_false: following ‘false’ branch (when ‘ended != 3’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:404:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:407:23: call_function: calling ‘comps_objmrtree_data_create’ from ‘__comps_objmrtree_set’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:407:23: return_function: returning to ‘__comps_objmrtree_set’ from ‘comps_objmrtree_data_create’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:408:17: danger: ‘<unknown>’ leaks here; was allocated at [(20)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/19)
Error: CPPCHECK_WARNING (CWE-476): [#def162]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:632: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def163]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:632:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:630:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:631:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:631:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_objmradix.c:632:9: danger: ‘pair’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:632:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:630:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:631:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:631:16: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:632:21: throw: if ‘__comps_strcpy’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:632:21: danger: ‘pair’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def165]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:633: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def166]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:634: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:635:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:630:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:631:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:631:16: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:635:9: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:635:9: danger: ‘pair’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def168]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*to_process.first’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:642:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:654:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:655:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:663:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:665:9: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: danger: use after ‘free’ of ‘*to_process.first’; freed at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def169]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:642:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘current_pair’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:642:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:654:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:655:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:663:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:664:9: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:642:13: danger: use after ‘free’ of ‘current_pair’; freed at [(8)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def170]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:649: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:649:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rtpair’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:642:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:643:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:643:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:645:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:645:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:648:26: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:648:26: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_objmradix.c:649:17: danger: ‘rtpair’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:649:31: warning[-Wanalyzer-malloc-leak]: leak of ‘rtpair’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:642:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:643:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:643:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:645:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:645:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:648:26: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:648:26: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:649:31: throw: if ‘__comps_strcpy’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:649:31: danger: ‘rtpair’ leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def173]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:650: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:651:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rtpair’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:642:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:643:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:643:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:645:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:645:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:648:26: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:648:26: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:651:17: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:651:17: danger: ‘rtpair’ leaks here; was allocated at [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def175]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:657: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def176]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:657:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:680:15: enter_function: entry to ‘comps_objmrtree_pairs’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:681:12: call_function: calling ‘__comps_objmrtree_all’ from ‘comps_objmrtree_pairs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:657:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:642:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:654:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:655:14: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:656:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:656:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:657:25: throw: if ‘__comps_strcat’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:657:25: danger: ‘pair’ leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def178]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:659: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def179]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:660: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:661:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:680:15: enter_function: entry to ‘comps_objmrtree_pairs’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:681:12: call_function: calling ‘__comps_objmrtree_all’ from ‘comps_objmrtree_pairs’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def181]
libcomps-0.1.23/libcomps/src/comps_objmradix.c:663:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)((void *)current_pair)).key’
libcomps-0.1.23/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:642:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:654:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:655:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:663:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:663:9: release_memory: first ‘free’ here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:642:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:654:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:655:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_objmradix.c:663:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objmradix.c:663:9: danger: second ‘free’ here; first ‘free’ was at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
libcomps-0.1.23/libcomps/src/comps_objradix.c:41:21: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_objrtree_data_create(*(COMPS_ObjRTreeData *)it_24->data.key, 0)’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
libcomps-0.1.23/libcomps/src/comps_objradix.c:41:21: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_objrtree_data_create(*(COMPS_ObjRTreeData *)it_25->data.key, 0)’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
libcomps-0.1.23/libcomps/src/comps_objradix.c:41:21: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_objrtree_data_create_n(key + offset, len - offset, ndata)’
libcomps-0.1.23/libcomps/src/comps_objradix.c:457:6: enter_function: entry to ‘comps_objrtree_set_nx’
libcomps-0.1.23/libcomps/src/comps_objradix.c:459:5: call_function: calling ‘__comps_objrtree_set’ from ‘comps_objrtree_set_nx’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
libcomps-0.1.23/libcomps/src/comps_objradix.c:51:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
libcomps-0.1.23/libcomps/src/comps_objradix.c:51:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:683:6: enter_function: entry to ‘comps_objrtree_unite’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:728:21: call_function: calling ‘comps_objrtree_set’ from ‘comps_objrtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
libcomps-0.1.23/libcomps/src/comps_objradix.c:51:21: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
libcomps-0.1.23/libcomps/src/comps_objradix.c:52:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
libcomps-0.1.23/libcomps/src/comps_objradix.c:52:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:683:6: enter_function: entry to ‘comps_objrtree_unite’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:728:21: call_function: calling ‘comps_objrtree_set’ from ‘comps_objrtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
libcomps-0.1.23/libcomps/src/comps_objradix.c:52:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
libcomps-0.1.23/libcomps/src/comps_objradix.c:110:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
libcomps-0.1.23/libcomps/src/comps_objradix.c:113:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def193]
libcomps-0.1.23/libcomps/src/comps_objradix.c:114:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
libcomps-0.1.23/libcomps/src/comps_objradix.c:131:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
libcomps-0.1.23/libcomps/src/comps_objradix.c:134:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def196]
libcomps-0.1.23/libcomps/src/comps_objradix.c:135:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.23/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.23/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
libcomps-0.1.23/libcomps/src/comps_objradix.c:372:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objradix.c:683:6: enter_function: entry to ‘comps_objrtree_unite’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:712:29: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:728:21: call_function: calling ‘comps_objrtree_set’ from ‘comps_objrtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
libcomps-0.1.23/libcomps/src/comps_objradix.c:372:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:683:6: enter_function: entry to ‘comps_objrtree_unite’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:728:21: call_function: calling ‘comps_objrtree_set’ from ‘comps_objrtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
libcomps-0.1.23/libcomps/src/comps_objradix.c:374:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objradix.c:683:6: enter_function: entry to ‘comps_objrtree_unite’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:712:29: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:728:21: call_function: calling ‘comps_objrtree_set’ from ‘comps_objrtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
libcomps-0.1.23/libcomps/src/comps_objradix.c:374:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:683:6: enter_function: entry to ‘comps_objrtree_unite’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:728:21: call_function: calling ‘comps_objrtree_set’ from ‘comps_objrtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
libcomps-0.1.23/libcomps/src/comps_objradix.c:388:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objradix.c:683:6: enter_function: entry to ‘comps_objrtree_unite’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:712:29: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:728:21: call_function: calling ‘comps_objrtree_set’ from ‘comps_objrtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
libcomps-0.1.23/libcomps/src/comps_objradix.c:388:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:683:6: enter_function: entry to ‘comps_objrtree_unite’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:728:21: call_function: calling ‘comps_objrtree_set’ from ‘comps_objrtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
libcomps-0.1.23/libcomps/src/comps_objradix.c:451:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objradix.c:683:6: enter_function: entry to ‘comps_objrtree_unite’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:712:29: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:728:21: call_function: calling ‘comps_objrtree_set’ from ‘comps_objrtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
libcomps-0.1.23/libcomps/src/comps_objradix.c:451:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:683:6: enter_function: entry to ‘comps_objrtree_unite’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:728:21: call_function: calling ‘comps_objrtree_set’ from ‘comps_objrtree_unite’
Error: CPPCHECK_WARNING (CWE-476): [#def205]
libcomps-0.1.23/libcomps/src/comps_objradix.c:643: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def206]
libcomps-0.1.23/libcomps/src/comps_objradix.c:643:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:641:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:642:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:642:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_objradix.c:643:9: danger: ‘pair’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
libcomps-0.1.23/libcomps/src/comps_objradix.c:643:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:641:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:642:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:642:16: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:643:21: throw: if ‘__comps_strcpy’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objradix.c:643:21: danger: ‘pair’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def208]
libcomps-0.1.23/libcomps/src/comps_objradix.c:644: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def209]
libcomps-0.1.23/libcomps/src/comps_objradix.c:645: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
libcomps-0.1.23/libcomps/src/comps_objradix.c:646:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:641:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:642:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:642:16: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:646:9: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objradix.c:646:9: danger: ‘pair’ leaks here; was allocated at [(3)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def211]
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*to_process.first’
libcomps-0.1.23/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:653:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:665:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:666:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:674:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:676:9: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: danger: use after ‘free’ of ‘*to_process.first’; freed at [(7)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def212]
libcomps-0.1.23/libcomps/src/comps_objradix.c:653:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘current_pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:653:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:665:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:666:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:674:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:675:9: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:653:13: danger: use after ‘free’ of ‘current_pair’; freed at [(8)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def213]
libcomps-0.1.23/libcomps/src/comps_objradix.c:660: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def214]
libcomps-0.1.23/libcomps/src/comps_objradix.c:660:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rtpair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:653:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:654:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:654:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:656:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:656:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:659:26: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:659:26: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_objradix.c:660:17: danger: ‘rtpair’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
libcomps-0.1.23/libcomps/src/comps_objradix.c:660:31: warning[-Wanalyzer-malloc-leak]: leak of ‘rtpair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:653:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:654:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:654:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:656:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:656:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:659:26: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:659:26: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:660:31: throw: if ‘__comps_strcpy’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objradix.c:660:31: danger: ‘rtpair’ leaks here; was allocated at [(9)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def216]
libcomps-0.1.23/libcomps/src/comps_objradix.c:661: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
libcomps-0.1.23/libcomps/src/comps_objradix.c:662:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rtpair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:653:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:654:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:654:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:656:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:656:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:659:26: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:659:26: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:662:17: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objradix.c:662:17: danger: ‘rtpair’ leaks here; was allocated at [(9)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def218]
libcomps-0.1.23/libcomps/src/comps_objradix.c:668: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def219]
libcomps-0.1.23/libcomps/src/comps_objradix.c:668:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:760:15: enter_function: entry to ‘comps_objrtree_pairs’
libcomps-0.1.23/libcomps/src/comps_objradix.c:761:12: call_function: calling ‘__comps_objrtree_all’ from ‘comps_objrtree_pairs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
libcomps-0.1.23/libcomps/src/comps_objradix.c:668:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:653:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:665:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:666:14: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:667:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:667:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:668:25: throw: if ‘__comps_strcat’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objradix.c:668:25: danger: ‘pair’ leaks here; was allocated at [(7)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def221]
libcomps-0.1.23/libcomps/src/comps_objradix.c:670: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def222]
libcomps-0.1.23/libcomps/src/comps_objradix.c:671: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
libcomps-0.1.23/libcomps/src/comps_objradix.c:672:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:760:15: enter_function: entry to ‘comps_objrtree_pairs’
libcomps-0.1.23/libcomps/src/comps_objradix.c:761:12: call_function: calling ‘__comps_objrtree_all’ from ‘comps_objrtree_pairs’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def224]
libcomps-0.1.23/libcomps/src/comps_objradix.c:674:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)((void *)current_pair)).key’
libcomps-0.1.23/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:653:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:665:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:666:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:674:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:674:9: release_memory: first ‘free’ here
libcomps-0.1.23/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:653:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:665:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:666:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:674:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:674:9: danger: second ‘free’ here; first ‘free’ was at [(7)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def225]
libcomps-0.1.23/libcomps/src/comps_objradix.c:692: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def226]
libcomps-0.1.23/libcomps/src/comps_objradix.c:692:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:691:12: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_objradix.c:692:5: danger: ‘pair’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def227]
libcomps-0.1.23/libcomps/src/comps_objradix.c:693: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
libcomps-0.1.23/libcomps/src/comps_objradix.c:695:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:691:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:695:15: throw: if ‘comps_hslist_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objradix.c:695:15: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
libcomps-0.1.23/libcomps/src/comps_objradix.c:696:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:691:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:696:5: throw: if ‘comps_hslist_init’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objradix.c:696:5: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
libcomps-0.1.23/libcomps/src/comps_objradix.c:697:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:691:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:697:5: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objradix.c:697:5: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def231]
libcomps-0.1.23/libcomps/src/comps_objradix.c:702:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘**tmplist.first.data’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:739:9: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:702:9: danger: use after ‘free’ of ‘*tmplist.95_41->first.data’; freed at [(4)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def232]
libcomps-0.1.23/libcomps/src/comps_objradix.c:709: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def233]
libcomps-0.1.23/libcomps/src/comps_objradix.c:709:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_objradix.c:709:13: danger: ‘pair’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def234]
libcomps-0.1.23/libcomps/src/comps_objradix.c:715:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(*(COMPS_ObjRTreeData *)it_43->data.key) + strlen(*(struct Pair *)_42->data.key) + 1)’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:712:29: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_objradix.c:715:17: danger: argument 1 (‘malloc(strlen(*(COMPS_ObjRTreeData *)it_43->data.key) + strlen(*(struct Pair *)_42->data.key) + 1)’) from [(5)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def235]
libcomps-0.1.23/libcomps/src/comps_objradix.c:723:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(*(COMPS_ObjRTreeData *)it_43->data.key) + 1)’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:721:29: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_objradix.c:723:17: danger: argument 1 (‘malloc(strlen(*(COMPS_ObjRTreeData *)it_43->data.key) + 1)’) from [(5)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
libcomps-0.1.23/libcomps/src/comps_objradix.c:732:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:721:29: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:727:16: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:731:39: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:732:17: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objradix.c:732:17: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
libcomps-0.1.23/libcomps/src/comps_objradix.c:732:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:708:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_objradix.c:727:16: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:731:39: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:732:17: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_objradix.c:732:17: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def238]
libcomps-0.1.23/libcomps/src/comps_objradix.c:738:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)**tmplist.first.data).key’
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:738:9: release_memory: first ‘free’ here
libcomps-0.1.23/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_objradix.c:738:9: danger: second ‘free’ here; first ‘free’ was at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-563): [#def239]
libcomps-0.1.23/libcomps/src/comps_parse.c: scope_hint: In function ‘comps_parse_start_doctype’
libcomps-0.1.23/libcomps/src/comps_parse.c:133:36: warning[-Wunused-parameter]: unused parameter ‘standalone’
Error: COMPILER_WARNING (CWE-704): [#def240]
libcomps-0.1.23/libcomps/src/comps_parse.c: scope_hint: In function ‘comps_parse_validate_dtd’
libcomps-0.1.23/libcomps/src/comps_parse.c:168:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def241]
libcomps-0.1.23/libcomps/src/comps_parse.c:168:13: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def242]
libcomps-0.1.23/libcomps/src/comps_parse.c:293:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘alltext’
libcomps-0.1.23/libcomps/src/comps_parse.c:287:8: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_parse.c:288:39: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:288:19: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_parse.c:289:12: release_memory: assuming ‘alltext’ is NULL
libcomps-0.1.23/libcomps/src/comps_parse.c:289:12: branch_true: following ‘true’ branch (when ‘alltext’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_parse.c:290:13: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:293:9: danger: dereference of NULL ‘alltext’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
libcomps-0.1.23/libcomps/src/comps_parse.c:295:20: warning[-Wanalyzer-malloc-leak]: leak of ‘alltext’
libcomps-0.1.23/libcomps/src/comps_parse.c:287:8: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_parse.c:288:39: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:288:19: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_parse.c:289:12: branch_false: following ‘false’ branch (when ‘alltext’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_parse.c:293:9: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:295:20: throw: if ‘comps_hslist_shift’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_parse.c:295:20: danger: ‘alltext’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def244]
libcomps-0.1.23/libcomps/src/comps_parse.c:297:19: warning[-Wanalyzer-null-argument]: use of NULL ‘alltext’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_parse.c:287:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_parse.c:287:8: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:295:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_parse.c:297:19: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:297:19: danger: argument 1 (‘alltext’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
libcomps-0.1.23/libcomps/src/comps_parse.c:434:5: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
libcomps-0.1.23/libcomps/src/comps_parse.c:421:14: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_parse.c:421:8: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_parse.c:429:5: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:434:5: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_parse.c:434:5: danger: ‘c’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def246]
libcomps-0.1.23/libcomps/src/comps_parse.c:449:31: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘it’
libcomps-0.1.23/libcomps/src/comps_parse.c:447:20: branch_true: following ‘true’ branch (when ‘attr_count > x’)...
libcomps-0.1.23/libcomps/src/comps_parse.c:448:41: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:448:50: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_parse.c:449:41: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:449:16: branch_true: following ‘true’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/src/comps_parse.c:450:21: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:450:20: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_parse.c:451:27: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:459:17: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_parse.c:447:20: branch_true: following ‘true’ branch (when ‘attr_count > x’)...
libcomps-0.1.23/libcomps/src/comps_parse.c:448:41: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:448:50: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_parse.c:449:41: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:449:31: danger: use after ‘free’ of ‘it’; freed at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def247]
libcomps-0.1.23/libcomps/src/comps_parse.c:466:39: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘it’
libcomps-0.1.23/libcomps/src/comps_parse.c:447:20: branch_true: following ‘true’ branch (when ‘attr_count > x’)...
libcomps-0.1.23/libcomps/src/comps_parse.c:448:41: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:448:50: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_parse.c:449:41: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:449:16: branch_true: following ‘true’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/src/comps_parse.c:450:21: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:450:20: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_parse.c:451:27: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:459:17: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_parse.c:464:46: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_parse.c:468:39: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_parse.c:466:39: danger: use after ‘free’ of ‘it’; freed at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
libcomps-0.1.23/libcomps/src/comps_radix.c:54:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:299:6: enter_function: entry to ‘comps_rtree_set_n’
libcomps-0.1.23/libcomps/src/comps_radix.c:301:5: call_function: calling ‘__comps_rtree_set’ from ‘comps_rtree_set_n’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
libcomps-0.1.23/libcomps/src/comps_radix.c:54:21: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_radix.c:299:6: enter_function: entry to ‘comps_rtree_set_n’
libcomps-0.1.23/libcomps/src/comps_radix.c:301:5: call_function: calling ‘__comps_rtree_set’ from ‘comps_rtree_set_n’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
libcomps-0.1.23/libcomps/src/comps_radix.c:55:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:299:6: enter_function: entry to ‘comps_rtree_set_n’
libcomps-0.1.23/libcomps/src/comps_radix.c:301:5: call_function: calling ‘__comps_rtree_set’ from ‘comps_rtree_set_n’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
libcomps-0.1.23/libcomps/src/comps_radix.c:55:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rtd’
libcomps-0.1.23/libcomps/src/comps_radix.c:299:6: enter_function: entry to ‘comps_rtree_set_n’
libcomps-0.1.23/libcomps/src/comps_radix.c:301:5: call_function: calling ‘__comps_rtree_set’ from ‘comps_rtree_set_n’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
libcomps-0.1.23/libcomps/src/comps_radix.c:62:11: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_rtree_data_create(comps_rtree_create(*rt.data_constructor, *rt.data_cloner, *rt.data_destructor), *(COMPS_RTreeData *)it_28->data.key, 0)’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
libcomps-0.1.23/libcomps/src/comps_radix.c:62:11: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_rtree_data_create(comps_rtree_create(*rt.data_constructor, *rt.data_cloner, *rt.data_destructor), *(COMPS_RTreeData *)it_29->data.key, 0)’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
libcomps-0.1.23/libcomps/src/comps_radix.c:62:11: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_rtree_data_create(rt, key + offset, ndata)’
libcomps-0.1.23/libcomps/src/comps_radix.c:299:6: enter_function: entry to ‘comps_rtree_set_n’
libcomps-0.1.23/libcomps/src/comps_radix.c:301:5: call_function: calling ‘__comps_rtree_set’ from ‘comps_rtree_set_n’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
libcomps-0.1.23/libcomps/src/comps_radix.c:69:11: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_rtree_data_create_n(rt, key + offset, len - offset, ndata)’
libcomps-0.1.23/libcomps/src/comps_radix.c:299:6: enter_function: entry to ‘comps_rtree_set_n’
libcomps-0.1.23/libcomps/src/comps_radix.c:301:5: call_function: calling ‘__comps_rtree_set’ from ‘comps_rtree_set_n’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
libcomps-0.1.23/libcomps/src/comps_radix.c:79:21: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
libcomps-0.1.23/libcomps/src/comps_radix.c:80:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
libcomps-0.1.23/libcomps/src/comps_radix.c:121:15: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_rtree_create(*rt.data_constructor, *rt.data_cloner, *rt.data_destructor)’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
libcomps-0.1.23/libcomps/src/comps_radix.c:125:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
libcomps-0.1.23/libcomps/src/comps_radix.c:128:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def261]
libcomps-0.1.23/libcomps/src/comps_radix.c:129:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def262]
libcomps-0.1.23/libcomps/src/comps_radix.c:131:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def263]
libcomps-0.1.23/libcomps/src/comps_radix.c:139:38: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*to_clone.first’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
libcomps-0.1.23/libcomps/src/comps_radix.c:148:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
libcomps-0.1.23/libcomps/src/comps_radix.c:151:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def266]
libcomps-0.1.23/libcomps/src/comps_radix.c:152:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.23/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.23/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
libcomps-0.1.23/libcomps/src/comps_radix.c:204:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:526:6: enter_function: entry to ‘comps_rtree_unite’
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:553:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:555:61: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:554:29: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:569:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:572:25: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:570:21: call_function: calling ‘comps_rtree_set’ from ‘comps_rtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
libcomps-0.1.23/libcomps/src/comps_radix.c:204:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:526:6: enter_function: entry to ‘comps_rtree_unite’
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:553:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:555:61: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:569:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:572:25: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:570:21: call_function: calling ‘comps_rtree_set’ from ‘comps_rtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
libcomps-0.1.23/libcomps/src/comps_radix.c:225:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:299:6: enter_function: entry to ‘comps_rtree_set_n’
libcomps-0.1.23/libcomps/src/comps_radix.c:301:5: call_function: calling ‘__comps_rtree_set’ from ‘comps_rtree_set_n’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
libcomps-0.1.23/libcomps/src/comps_radix.c:227:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:299:6: enter_function: entry to ‘comps_rtree_set_n’
libcomps-0.1.23/libcomps/src/comps_radix.c:301:5: call_function: calling ‘__comps_rtree_set’ from ‘comps_rtree_set_n’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
libcomps-0.1.23/libcomps/src/comps_radix.c:240:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:526:6: enter_function: entry to ‘comps_rtree_unite’
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:553:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:555:61: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:554:29: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:569:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:572:25: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:570:21: call_function: calling ‘comps_rtree_set’ from ‘comps_rtree_unite’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
libcomps-0.1.23/libcomps/src/comps_radix.c:240:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:526:6: enter_function: entry to ‘comps_rtree_unite’
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:553:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:555:61: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:569:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:572:25: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:570:21: call_function: calling ‘comps_rtree_set’ from ‘comps_rtree_unite’
Error: CPPCHECK_WARNING (CWE-476): [#def273]
libcomps-0.1.23/libcomps/src/comps_radix.c:486: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def274]
libcomps-0.1.23/libcomps/src/comps_radix.c:486:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:484:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:485:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:485:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_radix.c:486:9: danger: ‘pair’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
libcomps-0.1.23/libcomps/src/comps_radix.c:486:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:484:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:485:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:485:16: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:486:21: throw: if ‘__comps_strcpy’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:486:21: danger: ‘pair’ leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def276]
libcomps-0.1.23/libcomps/src/comps_radix.c:487: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def277]
libcomps-0.1.23/libcomps/src/comps_radix.c:488: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
libcomps-0.1.23/libcomps/src/comps_radix.c:489:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:484:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:485:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:485:16: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:489:9: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:489:9: danger: ‘pair’ leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def279]
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*to_process.first’
libcomps-0.1.23/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:496:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:508:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:509:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:517:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:519:9: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: danger: use after ‘free’ of ‘*to_process.first’; freed at [(7)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def280]
libcomps-0.1.23/libcomps/src/comps_radix.c:496:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘current_pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:496:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:508:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:509:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:517:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:518:9: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:496:13: danger: use after ‘free’ of ‘current_pair’; freed at [(8)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def281]
libcomps-0.1.23/libcomps/src/comps_radix.c:503: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def282]
libcomps-0.1.23/libcomps/src/comps_radix.c:503:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rtpair’
libcomps-0.1.23/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:496:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:497:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:497:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.23/libcomps/src/comps_radix.c:499:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:499:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.23/libcomps/src/comps_radix.c:502:26: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:502:26: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_radix.c:503:17: danger: ‘rtpair’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
libcomps-0.1.23/libcomps/src/comps_radix.c:503:31: warning[-Wanalyzer-malloc-leak]: leak of ‘rtpair’
libcomps-0.1.23/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:496:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:497:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:497:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.23/libcomps/src/comps_radix.c:499:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:499:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.23/libcomps/src/comps_radix.c:502:26: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:502:26: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:503:31: throw: if ‘__comps_strcpy’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:503:31: danger: ‘rtpair’ leaks here; was allocated at [(9)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def284]
libcomps-0.1.23/libcomps/src/comps_radix.c:504: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
libcomps-0.1.23/libcomps/src/comps_radix.c:505:17: warning[-Wanalyzer-malloc-leak]: leak of ‘rtpair’
libcomps-0.1.23/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:496:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:497:16: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:497:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.23/libcomps/src/comps_radix.c:499:23: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:499:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.23/libcomps/src/comps_radix.c:502:26: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:502:26: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:505:17: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:505:17: danger: ‘rtpair’ leaks here; was allocated at [(9)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def286]
libcomps-0.1.23/libcomps/src/comps_radix.c:511: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def287]
libcomps-0.1.23/libcomps/src/comps_radix.c:511:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:603:15: enter_function: entry to ‘comps_rtree_pairs’
libcomps-0.1.23/libcomps/src/comps_radix.c:604:12: call_function: calling ‘__comps_rtree_all’ from ‘comps_rtree_pairs’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
libcomps-0.1.23/libcomps/src/comps_radix.c:511:25: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:496:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:508:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:509:14: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:510:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:510:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:511:25: throw: if ‘__comps_strcat’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:511:25: danger: ‘pair’ leaks here; was allocated at [(7)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def289]
libcomps-0.1.23/libcomps/src/comps_radix.c:513: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def290]
libcomps-0.1.23/libcomps/src/comps_radix.c:514: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
libcomps-0.1.23/libcomps/src/comps_radix.c:515:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:603:15: enter_function: entry to ‘comps_rtree_pairs’
libcomps-0.1.23/libcomps/src/comps_radix.c:604:12: call_function: calling ‘__comps_rtree_all’ from ‘comps_rtree_pairs’
Error: GCC_ANALYZER_WARNING (CWE-415): [#def292]
libcomps-0.1.23/libcomps/src/comps_radix.c:517:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)((void *)current_pair)).key’
libcomps-0.1.23/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:496:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:508:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:509:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:517:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:517:9: release_memory: first ‘free’ here
libcomps-0.1.23/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:496:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:508:21: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:509:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:517:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:517:9: danger: second ‘free’ here; first ‘free’ was at [(7)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def293]
libcomps-0.1.23/libcomps/src/comps_radix.c:535: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def294]
libcomps-0.1.23/libcomps/src/comps_radix.c:535:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:534:12: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_radix.c:535:5: danger: ‘pair’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def295]
libcomps-0.1.23/libcomps/src/comps_radix.c:536: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
libcomps-0.1.23/libcomps/src/comps_radix.c:538:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:534:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:538:15: throw: if ‘comps_hslist_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:538:15: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
libcomps-0.1.23/libcomps/src/comps_radix.c:539:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:534:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:539:5: throw: if ‘comps_hslist_init’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:539:5: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
libcomps-0.1.23/libcomps/src/comps_radix.c:540:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:534:12: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:540:5: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:540:5: danger: ‘pair’ leaks here; was allocated at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def299]
libcomps-0.1.23/libcomps/src/comps_radix.c:545:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘**tmplist.first.data’
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:581:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:582:9: release_memory: freed here
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:545:9: danger: use after ‘free’ of ‘*tmplist.73_42->first.data’; freed at [(6)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/5)
Error: CPPCHECK_WARNING (CWE-476): [#def300]
libcomps-0.1.23/libcomps/src/comps_radix.c:551: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: GCC_ANALYZER_WARNING (CWE-476): [#def301]
libcomps-0.1.23/libcomps/src/comps_radix.c:551:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_radix.c:551:13: danger: ‘pair’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def302]
libcomps-0.1.23/libcomps/src/comps_radix.c:557:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(*(COMPS_RTreeData *)it_44->data.key) + strlen(*(struct Pair *)_43->data.key) + 1)’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:553:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:555:61: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:554:29: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_radix.c:557:17: danger: argument 1 (‘malloc(strlen(*(COMPS_RTreeData *)it_44->data.key) + strlen(*(struct Pair *)_43->data.key) + 1)’) from [(7)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def303]
libcomps-0.1.23/libcomps/src/comps_radix.c:565:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(*(COMPS_RTreeData *)it_44->data.key) + 1)’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:553:16: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:564:60: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:563:29: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_radix.c:565:17: danger: argument 1 (‘malloc(strlen(*(COMPS_RTreeData *)it_44->data.key) + 1)’) from [(7)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
libcomps-0.1.23/libcomps/src/comps_radix.c:570:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:553:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:555:61: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:554:29: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:569:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:572:25: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:570:21: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:570:21: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
libcomps-0.1.23/libcomps/src/comps_radix.c:570:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:553:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:555:61: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:569:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:572:25: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:570:21: throw: if the called function throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:570:21: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
libcomps-0.1.23/libcomps/src/comps_radix.c:575:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:553:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:555:61: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:554:29: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:569:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:572:25: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:574:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:575:17: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:575:17: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:575:17: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
libcomps-0.1.23/libcomps/src/comps_radix.c:575:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pair’
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:550:20: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_radix.c:553:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:555:61: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:569:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:572:25: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:574:16: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:575:17: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:575:17: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_radix.c:575:17: danger: ‘pair’ leaks here; was allocated at [(5)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-415): [#def308]
libcomps-0.1.23/libcomps/src/comps_radix.c:581:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)**tmplist.first.data).key’
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:549:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_radix.c:581:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:581:9: release_memory: first ‘free’ here
libcomps-0.1.23/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_radix.c:581:9: danger: second ‘free’ here; first ‘free’ was at [(5)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
libcomps-0.1.23/libcomps/src/comps_set.c:41:17: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed1’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
libcomps-0.1.23/libcomps/src/comps_set.c:41:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/src/comps_set.c:38:16: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/comps_set.c:38:8: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:41:17: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:41:17: throw: if ‘comps_hslist_create’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_set.c:41:17: danger: ‘ret’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
libcomps-0.1.23/libcomps/src/comps_set.c:50:5: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed1’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:191:5: call_function: calling ‘comps_set_destroy’ from ‘comps_set_cmp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
libcomps-0.1.23/libcomps/src/comps_set.c:50:5: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed2’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:191:5: call_function: calling ‘comps_set_destroy’ from ‘comps_set_cmp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
libcomps-0.1.23/libcomps/src/comps_set.c:70:5: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed1’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
libcomps-0.1.23/libcomps/src/comps_set.c:70:5: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed2’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
libcomps-0.1.23/libcomps/src/comps_set.c:86:13: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed1’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:163:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:164:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:164:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:165:19: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:165:19: call_function: calling ‘comps_set_at’ from ‘comps_set_cmp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
libcomps-0.1.23/libcomps/src/comps_set.c:86:13: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed2’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:163:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:164:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:164:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:165:19: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:165:19: call_function: calling ‘comps_set_at’ from ‘comps_set_cmp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
libcomps-0.1.23/libcomps/src/comps_set.c:121:17: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed1’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:163:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:164:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:164:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:165:19: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:165:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_set.c:166:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:166:20: call_function: calling ‘comps_set_remove’ from ‘comps_set_cmp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
libcomps-0.1.23/libcomps/src/comps_set.c:121:17: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed2’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:163:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:164:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:164:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:165:19: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:165:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_set.c:166:20: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:166:20: call_function: calling ‘comps_set_remove’ from ‘comps_set_cmp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def319]
libcomps-0.1.23/libcomps/src/comps_set.c:132:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘not_processed1’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:153:41: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:156:10: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:156:41: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:159:10: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:163:13: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:163:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def320]
libcomps-0.1.23/libcomps/src/comps_set.c:132:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘not_processed2’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: release_memory: ‘not_processed2’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:156:41: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:159:10: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:163:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:164:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:164:13: release_memory: ‘not_processed2’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:164:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
libcomps-0.1.23/libcomps/src/comps_set.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed1’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:153:41: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:154:43: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:154:9: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_set.c:154:9: danger: ‘not_processed1’ leaks here; was allocated at [(4)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
libcomps-0.1.23/libcomps/src/comps_set.c:154:9: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed2’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:153:41: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:154:43: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:154:9: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_set.c:154:9: danger: ‘not_processed2’ leaks here; was allocated at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def323]
libcomps-0.1.23/libcomps/src/comps_set.c:154:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘not_processed1’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:153:41: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:154:43: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:154:43: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:154:9: danger: dereference of NULL ‘not_processed1’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
libcomps-0.1.23/libcomps/src/comps_set.c:157:9: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed1’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:156:41: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:157:43: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:157:9: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_set.c:157:9: danger: ‘not_processed1’ leaks here; was allocated at [(4)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
libcomps-0.1.23/libcomps/src/comps_set.c:157:9: warning[-Wanalyzer-malloc-leak]: leak of ‘not_processed2’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:146:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:153:41: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:156:10: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:156:41: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:157:43: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:157:9: throw: if ‘comps_hslist_append’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_set.c:157:9: danger: ‘not_processed2’ leaks here; was allocated at [(11)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def326]
libcomps-0.1.23/libcomps/src/comps_set.c:157:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘not_processed1’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:153:41: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:156:10: branch_false: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:156:41: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:157:43: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:157:43: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:157:9: danger: dereference of NULL ‘not_processed2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def327]
libcomps-0.1.23/libcomps/src/comps_set.c:157:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘not_processed2’
libcomps-0.1.23/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: release_memory: ‘not_processed2’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.23/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.23/libcomps/src/comps_set.c:156:41: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_set.c:157:43: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_set.c:157:43: release_memory: ‘not_processed2’ is NULL
libcomps-0.1.23/libcomps/src/comps_set.c:157:9: danger: dereference of NULL ‘not_processed2’
Error: CPPCHECK_WARNING (CWE-476): [#def328]
libcomps-0.1.23/libcomps/src/comps_utils.c:57: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def329]
libcomps-0.1.23/libcomps/src/comps_utils.c:57:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.23/libcomps/src/comps_utils.c:56:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_utils.c:57:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def330]
libcomps-0.1.23/libcomps/src/comps_utils.c:58: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
libcomps-0.1.23/libcomps/src/comps_utils.c:91:23: warning[-Wanalyzer-malloc-leak]: leak of ‘__comps_xml_arch_str(archlist)’
libcomps-0.1.23/libcomps/src/comps_utils.c:116:5: enter_function: entry to ‘__comps_xml_arch’
libcomps-0.1.23/libcomps/src/comps_utils.c:117:8: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/src/comps_utils.c:118:22: call_function: calling ‘__comps_xml_arch_str’ from ‘__comps_xml_arch’
libcomps-0.1.23/libcomps/src/comps_utils.c:118:22: return_function: returning to ‘__comps_xml_arch’ from ‘__comps_xml_arch_str’
libcomps-0.1.23/libcomps/src/comps_utils.c:119:19: throw: if ‘xmlTextWriterWriteAttribute’ throws an exception...
libcomps-0.1.23/libcomps/src/comps_utils.c:91:23: danger: ‘__comps_xml_arch_str(archlist)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def332]
libcomps-0.1.23/libcomps/src/comps_utils.c:93: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: arches_str
Error: GCC_ANALYZER_WARNING (CWE-476): [#def333]
libcomps-0.1.23/libcomps/src/comps_utils.c:93:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘arches_str’
libcomps-0.1.23/libcomps/src/comps_utils.c:92:22: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_utils.c:93:9: danger: ‘arches_str’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def334]
libcomps-0.1.23/libcomps/src/comps_utils.c:103: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: arches_str
Error: GCC_ANALYZER_WARNING (CWE-476): [#def335]
libcomps-0.1.23/libcomps/src/comps_utils.c:103:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘arches_str’
libcomps-0.1.23/libcomps/src/comps_utils.c:91:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/comps_utils.c:102:18: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_utils.c:103:5: danger: ‘arches_str’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def336]
libcomps-0.1.23/libcomps/src/comps_utils.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: arches_str
Error: CPPCHECK_WARNING (CWE-476): [#def337]
libcomps-0.1.23/libcomps/src/comps_utils.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: arches_str
Error: CPPCHECK_WARNING (CWE-476): [#def338]
libcomps-0.1.23/libcomps/src/comps_utils.c:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: arches_str
Error: CPPCHECK_WARNING (CWE-476): [#def339]
libcomps-0.1.23/libcomps/src/comps_utils.c:130: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-688): [#def340]
libcomps-0.1.23/libcomps/src/comps_utils.c:130:12: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_utils.c:129:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_utils.c:130:12: danger: argument 1 (‘ret’) from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def341]
libcomps-0.1.23/libcomps/src/comps_utils.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-688): [#def342]
libcomps-0.1.23/libcomps/src/comps_utils.c:136:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_utils.c:135:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_utils.c:136:5: danger: argument 1 (‘ret’) from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def343]
libcomps-0.1.23/libcomps/src/comps_utils.c:137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-688): [#def344]
libcomps-0.1.23/libcomps/src/comps_validate.c:59:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libcomps-0.1.23/libcomps/src/comps_validate.c:52:60: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_validate.c:54:41: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_validate.c:59:9: danger: argument 2 (‘*(COMPS_ValErr *)it_4->comps_obj.err_msg’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def345]
libcomps-0.1.23/libcomps/src/comps_validate.c:195:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘msg’ where non-null expected
libcomps-0.1.23/libcomps/src/comps_validate.c:180:10: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.23/libcomps/src/comps_validate.c:182:45: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_validate.c:185:16: branch_true: following ‘true’ branch (when ‘valres’ is NULL)...
libcomps-0.1.23/libcomps/src/comps_validate.c:186:47: branch_true: ...to here
libcomps-0.1.23/libcomps/src/comps_validate.c:193:19: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/comps_validate.c:195:13: danger: argument 1 (‘msg’) from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def346]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:60: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: *options
Error: GCC_ANALYZER_WARNING (CWE-476): [#def347]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:60:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(15)’
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:44:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:60:5: danger: ‘malloc(15)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def348]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:92: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: *options
Error: GCC_ANALYZER_WARNING (CWE-476): [#def349]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:92:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(8)’
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:87:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:92:5: danger: ‘malloc(8)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def350]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:244:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(fname, "r")’
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:223:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:230:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:231:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:235:10: branch_false: ...to here
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:235:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:236:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:244:18: branch_false: ...to here
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:244:18: danger: ‘fopen(fname, "r")’ leaks here; was opened at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:244:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(fname, "r")’
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:223:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:230:14: branch_false: ...to here
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:231:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:235:10: branch_false: ...to here
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:235:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:236:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:244:18: branch_false: ...to here
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:244:18: danger: ‘fopen(fname, "r")’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: COMPILER_WARNING (CWE-843): [#def352]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:775:22: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def353]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:777:26: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def354]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:779:28: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def355]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:781:18: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyCOMPS *)’ {aka ‘struct _object * (*)(PyCOMPS *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def356]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:783:21: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyCOMPS *)’ {aka ‘struct _object * (*)(PyCOMPS *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def357]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:785:15: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def358]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:787:17: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def359]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:789:17: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def360]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:791:19: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def361]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:793:19: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def362]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:795:21: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def363]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:797:15: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def364]
libcomps-0.1.23/libcomps/src/python/src/pycomps.c:978:33: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def365]
libcomps-0.1.23/libcomps/src/python/src/pycomps_categories.c:202:18: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyCOMPS_Category *)’ {aka ‘struct _object * (*)(PyCOMPS_Category *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def366]
libcomps-0.1.23/libcomps/src/python/src/pycomps_dict.c:394:16: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def367]
libcomps-0.1.23/libcomps/src/python/src/pycomps_dict.c:396:17: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def368]
libcomps-0.1.23/libcomps/src/python/src/pycomps_dict.c:398:15: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def369]
libcomps-0.1.23/libcomps/src/python/src/pycomps_dict.c:400:16: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def370]
libcomps-0.1.23/libcomps/src/python/src/pycomps_dict.c:402:15: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def371]
libcomps-0.1.23/libcomps/src/python/src/pycomps_envs.c:168:18: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyCOMPS_Env *)’ {aka ‘struct _object * (*)(PyCOMPS_Env *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def372]
libcomps-0.1.23/libcomps/src/python/src/pycomps_gids.c:200:18: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyCOMPS_GID *)’ {aka ‘struct _object * (*)(PyCOMPS_GID *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def373]
libcomps-0.1.23/libcomps/src/python/src/pycomps_groups.c:213:18: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyCOMPS_Group *)’ {aka ‘struct _object * (*)(PyCOMPS_Group *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def374]
libcomps-0.1.23/libcomps/src/python/src/pycomps_groups.c:215:24: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *, struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def375]
libcomps-0.1.23/libcomps/src/python/src/pycomps_groups.c:845:18: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyCOMPS_Package *)’ {aka ‘struct _object * (*)(PyCOMPS_Package *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def376]
libcomps-0.1.23/libcomps/src/python/src/pycomps_mdict.c:414:16: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def377]
libcomps-0.1.23/libcomps/src/python/src/pycomps_mdict.c:416:17: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def378]
libcomps-0.1.23/libcomps/src/python/src/pycomps_mdict.c:418:15: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def379]
libcomps-0.1.23/libcomps/src/python/src/pycomps_mdict.c:420:16: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING (CWE-843): [#def380]
libcomps-0.1.23/libcomps/src/python/src/pycomps_mdict.c:422:15: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: COMPILER_WARNING: [#def381]
libcomps-0.1.23/libcomps/src/python/src/pycomps_sequence.c:99:13: warning[warning]: ‘_Py_TYPE’ is static but used in inline function ‘list_setitem_convert’ which is not static
Error: COMPILER_WARNING (CWE-843): [#def382]
libcomps-0.1.23/libcomps/src/python/src/pycomps_sequence.c:646:16: warning[-Wcast-function-type]: cast between incompatible function types from ‘PyObject * (*)(PyObject *)’ {aka ‘struct _object * (*)(struct _object *)’} to ‘PyObject * (*)(PyObject *, PyObject *)’ {aka ‘struct _object * (*)(struct _object *, struct _object *)’}
Error: GCC_ANALYZER_WARNING (CWE-688): [#def383]
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:126:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*ret’ where non-null expected
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:112:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:116:13: branch_false: ...to here
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:117:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:121:15: branch_false: ...to here
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:122:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:125:39: branch_false: ...to here
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:125:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:126:9: danger: argument 1 (‘malloc(strlen(PyBytes_AsString(PyUnicode_AsUTF8String(val))) + 1)’) from [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def384]
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:126:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘tmp’ where non-null expected
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:30:15: enter_function: entry to ‘__pycomps_unicode_in’
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:32:5: call_function: calling ‘__pycomps_PyUnicode_AsString’ from ‘__pycomps_unicode_in’
Error: CPPCHECK_WARNING (CWE-476): [#def385]
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:171: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-688): [#def386]
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:171:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:170:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/src/python/src/pycomps_utils.c:171:5: danger: argument 1 (‘ret’) from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def387]
libcomps-0.1.23/libcomps/tests/check_brtree.c:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def388]
libcomps-0.1.23/libcomps/tests/check_brtree.c:36:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:35:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:36:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def389]
libcomps-0.1.23/libcomps/tests/check_brtree.c:37: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-688): [#def390]
libcomps-0.1.23/libcomps/tests/check_brtree.c:37:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(strlen(testdata) + 1)’ where non-null expected
libcomps-0.1.23/libcomps/tests/check_brtree.c:36:21: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:37:5: danger: argument 1 (‘malloc(strlen(testdata) + 1)’) from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def391]
libcomps-0.1.23/libcomps/tests/check_brtree.c:76: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def392]
libcomps-0.1.23/libcomps/tests/check_brtree.c:77: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def393]
libcomps-0.1.23/libcomps/tests/check_brtree.c:77:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:75:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:77:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def394]
libcomps-0.1.23/libcomps/tests/check_brtree.c:77:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)len)’ where non-null expected
libcomps-0.1.23/libcomps/tests/check_brtree.c:76:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:77:16: danger: argument 1 (‘malloc((long unsigned int)len)’) from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def395]
libcomps-0.1.23/libcomps/tests/check_brtree.c:78: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def396]
libcomps-0.1.23/libcomps/tests/check_brtree.c:89: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def397]
libcomps-0.1.23/libcomps/tests/check_brtree.c:89:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:88:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:89:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def398]
libcomps-0.1.23/libcomps/tests/check_brtree.c:91: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def399]
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(8)’
libcomps-0.1.23/libcomps/tests/check_brtree.c:89:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:90:17: branch_true: following ‘true’ branch (when ‘i != 8’)...
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:9: danger: ‘malloc(8) + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: warning[-Wanalyzer-malloc-leak]: leak of ‘make_key(&a)’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:266:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: danger: ‘make_key(&a)’ leaks here; was allocated at [(4)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: warning[-Wanalyzer-malloc-leak]: leak of ‘make_key(&b)’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:267:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:267:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:269:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: danger: ‘make_key(&b)’ leaks here; was allocated at [(17)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: warning[-Wanalyzer-malloc-leak]: leak of ‘make_key(&c)’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:267:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:267:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:270:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:270:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:272:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: danger: ‘make_key(&c)’ leaks here; was allocated at [(30)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/29)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: warning[-Wanalyzer-malloc-leak]: leak of ‘make_key(&d)’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:267:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:267:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:270:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:270:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:273:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:273:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:275:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: danger: ‘make_key(&d)’ leaks here; was allocated at [(43)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/42)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: warning[-Wanalyzer-malloc-leak]: leak of ‘make_key(&e)’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:267:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:267:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:270:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:270:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:273:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:273:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:276:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:276:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:278:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: danger: ‘make_key(&e)’ leaks here; was allocated at [(56)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/55)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: warning[-Wanalyzer-malloc-leak]: leak of ‘make_key(&test1)’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: danger: ‘make_key(&test1)’ leaks here; was allocated at [(60)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/59)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: warning[-Wanalyzer-malloc-leak]: leak of ‘make_key(&test2)’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:316:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:316:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:318:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: danger: ‘make_key(&test2)’ leaks here; was allocated at [(73)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/72)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: warning[-Wanalyzer-malloc-leak]: leak of ‘make_key(&test3)’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:316:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:316:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:319:5: call_function: calling ‘key_destroy’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:319:5: return_function: returning to ‘main’ from ‘key_destroy’
libcomps-0.1.23/libcomps/tests/check_brtree.c:320:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:320:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:321:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:91:35: danger: ‘make_key(&test3)’ leaks here; was allocated at [(86)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/85)
Error: CPPCHECK_WARNING (CWE-476): [#def408]
libcomps-0.1.23/libcomps/tests/check_brtree.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def409]
libcomps-0.1.23/libcomps/tests/check_brtree.c:135: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def410]
libcomps-0.1.23/libcomps/tests/check_brtree.c:135:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:133:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:135:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def411]
libcomps-0.1.23/libcomps/tests/check_brtree.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-688): [#def412]
libcomps-0.1.23/libcomps/tests/check_brtree.c:138:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc((long unsigned int)len)’ where non-null expected
libcomps-0.1.23/libcomps/tests/check_brtree.c:135:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:138:5: danger: argument 1 (‘malloc((long unsigned int)len)’) from [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def413]
libcomps-0.1.23/libcomps/tests/check_brtree.c:140: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def414]
libcomps-0.1.23/libcomps/tests/check_brtree.c:156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def415]
libcomps-0.1.23/libcomps/tests/check_brtree.c:156:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:155:11: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:156:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def416]
libcomps-0.1.23/libcomps/tests/check_brtree.c:163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def417]
libcomps-0.1.23/libcomps/tests/check_brtree.c:163:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc((long unsigned int)(*(struct _key *)key1.keylen + *(struct _key *)key2.keylen))’
libcomps-0.1.23/libcomps/tests/check_brtree.c:156:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:162:17: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_brtree.c:163:23: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_brtree.c:163:9: danger: ‘malloc((long unsigned int)(*(struct _key *)key1.keylen + *(struct _key *)key2.keylen)) + (sizetype)i’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def418]
libcomps-0.1.23/libcomps/tests/check_brtree.c:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def419]
libcomps-0.1.23/libcomps/tests/check_brtree.c:168: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def420]
libcomps-0.1.23/libcomps/tests/check_brtree.c:168:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc((long unsigned int)(*(struct _key *)key1.keylen + *(struct _key *)key2.keylen))’
libcomps-0.1.23/libcomps/tests/check_brtree.c:156:16: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:162:17: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_brtree.c:162:17: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_brtree.c:167:17: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_brtree.c:168:27: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_brtree.c:168:9: danger: ‘malloc((long unsigned int)(*(struct _key *)key1.keylen + *(struct _key *)key2.keylen)) + (sizetype)(i + i)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def421]
libcomps-0.1.23/libcomps/tests/check_brtree.c:170: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def422]
libcomps-0.1.23/libcomps/tests/check_brtree.c:191: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def423]
libcomps-0.1.23/libcomps/tests/check_brtree.c:191:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:190:18: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:191:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def424]
libcomps-0.1.23/libcomps/tests/check_brtree.c:197: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-688): [#def425]
libcomps-0.1.23/libcomps/tests/check_brtree.c:197:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.23/libcomps/tests/check_brtree.c:196:17: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_brtree.c:197:5: danger: argument 1 (‘ret’) from [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
libcomps-0.1.23/libcomps/tests/check_brtree.c:266:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:266:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:266:5: danger: ‘<unknown>’ leaks here; was allocated at [(4)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
libcomps-0.1.23/libcomps/tests/check_brtree.c:266:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:266:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:266:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:266:5: danger: ‘ret’ leaks here; was allocated at [(10)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
libcomps-0.1.23/libcomps/tests/check_brtree.c:269:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:269:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:269:5: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
libcomps-0.1.23/libcomps/tests/check_brtree.c:269:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:269:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:269:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:269:5: danger: ‘ret’ leaks here; was allocated at [(17)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
libcomps-0.1.23/libcomps/tests/check_brtree.c:272:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:272:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:272:5: danger: ‘<unknown>’ leaks here; was allocated at [(18)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
libcomps-0.1.23/libcomps/tests/check_brtree.c:272:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:272:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:272:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:272:5: danger: ‘ret’ leaks here; was allocated at [(24)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/23)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
libcomps-0.1.23/libcomps/tests/check_brtree.c:275:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:275:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:275:5: danger: ‘<unknown>’ leaks here; was allocated at [(25)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/24)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
libcomps-0.1.23/libcomps/tests/check_brtree.c:275:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:275:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:275:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:275:5: danger: ‘ret’ leaks here; was allocated at [(31)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
libcomps-0.1.23/libcomps/tests/check_brtree.c:278:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:278:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:278:5: danger: ‘<unknown>’ leaks here; was allocated at [(32)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/31)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
libcomps-0.1.23/libcomps/tests/check_brtree.c:278:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:278:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:278:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:278:5: danger: ‘ret’ leaks here; was allocated at [(38)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/37)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
libcomps-0.1.23/libcomps/tests/check_brtree.c:288:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:288:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:288:5: danger: ‘<unknown>’ leaks here; was allocated at [(39)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/38)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
libcomps-0.1.23/libcomps/tests/check_brtree.c:288:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:288:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:288:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:288:5: danger: ‘ret’ leaks here; was allocated at [(45)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/44)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
libcomps-0.1.23/libcomps/tests/check_brtree.c:291:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:291:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:291:5: danger: ‘<unknown>’ leaks here; was allocated at [(46)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/45)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
libcomps-0.1.23/libcomps/tests/check_brtree.c:291:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:291:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:291:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:291:5: danger: ‘ret’ leaks here; was allocated at [(52)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/51)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
libcomps-0.1.23/libcomps/tests/check_brtree.c:297:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:297:12: throw: if ‘comps_brtree_get’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:297:12: danger: ‘<unknown>’ leaks here; was allocated at [(53)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/52)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:310:13: call_function: calling ‘make_test_struct’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:310:13: return_function: returning to ‘main’ from ‘make_test_struct’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: danger: ‘<unknown>’ leaks here; was allocated at [(60)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/59)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: warning[-Wanalyzer-malloc-leak]: leak of ‘test1’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:310:13: call_function: calling ‘make_test_struct’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:310:13: return_function: returning to ‘main’ from ‘make_test_struct’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: danger: ‘test1’ leaks here; was allocated at [(60)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/59)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: warning[-Wanalyzer-malloc-leak]: leak of ‘test2’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:311:13: call_function: calling ‘make_test_struct’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:311:13: return_function: returning to ‘main’ from ‘make_test_struct’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: danger: ‘test2’ leaks here; was allocated at [(60)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/59)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: warning[-Wanalyzer-malloc-leak]: leak of ‘test3’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:312:13: call_function: calling ‘make_test_struct’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:312:13: return_function: returning to ‘main’ from ‘make_test_struct’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:315:5: danger: ‘test3’ leaks here; was allocated at [(60)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/59)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
libcomps-0.1.23/libcomps/tests/check_brtree.c:318:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:311:13: call_function: calling ‘make_test_struct’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:311:13: return_function: returning to ‘main’ from ‘make_test_struct’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:318:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:318:5: danger: ‘<unknown>’ leaks here; was allocated at [(60)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/59)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
libcomps-0.1.23/libcomps/tests/check_brtree.c:318:5: warning[-Wanalyzer-malloc-leak]: leak of ‘test2’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:311:13: call_function: calling ‘make_test_struct’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:311:13: return_function: returning to ‘main’ from ‘make_test_struct’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:318:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:318:5: danger: ‘test2’ leaks here; was allocated at [(60)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/59)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
libcomps-0.1.23/libcomps/tests/check_brtree.c:318:5: warning[-Wanalyzer-malloc-leak]: leak of ‘test3’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:312:13: call_function: calling ‘make_test_struct’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:312:13: return_function: returning to ‘main’ from ‘make_test_struct’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:318:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:318:5: danger: ‘test3’ leaks here; was allocated at [(60)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/59)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
libcomps-0.1.23/libcomps/tests/check_brtree.c:321:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:312:13: call_function: calling ‘make_test_struct’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:312:13: return_function: returning to ‘main’ from ‘make_test_struct’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:320:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:320:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:321:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:321:5: danger: ‘<unknown>’ leaks here; was allocated at [(60)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/59)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
libcomps-0.1.23/libcomps/tests/check_brtree.c:321:5: warning[-Wanalyzer-malloc-leak]: leak of ‘test3’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:312:13: call_function: calling ‘make_test_struct’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:312:13: return_function: returning to ‘main’ from ‘make_test_struct’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:320:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:320:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:321:5: throw: if ‘comps_brtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:321:5: danger: ‘test3’ leaks here; was allocated at [(60)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/59)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
libcomps-0.1.23/libcomps/tests/check_brtree.c:325:35: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:320:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:320:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:324:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:324:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:325:35: throw: if ‘comps_brtree_getp’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:325:35: danger: ‘<unknown>’ leaks here; was allocated at [(81)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/80)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
libcomps-0.1.23/libcomps/tests/check_brtree.c:330:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libcomps-0.1.23/libcomps/tests/check_brtree.c:240:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:265:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:268:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:271:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:274:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:277:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:287:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:290:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:296:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:314:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:317:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:320:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:320:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:324:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:324:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:327:5: call_function: inlined call to ‘destroy_test_struct’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:328:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_brtree.c:329:11: call_function: calling ‘make_key’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_brtree.c:329:11: return_function: returning to ‘main’ from ‘make_key’
libcomps-0.1.23/libcomps/tests/check_brtree.c:330:12: throw: if ‘comps_brtree_get’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_brtree.c:330:12: danger: ‘<unknown>’ leaks here; was allocated at [(91)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/90)
Error: COMPILER_WARNING (CWE-685): [#def452]
libcomps-0.1.23/libcomps/tests/check_comps.c:20: included_from: Included from here.
libcomps-0.1.23/libcomps/tests/check_comps.c: scope_hint: In function ‘test_comps_doc_basic_fn’
libcomps-0.1.23/libcomps/tests/check_comps.c:90:32: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING (CWE-685): [#def453]
libcomps-0.1.23/libcomps/tests/check_comps.c:95:32: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING (CWE-685): [#def454]
libcomps-0.1.23/libcomps/tests/check_comps.c:101:32: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def455]
libcomps-0.1.23/libcomps/tests/check_comps.c:101:32: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def456]
libcomps-0.1.23/libcomps/tests/check_comps.c:105:32: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def457]
libcomps-0.1.23/libcomps/tests/check_comps.c:105:32: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def458]
libcomps-0.1.23/libcomps/tests/check_comps.c:279:37: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def459]
libcomps-0.1.23/libcomps/tests/check_comps.c: scope_hint: In function ‘test_comps_doc_setfeats_fn’
libcomps-0.1.23/libcomps/tests/check_comps.c:279:37: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def460]
libcomps-0.1.23/libcomps/tests/check_comps.c:283:36: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def461]
libcomps-0.1.23/libcomps/tests/check_comps.c:283:36: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def462]
libcomps-0.1.23/libcomps/tests/check_comps.c:289:37: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def463]
libcomps-0.1.23/libcomps/tests/check_comps.c:289:37: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def464]
libcomps-0.1.23/libcomps/tests/check_comps.c:293:36: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def465]
libcomps-0.1.23/libcomps/tests/check_comps.c:293:36: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def466]
libcomps-0.1.23/libcomps/tests/check_comps.c:303:37: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def467]
libcomps-0.1.23/libcomps/tests/check_comps.c:303:37: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def468]
libcomps-0.1.23/libcomps/tests/check_comps.c:308:37: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def469]
libcomps-0.1.23/libcomps/tests/check_comps.c:308:37: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def470]
libcomps-0.1.23/libcomps/tests/check_comps.c:315:37: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def471]
libcomps-0.1.23/libcomps/tests/check_comps.c:315:37: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def472]
libcomps-0.1.23/libcomps/tests/check_comps.c:319:37: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def473]
libcomps-0.1.23/libcomps/tests/check_comps.c:319:37: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def474]
libcomps-0.1.23/libcomps/tests/check_comps.c:328:38: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def475]
libcomps-0.1.23/libcomps/tests/check_comps.c:328:38: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def476]
libcomps-0.1.23/libcomps/tests/check_comps.c:330:39: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def477]
libcomps-0.1.23/libcomps/tests/check_comps.c:330:39: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def478]
libcomps-0.1.23/libcomps/tests/check_comps.c:334:38: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def479]
libcomps-0.1.23/libcomps/tests/check_comps.c:334:38: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def480]
libcomps-0.1.23/libcomps/tests/check_comps.c:336:39: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def481]
libcomps-0.1.23/libcomps/tests/check_comps.c:336:39: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def482]
libcomps-0.1.23/libcomps/tests/check_comps.c:343:38: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def483]
libcomps-0.1.23/libcomps/tests/check_comps.c:343:38: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def484]
libcomps-0.1.23/libcomps/tests/check_comps.c:345:39: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def485]
libcomps-0.1.23/libcomps/tests/check_comps.c:345:39: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def486]
libcomps-0.1.23/libcomps/tests/check_comps.c:349:38: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def487]
libcomps-0.1.23/libcomps/tests/check_comps.c:349:38: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def488]
libcomps-0.1.23/libcomps/tests/check_comps.c:351:39: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def489]
libcomps-0.1.23/libcomps/tests/check_comps.c:351:39: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def490]
libcomps-0.1.23/libcomps/tests/check_comps.c:358:29: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def491]
libcomps-0.1.23/libcomps/tests/check_comps.c:358:29: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def492]
libcomps-0.1.23/libcomps/tests/check_comps.c:362:29: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def493]
libcomps-0.1.23/libcomps/tests/check_comps.c:362:29: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def494]
libcomps-0.1.23/libcomps/tests/check_comps.c:366:29: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def495]
libcomps-0.1.23/libcomps/tests/check_comps.c:366:29: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def496]
libcomps-0.1.23/libcomps/tests/check_comps.c:372:29: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def497]
libcomps-0.1.23/libcomps/tests/check_comps.c:372:29: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def498]
libcomps-0.1.23/libcomps/tests/check_comps.c:376:29: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def499]
libcomps-0.1.23/libcomps/tests/check_comps.c:376:29: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def500]
libcomps-0.1.23/libcomps/tests/check_comps.c:380:29: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def501]
libcomps-0.1.23/libcomps/tests/check_comps.c:380:29: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: GCC_ANALYZER_WARNING (CWE-775): [#def502]
libcomps-0.1.23/libcomps/tests/check_comps.c:528:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("sample_comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_comps.c:526:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_comps.c:526:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_comps.c:527:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_comps.c:528:5: danger: ‘fopen("sample_comps.xml", "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
libcomps-0.1.23/libcomps/tests/check_comps.c:528:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("sample_comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_comps.c:526:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_comps.c:526:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_comps.c:527:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_comps.c:528:5: danger: ‘fopen("sample_comps.xml", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def504]
libcomps-0.1.23/libcomps/tests/check_comps.c:534:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("f21-rawhide-comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_comps.c:526:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_comps.c:526:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_comps.c:533:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_comps.c:534:5: danger: ‘fopen("f21-rawhide-comps.xml", "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def505]
libcomps-0.1.23/libcomps/tests/check_comps.c:534:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("f21-rawhide-comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_comps.c:526:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_comps.c:526:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_comps.c:533:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_comps.c:534:5: danger: ‘fopen("f21-rawhide-comps.xml", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def506]
libcomps-0.1.23/libcomps/tests/check_objrtree.c:67:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
libcomps-0.1.23/libcomps/tests/check_objrtree.c:54:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_objrtree.c:56:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_objrtree.c:56:9: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_objrtree.c:57:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_objrtree.c:57:8: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_objrtree.c:61:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_objrtree.c:62:9: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_objrtree.c:63:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_objrtree.c:67:16: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_objrtree.c:71:15: throw: if ‘comps_str’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_objrtree.c:67:16: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def507]
libcomps-0.1.23/libcomps/tests/check_objrtree.c:67:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
libcomps-0.1.23/libcomps/tests/check_objrtree.c:54:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_objrtree.c:56:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_objrtree.c:56:9: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_objrtree.c:57:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_objrtree.c:57:8: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_objrtree.c:61:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_objrtree.c:62:9: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_objrtree.c:63:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_objrtree.c:67:16: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_objrtree.c:71:15: throw: if ‘comps_str’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_objrtree.c:67:16: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def508]
libcomps-0.1.23/libcomps/tests/check_parse.c:79:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("sample-comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:78:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:79:5: danger: ‘fopen("sample-comps.xml", "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
libcomps-0.1.23/libcomps/tests/check_parse.c:79:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("sample-comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:78:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:79:5: danger: ‘fopen("sample-comps.xml", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING: [#def510]
libcomps-0.1.23/libcomps/tests/check_parse.c:20: included_from: Included from here.
libcomps-0.1.23/libcomps/tests/check_parse.c: scope_hint: In function ‘test_comps_parse1_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:89:38: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING: [#def511]
libcomps-0.1.23/libcomps/tests/check_parse.c:93:38: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def512]
libcomps-0.1.23/libcomps/tests/check_parse.c:98:13: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def513]
libcomps-0.1.23/libcomps/tests/check_parse.c:98:13: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’}
libcomps-0.1.23/libcomps/tests/check_parse.c:98:54: note: format string is defined here
Error: COMPILER_WARNING (CWE-685): [#def514]
libcomps-0.1.23/libcomps/tests/check_parse.c:105:34: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING (CWE-685): [#def515]
libcomps-0.1.23/libcomps/tests/check_parse.c:109:24: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING (CWE-685): [#def516]
libcomps-0.1.23/libcomps/tests/check_parse.c:117:24: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING (CWE-685): [#def517]
libcomps-0.1.23/libcomps/tests/check_parse.c:125:24: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING (CWE-195): [#def518]
libcomps-0.1.23/libcomps/tests/check_parse.c:133:38: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def519]
libcomps-0.1.23/libcomps/tests/check_parse.c:133:55: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def520]
libcomps-0.1.23/libcomps/tests/check_parse.c:133:55: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-195): [#def521]
libcomps-0.1.23/libcomps/tests/check_parse.c:139:38: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def522]
libcomps-0.1.23/libcomps/tests/check_parse.c:139:55: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def523]
libcomps-0.1.23/libcomps/tests/check_parse.c:139:55: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘size_t’ {aka ‘long unsigned int’}
Error: COMPILER_WARNING (CWE-685): [#def524]
libcomps-0.1.23/libcomps/tests/check_parse.c:150:24: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def525]
libcomps-0.1.23/libcomps/tests/check_parse.c:150:24: warning[-Wformat=]: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘int’
libcomps-0.1.23/libcomps/tests/check_parse.c:150:26: note: format string is defined here
Error: COMPILER_WARNING (CWE-685): [#def526]
libcomps-0.1.23/libcomps/tests/check_parse.c:158:24: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def527]
libcomps-0.1.23/libcomps/tests/check_parse.c:158:24: warning[-Wformat=]: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘int’
libcomps-0.1.23/libcomps/tests/check_parse.c:158:26: note: format string is defined here
Error: COMPILER_WARNING (CWE-195): [#def528]
libcomps-0.1.23/libcomps/tests/check_parse.c:163:63: warning[-Wsign-compare]: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’
Error: COMPILER_WARNING (CWE-685): [#def529]
libcomps-0.1.23/libcomps/tests/check_parse.c:164:17: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING: [#def530]
libcomps-0.1.23/libcomps/tests/check_parse.c:164:17: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘size_t’ {aka ‘long unsigned int’}
libcomps-0.1.23/libcomps/tests/check_parse.c:164:62: note: format string is defined here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def531]
libcomps-0.1.23/libcomps/tests/check_parse.c:171:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("sample-bad-elem.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:102:19: branch_true: following ‘true’ branch (when ‘i != 3’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:103:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:144:19: branch_true: following ‘true’ branch (when ‘i != 2’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:145:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:170:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:171:5: throw: if ‘comps_parse_parsed_destroy’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_parse.c:171:5: danger: ‘fopen("sample-bad-elem.xml", "r")’ leaks here; was opened at [(49)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/48)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
libcomps-0.1.23/libcomps/tests/check_parse.c:171:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("sample-bad-elem.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:102:19: branch_true: following ‘true’ branch (when ‘i != 3’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:103:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:144:19: branch_true: following ‘true’ branch (when ‘i != 2’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:145:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:170:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:171:5: throw: if ‘comps_parse_parsed_destroy’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_parse.c:171:5: danger: ‘fopen("sample-bad-elem.xml", "r")’ leaks here; was allocated at [(49)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/48)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def533]
libcomps-0.1.23/libcomps/tests/check_parse.c:173:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("sample-bad-elem.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:102:19: branch_true: following ‘true’ branch (when ‘i != 3’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:103:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:144:19: branch_true: following ‘true’ branch (when ‘i != 2’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:145:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:170:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:173:14: throw: if ‘comps_parse_parsed_create’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_parse.c:173:14: danger: ‘fopen("sample-bad-elem.xml", "r")’ leaks here; was opened at [(49)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/48)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
libcomps-0.1.23/libcomps/tests/check_parse.c:173:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("sample-bad-elem.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:102:19: branch_true: following ‘true’ branch (when ‘i != 3’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:103:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:144:19: branch_true: following ‘true’ branch (when ‘i != 2’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:145:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:170:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:173:14: throw: if ‘comps_parse_parsed_create’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_parse.c:173:14: danger: ‘fopen("sample-bad-elem.xml", "r")’ leaks here; was allocated at [(49)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/48)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def535]
libcomps-0.1.23/libcomps/tests/check_parse.c:174:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("sample-bad-elem.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:102:19: branch_true: following ‘true’ branch (when ‘i != 3’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:103:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:144:19: branch_true: following ‘true’ branch (when ‘i != 2’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:145:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:170:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:174:5: throw: if ‘comps_parse_parsed_init’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_parse.c:174:5: danger: ‘fopen("sample-bad-elem.xml", "r")’ leaks here; was opened at [(49)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/48)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
libcomps-0.1.23/libcomps/tests/check_parse.c:174:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("sample-bad-elem.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:102:19: branch_true: following ‘true’ branch (when ‘i != 3’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:103:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:144:19: branch_true: following ‘true’ branch (when ‘i != 2’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:145:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:170:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:174:5: throw: if ‘comps_parse_parsed_init’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_parse.c:174:5: danger: ‘fopen("sample-bad-elem.xml", "r")’ leaks here; was allocated at [(49)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/48)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def537]
libcomps-0.1.23/libcomps/tests/check_parse.c:175:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("sample-bad-elem.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:102:19: branch_true: following ‘true’ branch (when ‘i != 3’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:103:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:144:19: branch_true: following ‘true’ branch (when ‘i != 2’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:145:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:170:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:174:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:174:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:175:5: danger: ‘fopen("sample-bad-elem.xml", "r")’ leaks here; was opened at [(49)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/48)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
libcomps-0.1.23/libcomps/tests/check_parse.c:175:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("sample-bad-elem.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:75:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:89:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:93:5: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:97:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:102:19: branch_true: following ‘true’ branch (when ‘i != 3’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:103:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:105:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:108:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:116:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:124:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:133:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:139:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:144:19: branch_true: following ‘true’ branch (when ‘i != 2’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:145:19: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:149:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: following ‘false’ branch (when the strings are equal)...
libcomps-0.1.23/libcomps/tests/check_parse.c:157:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:163:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:170:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:174:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:174:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:175:5: danger: ‘fopen("sample-bad-elem.xml", "r")’ leaks here; was allocated at [(49)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/48)
Error: COMPILER_WARNING (CWE-685): [#def539]
libcomps-0.1.23/libcomps/tests/check_parse.c:177:21: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING (CWE-685): [#def540]
libcomps-0.1.23/libcomps/tests/check_parse.c: scope_hint: In function ‘check_errors’
libcomps-0.1.23/libcomps/tests/check_parse.c:198:17: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING (CWE-685): [#def541]
libcomps-0.1.23/libcomps/tests/check_parse.c:202:44: warning[-Wformat-extra-args]: too many arguments for format
Error: COMPILER_WARNING (CWE-685): [#def542]
libcomps-0.1.23/libcomps/tests/check_parse.c:210:70: warning[-Wformat-extra-args]: too many arguments for format
Error: GCC_ANALYZER_WARNING (CWE-404): [#def543]
libcomps-0.1.23/libcomps/tests/check_parse.c:225:13: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libcomps-0.1.23/libcomps/tests/check_parse.c:224:5: acquire_resource: ‘va_start’ called here
libcomps-0.1.23/libcomps/tests/check_parse.c:225:13: throw: if ‘comps_log_entry_create’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_parse.c:225:13: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def544]
libcomps-0.1.23/libcomps/tests/check_parse.c:233:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown>.args + (long unsigned int)i * 8’
libcomps-0.1.23/libcomps/tests/check_parse.c:227:19: acquire_memory: this call could return NULL
libcomps-0.1.23/libcomps/tests/check_parse.c:231:19: branch_true: following ‘true’ branch (when ‘i < n’)...
libcomps-0.1.23/libcomps/tests/check_parse.c:232:9: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:233:9: danger: ‘*<unknown>.args + (long unsigned int)i * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def545]
libcomps-0.1.23/libcomps/tests/check_parse.c:285:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("sample_comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:239:1: enter_function: entry to ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:249:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:249:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:252:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:252:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:255:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:255:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:258:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:258:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:261:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:261:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:264:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:264:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:267:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:267:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:270:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:270:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:273:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:273:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:276:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:276:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:283:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:283:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:284:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:285:5: danger: ‘fopen("sample_comps.xml", "r")’ leaks here; was opened at [(94)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/93)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def546]
libcomps-0.1.23/libcomps/tests/check_parse.c:285:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("sample_comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:239:1: enter_function: entry to ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:249:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:249:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:252:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:252:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:255:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:255:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:258:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:258:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:261:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:261:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:264:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:264:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:267:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:267:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:270:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:270:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:273:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:273:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:276:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:276:23: return_function: returning to ‘test_comps_parse2_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:283:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:283:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:284:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:285:5: danger: ‘fopen("sample_comps.xml", "r")’ leaks here; was allocated at [(94)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/93)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def547]
libcomps-0.1.23/libcomps/tests/check_parse.c:325:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("sample_comps_bad1.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:299:1: enter_function: entry to ‘test_comps_parse3_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:312:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse3_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:312:23: return_function: returning to ‘test_comps_parse3_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:315:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse3_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:315:23: return_function: returning to ‘test_comps_parse3_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:318:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse3_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:318:23: return_function: returning to ‘test_comps_parse3_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:323:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:323:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:324:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:325:5: danger: ‘fopen("sample_comps_bad1.xml", "r")’ leaks here; was opened at [(31)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
libcomps-0.1.23/libcomps/tests/check_parse.c:325:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("sample_comps_bad1.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:299:1: enter_function: entry to ‘test_comps_parse3_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:312:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse3_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:312:23: return_function: returning to ‘test_comps_parse3_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:315:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse3_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:315:23: return_function: returning to ‘test_comps_parse3_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:318:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse3_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:318:23: return_function: returning to ‘test_comps_parse3_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:323:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:323:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:324:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:325:5: danger: ‘fopen("sample_comps_bad1.xml", "r")’ leaks here; was allocated at [(31)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/30)
Error: COMPILER_WARNING: [#def549]
libcomps-0.1.23/libcomps/tests/check_parse.c: scope_hint: In function ‘test_comps_parse3_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:344:21: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘void *’
libcomps-0.1.23/libcomps/tests/check_parse.c:344:23: note: format string is defined here
Error: COMPILER_WARNING: [#def550]
libcomps-0.1.23/libcomps/tests/check_parse.c:347:21: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘void *’
libcomps-0.1.23/libcomps/tests/check_parse.c:347:23: note: format string is defined here
Error: COMPILER_WARNING: [#def551]
libcomps-0.1.23/libcomps/tests/check_parse.c:350:21: warning[-Wformat=]: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘void *’
libcomps-0.1.23/libcomps/tests/check_parse.c:350:23: note: format string is defined here
Error: GCC_ANALYZER_WARNING (CWE-775): [#def552]
libcomps-0.1.23/libcomps/tests/check_parse.c:418:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("sample_comps_bad2.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:356:1: enter_function: entry to ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:368:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:368:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:370:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:370:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:372:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:372:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:375:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:375:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:378:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:378:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:382:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:382:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:385:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:385:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:388:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:388:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:391:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:391:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:394:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:394:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:397:24: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:397:24: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:400:24: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:400:24: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:405:24: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:405:24: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:408:24: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:408:24: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:411:24: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:411:24: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:416:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:416:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:417:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:418:5: danger: ‘fopen("sample_comps_bad2.xml", "r")’ leaks here; was opened at [(139)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/138)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
libcomps-0.1.23/libcomps/tests/check_parse.c:418:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("sample_comps_bad2.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:356:1: enter_function: entry to ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:368:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:368:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:370:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:370:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:372:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:372:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:375:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:375:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:378:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:378:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:382:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:382:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:385:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:385:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:388:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:388:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:391:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:391:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:394:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:394:23: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:397:24: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:397:24: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:400:24: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:400:24: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:405:24: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:405:24: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:408:24: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:408:24: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:411:24: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse4_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:411:24: return_function: returning to ‘test_comps_parse4_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:416:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:416:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:417:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:418:5: danger: ‘fopen("sample_comps_bad2.xml", "r")’ leaks here; was allocated at [(139)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/138)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def554]
libcomps-0.1.23/libcomps/tests/check_parse.c:451:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("sample_comps_bad3.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:430:1: enter_function: entry to ‘test_comps_parse5_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:441:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse5_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:441:23: return_function: returning to ‘test_comps_parse5_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:444:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse5_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:444:23: return_function: returning to ‘test_comps_parse5_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:449:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:449:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:450:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:451:5: danger: ‘fopen("sample_comps_bad3.xml", "r")’ leaks here; was opened at [(22)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def555]
libcomps-0.1.23/libcomps/tests/check_parse.c:451:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("sample_comps_bad3.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:430:1: enter_function: entry to ‘test_comps_parse5_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:441:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse5_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:441:23: return_function: returning to ‘test_comps_parse5_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:444:23: call_function: calling ‘__log_entry_x’ from ‘test_comps_parse5_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:444:23: return_function: returning to ‘test_comps_parse5_fn’ from ‘__log_entry_x’
libcomps-0.1.23/libcomps/tests/check_parse.c:449:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:449:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:450:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:451:5: danger: ‘fopen("sample_comps_bad3.xml", "r")’ leaks here; was allocated at [(22)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/21)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def556]
libcomps-0.1.23/libcomps/tests/check_parse.c:477:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("fedora_comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:475:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:475:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:476:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:477:5: danger: ‘fopen("fedora_comps.xml", "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
libcomps-0.1.23/libcomps/tests/check_parse.c:477:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("fedora_comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:475:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:475:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:476:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:477:5: danger: ‘fopen("fedora_comps.xml", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-685): [#def558]
libcomps-0.1.23/libcomps/tests/check_parse.c: scope_hint: In function ‘test_comps_fedora_parse_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:479:39: warning[-Wformat-extra-args]: too many arguments for format
Error: GCC_ANALYZER_WARNING (CWE-775): [#def559]
libcomps-0.1.23/libcomps/tests/check_parse.c:506:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("main_comps2.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:504:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:504:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:505:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:506:5: danger: ‘fopen("main_comps2.xml", "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
libcomps-0.1.23/libcomps/tests/check_parse.c:506:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("main_comps2.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:504:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:504:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:505:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:506:5: danger: ‘fopen("main_comps2.xml", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-685): [#def561]
libcomps-0.1.23/libcomps/tests/check_parse.c: scope_hint: In function ‘test_main2_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:507:39: warning[-Wformat-extra-args]: too many arguments for format
Error: GCC_ANALYZER_WARNING (CWE-775): [#def562]
libcomps-0.1.23/libcomps/tests/check_parse.c:555:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("main_arches.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:553:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:553:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:554:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_parse.c:555:5: danger: ‘fopen("main_arches.xml", "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
libcomps-0.1.23/libcomps/tests/check_parse.c:555:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("main_arches.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_parse.c:553:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_parse.c:553:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_parse.c:554:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_parse.c:555:5: danger: ‘fopen("main_arches.xml", "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-685): [#def564]
libcomps-0.1.23/libcomps/tests/check_parse.c: scope_hint: In function ‘test_arch_fn’
libcomps-0.1.23/libcomps/tests/check_parse.c:557:39: warning[-Wformat-extra-args]: too many arguments for format
Error: CPPCHECK_WARNING (CWE-476): [#def565]
libcomps-0.1.23/libcomps/tests/check_rtree.c:40: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-476): [#def566]
libcomps-0.1.23/libcomps/tests/check_rtree.c:40:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.23/libcomps/tests/check_rtree.c:127:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_rtree.c:148:5: call_function: inlined call to ‘int_cloner’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
libcomps-0.1.23/libcomps/tests/check_rtree.c:45:17: warning[-Wanalyzer-malloc-leak]: leak of ‘str_cloner(pch + 1)’
libcomps-0.1.23/libcomps/tests/check_rtree.c:87:15: enter_function: entry to ‘load_acrodict’
libcomps-0.1.23/libcomps/tests/check_rtree.c:96:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:98:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:99:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:99:8: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:103:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:104:9: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:105:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:109:16: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:113:15: call_function: calling ‘str_cloner’ from ‘load_acrodict’
libcomps-0.1.23/libcomps/tests/check_rtree.c:113:15: return_function: returning to ‘load_acrodict’ from ‘str_cloner’
libcomps-0.1.23/libcomps/tests/check_rtree.c:45:17: danger: ‘str_cloner(pch + 1)’ leaks here; was allocated at [(12)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/11)
Error: CPPCHECK_WARNING (CWE-476): [#def568]
libcomps-0.1.23/libcomps/tests/check_rtree.c:46: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: GCC_ANALYZER_WARNING (CWE-688): [#def569]
libcomps-0.1.23/libcomps/tests/check_rtree.c:46:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.23/libcomps/tests/check_rtree.c:87:15: enter_function: entry to ‘load_acrodict’
libcomps-0.1.23/libcomps/tests/check_rtree.c:96:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:98:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:99:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:99:8: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:103:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:104:9: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:105:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:109:16: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:113:15: call_function: calling ‘str_cloner’ from ‘load_acrodict’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def570]
libcomps-0.1.23/libcomps/tests/check_rtree.c:109:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "r")’
libcomps-0.1.23/libcomps/tests/check_rtree.c:96:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:98:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:98:9: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_rtree.c:99:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:99:8: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:103:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:104:9: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:105:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:109:16: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:115:9: throw: if ‘comps_rtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_rtree.c:109:16: danger: ‘fopen(filename, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
libcomps-0.1.23/libcomps/tests/check_rtree.c:109:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "r")’
libcomps-0.1.23/libcomps/tests/check_rtree.c:96:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:98:9: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:98:9: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_rtree.c:99:8: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:99:8: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:103:12: branch_true: following ‘true’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:104:9: branch_true: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:105:12: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_rtree.c:109:16: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_rtree.c:115:9: throw: if ‘comps_rtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_rtree.c:109:16: danger: ‘fopen(filename, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
libcomps-0.1.23/libcomps/tests/check_rtree.c:148:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_rtree.c:127:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_rtree.c:148:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_rtree.c:148:5: throw: if ‘comps_rtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_rtree.c:148:5: danger: ‘ret’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
libcomps-0.1.23/libcomps/tests/check_rtree.c:152:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_rtree.c:127:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_rtree.c:152:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_rtree.c:152:5: throw: if ‘comps_rtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_rtree.c:152:5: danger: ‘ret’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def574]
libcomps-0.1.23/libcomps/tests/check_rtree.c:157:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_rtree.c:127:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_rtree.c:157:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_rtree.c:157:5: throw: if ‘comps_rtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_rtree.c:157:5: danger: ‘ret’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
libcomps-0.1.23/libcomps/tests/check_rtree.c:164:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_rtree.c:127:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_rtree.c:164:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_rtree.c:164:5: throw: if ‘comps_rtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_rtree.c:164:5: danger: ‘ret’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
libcomps-0.1.23/libcomps/tests/check_rtree.c:212:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
libcomps-0.1.23/libcomps/tests/check_rtree.c:127:5: enter_function: entry to ‘main’
libcomps-0.1.23/libcomps/tests/check_rtree.c:212:5: call_function: inlined call to ‘int_cloner’ from ‘main’
libcomps-0.1.23/libcomps/tests/check_rtree.c:212:5: throw: if ‘comps_rtree_set’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_rtree.c:212:5: danger: ‘ret’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def577]
libcomps-0.1.23/libcomps/tests/check_utils.c:51:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libcomps-0.1.23/libcomps/tests/check_utils.c:51:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_utils.c:51:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_utils.c:51:5: danger: argument 1 (‘<unknown>’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def578]
libcomps-0.1.23/libcomps/tests/check_validate.c:134:14: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("f21-rawhide-comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_validate.c:133:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_validate.c:134:14: throw: if ‘comps_parse_parsed_create’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_validate.c:134:14: danger: ‘fopen("f21-rawhide-comps.xml", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
libcomps-0.1.23/libcomps/tests/check_validate.c:134:14: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("f21-rawhide-comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_validate.c:133:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_validate.c:134:14: throw: if ‘comps_parse_parsed_create’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_validate.c:134:14: danger: ‘fopen("f21-rawhide-comps.xml", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def580]
libcomps-0.1.23/libcomps/tests/check_validate.c:135:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("f21-rawhide-comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_validate.c:133:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_validate.c:135:5: throw: if ‘comps_parse_parsed_init’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_validate.c:135:5: danger: ‘fopen("f21-rawhide-comps.xml", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
libcomps-0.1.23/libcomps/tests/check_validate.c:135:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("f21-rawhide-comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_validate.c:133:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_validate.c:135:5: throw: if ‘comps_parse_parsed_init’ throws an exception...
libcomps-0.1.23/libcomps/tests/check_validate.c:135:5: danger: ‘fopen("f21-rawhide-comps.xml", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def582]
libcomps-0.1.23/libcomps/tests/check_validate.c:136:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("f21-rawhide-comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_validate.c:133:10: acquire_resource: opened here
libcomps-0.1.23/libcomps/tests/check_validate.c:135:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_validate.c:135:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_validate.c:136:5: danger: ‘fopen("f21-rawhide-comps.xml", "r")’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
libcomps-0.1.23/libcomps/tests/check_validate.c:136:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("f21-rawhide-comps.xml", "r")’
libcomps-0.1.23/libcomps/tests/check_validate.c:133:10: acquire_memory: allocated here
libcomps-0.1.23/libcomps/tests/check_validate.c:135:5: branch_false: following ‘false’ branch...
libcomps-0.1.23/libcomps/tests/check_validate.c:135:5: branch_false: ...to here
libcomps-0.1.23/libcomps/tests/check_validate.c:136:5: danger: ‘fopen("f21-rawhide-comps.xml", "r")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
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-223.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 | libcomps-0.1.23-2.fc44 |
| store-results-to | /tmp/tmp19psdk70/libcomps-0.1.23-2.fc44.tar.xz |
| time-created | 2026-01-08 18:35:12 |
| time-finished | 2026-01-08 18:37:01 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp19psdk70/libcomps-0.1.23-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp19psdk70/libcomps-0.1.23-2.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |