libcomps-0.1.24-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
libcomps-0.1.24/libcomps/src/comps_bradix.c:173:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.24/libcomps/src/comps_bradix.c:152:8: branch_false: following ‘false’ branch (when ‘brt’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:154:16: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:167:37: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:169:59: branch_true: ...to here
libcomps-0.1.24/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): [#def2]
libcomps-0.1.24/libcomps/src/comps_bradix.c:175:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.24/libcomps/src/comps_bradix.c:144:16: enter_function: entry to ‘comps_brtree_clone’
libcomps-0.1.24/libcomps/src/comps_bradix.c:152:8: branch_false: following ‘false’ branch (when ‘brt’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:154:16: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:167:37: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:169:59: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:168:19: call_function: calling ‘comps_brtree_data_create’ from ‘comps_brtree_clone’
libcomps-0.1.24/libcomps/src/comps_bradix.c:168:19: return_function: returning to ‘comps_brtree_clone’ from ‘comps_brtree_data_create’
libcomps-0.1.24/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): [#def3]
libcomps-0.1.24/libcomps/src/comps_bradix.c:182:39: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*to_clone.first’
libcomps-0.1.24/libcomps/src/comps_bradix.c:152:8: branch_false: following ‘false’ branch (when ‘brt’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:154:16: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:167:37: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:167:37: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:180:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_bradix.c:182:39: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:187:35: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:201:29: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:202:9: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_bradix.c:180:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_bradix.c:182:39: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:182:39: danger: use after ‘free’ of ‘*to_clone.first’; freed at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
libcomps-0.1.24/libcomps/src/comps_bradix.c:195:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.24/libcomps/src/comps_bradix.c:152:8: branch_false: following ‘false’ branch (when ‘brt’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:154:16: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:167:37: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:167:37: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:180:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_bradix.c:182:39: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:190:16: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_bradix.c:194:13: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:195:13: danger: dereference of NULL ‘comps_brtree_data_create(brt, *(COMPS_BRTreeData *)it_35->data.key, 0)’
Error: CPPCHECK_WARNING (CWE-476): [#def5]
libcomps-0.1.24/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): [#def6]
libcomps-0.1.24/libcomps/src/comps_bradix.c:517:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_bradix.c:516:12: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_bradix.c:517:5: danger: ‘pair’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def7]
libcomps-0.1.24/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): [#def8]
libcomps-0.1.24/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-416): [#def9]
libcomps-0.1.24/libcomps/src/comps_bradix.c:534:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘**tmplist.first.data’
libcomps-0.1.24/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:538:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:577:13: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:581:9: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:534:9: danger: use after ‘free’ of ‘*tmplist.73_35->first.data’; freed at [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5)
Error: CPPCHECK_WARNING (CWE-476): [#def10]
libcomps-0.1.24/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): [#def11]
libcomps-0.1.24/libcomps/src/comps_bradix.c:540:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:539:20: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_bradix.c:540:13: danger: ‘pair’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def12]
libcomps-0.1.24/libcomps/src/comps_bradix.c:541: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def13]
libcomps-0.1.24/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): [#def14]
libcomps-0.1.24/libcomps/src/comps_bradix.c:556:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rtpair’
libcomps-0.1.24/libcomps/src/comps_bradix.c:531:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_bradix.c:533:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:538:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:539:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:543:16: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_bradix.c:544:29: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:551:16: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_bradix.c:552:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:552:20: branch_false: following ‘false’ branch (when ‘pairorkey != 1’)...
libcomps-0.1.24/libcomps/src/comps_bradix.c:555:30: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_bradix.c:555:30: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_bradix.c:556:21: danger: ‘rtpair’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def15]
libcomps-0.1.24/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): [#def16]
libcomps-0.1.24/libcomps/src/comps_bradix.c:558: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: COMPILER_WARNING (CWE-477): [#def17]
libcomps-0.1.24/libcomps/src/comps_doc.c: scope_hint: In function ‘comps2xml_f’
libcomps-0.1.24/libcomps/src/comps_doc.c:215:5: warning[-Wdeprecated-declarations]: ‘xmlMemoryDump’ is deprecated
/usr/include/libxml2/libxml/tree.h:28: included_from: Included from here.
/usr/include/libxml2/libxml/xmlIO.h:18: included_from: Included from here.
/usr/include/libxml2/libxml/xmlwriter.h:18: included_from: Included from here.
libcomps-0.1.24/libcomps/src/comps_utils.h:32: included_from: Included from here.
libcomps-0.1.24/libcomps/src/comps_objradix.h:28: included_from: Included from here.
libcomps-0.1.24/libcomps/src/comps_objdict.h:32: included_from: Included from here.
libcomps-0.1.24/libcomps/src/comps_doc.h:24: included_from: Included from here.
libcomps-0.1.24/libcomps/src/comps_doc.c:20: included_from: Included from here.
/usr/include/libxml2/libxml/xmlmemory.h:161:9: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def18]
libcomps-0.1.24/libcomps/src/comps_doc.c:215:5: warning[-Wdeprecated-declarations]: ‘xmlMemoryDump’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def19]
libcomps-0.1.24/libcomps/src/comps_doc.c: scope_hint: In function ‘comps2xml_str’
libcomps-0.1.24/libcomps/src/comps_doc.c:261:9: warning[-Wdeprecated-declarations]: ‘xmlMemoryDump’ is deprecated
/usr/include/libxml2/libxml/xmlmemory.h:161:9: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def20]
libcomps-0.1.24/libcomps/src/comps_doc.c:261:9: warning[-Wdeprecated-declarations]: ‘xmlMemoryDump’ is deprecated
Error: COMPILER_WARNING (CWE-477): [#def21]
libcomps-0.1.24/libcomps/src/comps_doc.c:269:5: warning[-Wdeprecated-declarations]: ‘xmlMemoryDump’ is deprecated
/usr/include/libxml2/libxml/xmlmemory.h:161:9: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def22]
libcomps-0.1.24/libcomps/src/comps_doc.c:269:5: warning[-Wdeprecated-declarations]: ‘xmlMemoryDump’ is deprecated
Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
libcomps-0.1.24/libcomps/src/comps_doc.c:903:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘str’ where non-null expected
libcomps-0.1.24/libcomps/src/comps_doc.c:894:10: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_doc.c:896:18: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_doc.c:897:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_doc.c:898:17: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_doc.c:898:16: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_doc.c:900:26: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_doc.c:902:19: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_doc.c:903:13: danger: argument 1 (‘str’) from [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def24]
libcomps-0.1.24/libcomps/src/comps_docgroupid.c:97:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.24/libcomps/src/comps_docgroupid.c:96:17: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def25]
libcomps-0.1.24/libcomps/src/comps_docpackage.c:220: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: COMPILER_WARNING: [#def26]
libcomps-0.1.24/libcomps/src/comps_hslist.c: scope_hint: In function ‘comps_hslist_destroy’
libcomps-0.1.24/libcomps/src/comps_hslist.c:187:18: warning[-Wunused-but-set-variable=]: variable ‘x’ set but not used
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
libcomps-0.1.24/libcomps/src/comps_log.c:94:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘comps_log_entry_create()’
libcomps-0.1.24/libcomps/src/comps_log.c:157:6: enter_function: entry to ‘comps_log_warning_x’
libcomps-0.1.24/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): [#def28]
libcomps-0.1.24/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.24/libcomps/src/comps_log.c:157:6: enter_function: entry to ‘comps_log_warning_x’
libcomps-0.1.24/libcomps/src/comps_log.c:160:5: call_function: calling ‘__comps_log_entry_x’ from ‘comps_log_warning_x’
Error: CPPCHECK_WARNING (CWE-476): [#def29]
libcomps-0.1.24/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): [#def30]
libcomps-0.1.24/libcomps/src/comps_log.c:171:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘args’
libcomps-0.1.24/libcomps/src/comps_log.c:167:12: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_log.c:170:21: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_log.c:171:53: branch_true: ...to here
libcomps-0.1.24/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/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def31]
libcomps-0.1.24/libcomps/src/comps_log.c:172: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: args
Error: CPPCHECK_WARNING (CWE-476): [#def32]
libcomps-0.1.24/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): [#def33]
libcomps-0.1.24/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): [#def34]
libcomps-0.1.24/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): [#def35]
libcomps-0.1.24/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): [#def36]
libcomps-0.1.24/libcomps/src/comps_mradix.c:257:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_mradix.c:256:12: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_mradix.c:257:5: danger: ‘pair’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def37]
libcomps-0.1.24/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): [#def38]
libcomps-0.1.24/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-416): [#def39]
libcomps-0.1.24/libcomps/src/comps_mradix.c:270:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘**tmplist.first.data’
libcomps-0.1.24/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_mradix.c:274:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_mradix.c:317:13: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_mradix.c:317:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_mradix.c:318:18: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_mradix.c:319:9: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_mradix.c:270:9: danger: use after ‘free’ of ‘*tmplist.29_46->first.data’; freed at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def40]
libcomps-0.1.24/libcomps/src/comps_mradix.c:276: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def41]
libcomps-0.1.24/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-415): [#def42]
libcomps-0.1.24/libcomps/src/comps_mradix.c:318:13: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)**tmplist.first.data).key’
libcomps-0.1.24/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_mradix.c:274:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_mradix.c:317:13: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_mradix.c:317:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_mradix.c:318:18: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_mradix.c:318:13: release_memory: first ‘free’ here
libcomps-0.1.24/libcomps/src/comps_mradix.c:267:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_mradix.c:269:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_mradix.c:274:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_mradix.c:317:13: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_mradix.c:317:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_mradix.c:318:18: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_mradix.c:318:13: danger: second ‘free’ here; first ‘free’ was at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def43]
libcomps-0.1.24/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): [#def44]
libcomps-0.1.24/libcomps/src/comps_obj.c:10:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘obj’
libcomps-0.1.24/libcomps/src/comps_obj.c:9:11: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def45]
libcomps-0.1.24/libcomps/src/comps_obj.c:11: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
Error: CPPCHECK_WARNING (CWE-476): [#def46]
libcomps-0.1.24/libcomps/src/comps_obj.c:36: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
Error: CPPCHECK_WARNING (CWE-476): [#def47]
libcomps-0.1.24/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): [#def48]
libcomps-0.1.24/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): [#def49]
libcomps-0.1.24/libcomps/src/comps_obj.c:69:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.24/libcomps/src/comps_obj.c:68:15: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_obj.c:69:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def50]
libcomps-0.1.24/libcomps/src/comps_obj.c:105:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.24/libcomps/src/comps_obj.c:104:11: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_obj.c:105:5: danger: argument 1 (‘ret’) from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def51]
libcomps-0.1.24/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.24/libcomps/src/comps_obj.c:114:8: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_obj.c:115:34: acquire_memory: this call could return NULL
libcomps-0.1.24/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/3/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def52]
libcomps-0.1.24/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.24/libcomps/src/comps_obj.c:122:8: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_obj.c:125:31: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_obj.c:124:23: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_obj.c:126:9: danger: argument 1 (‘malloc(strlen(*(COMPS_Str *)str_src.val) + 1)’) from [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def53]
libcomps-0.1.24/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): [#def54]
libcomps-0.1.24/libcomps/src/comps_obj.c:139:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.24/libcomps/src/comps_obj.c:137:8: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_obj.c:138:36: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_obj.c:138:15: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_obj.c:139:9: danger: argument 1 (‘ret’) from [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def55]
libcomps-0.1.24/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): [#def56]
libcomps-0.1.24/libcomps/src/comps_obj.c:142:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.24/libcomps/src/comps_obj.c:141:15: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_obj.c:142:9: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def57]
libcomps-0.1.24/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.24/libcomps/src/comps_obj.c:165:8: branch_true: following ‘true’ branch (when ‘s’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_obj.c:166:44: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_obj.c:166:20: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_obj.c:167:9: danger: argument 1 (‘malloc(strlen(s) + 1)’) from [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def58]
libcomps-0.1.24/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.24/libcomps/src/comps_obj.c:179:16: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_obj.c:180:5: danger: argument 1 (‘malloc(strlen(s) + 1)’) from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libcomps-0.1.24/libcomps/src/comps_objlist.c:144:9: warning[-Wanalyzer-malloc-leak]: leak of ‘comps_objlist_it_create(obj)’
libcomps-0.1.24/libcomps/src/comps_objlist.c:409:6: enter_function: entry to ‘comps_objlist_concat_in’
libcomps-0.1.24/libcomps/src/comps_objlist.c:411:29: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objlist.c:412:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objlist.c:412:9: call_function: calling ‘comps_objlist_append’ from ‘comps_objlist_concat_in’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
libcomps-0.1.24/libcomps/src/comps_objlist.c:211:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newit’
libcomps-0.1.24/libcomps/src/comps_objlist.c:241:5: enter_function: entry to ‘comps_objlist_insert_at’
libcomps-0.1.24/libcomps/src/comps_objlist.c:244:8: branch_false: following ‘false’ branch (when ‘objlist’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objlist.c:245:9: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objlist.c:245:8: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: call_function: calling ‘comps_objlist_it_create’ from ‘comps_objlist_insert_at’
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: return_function: returning to ‘comps_objlist_insert_at’ from ‘comps_objlist_it_create’
libcomps-0.1.24/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): [#def61]
libcomps-0.1.24/libcomps/src/comps_objlist.c:217:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newit’
libcomps-0.1.24/libcomps/src/comps_objlist.c:241:5: enter_function: entry to ‘comps_objlist_insert_at’
libcomps-0.1.24/libcomps/src/comps_objlist.c:244:8: branch_false: following ‘false’ branch (when ‘objlist’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objlist.c:245:9: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objlist.c:245:8: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: call_function: calling ‘comps_objlist_it_create’ from ‘comps_objlist_insert_at’
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: return_function: returning to ‘comps_objlist_insert_at’ from ‘comps_objlist_it_create’
libcomps-0.1.24/libcomps/src/comps_objlist.c:247:12: call_function: calling ‘__comps_objlist_insert_at’ from ‘comps_objlist_insert_at’
Error: CPPCHECK_WARNING (CWE-476): [#def62]
libcomps-0.1.24/libcomps/src/comps_objlist.c:227: warning[nullPointer]: Possible null pointer dereference: oldit
Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
libcomps-0.1.24/libcomps/src/comps_objlist.c:227:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘newit’
libcomps-0.1.24/libcomps/src/comps_objlist.c:241:5: enter_function: entry to ‘comps_objlist_insert_at’
libcomps-0.1.24/libcomps/src/comps_objlist.c:244:8: branch_false: following ‘false’ branch (when ‘objlist’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objlist.c:245:9: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objlist.c:245:8: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: call_function: calling ‘comps_objlist_it_create’ from ‘comps_objlist_insert_at’
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: return_function: returning to ‘comps_objlist_insert_at’ from ‘comps_objlist_it_create’
libcomps-0.1.24/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): [#def64]
libcomps-0.1.24/libcomps/src/comps_objlist.c:227:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘oldit’
libcomps-0.1.24/libcomps/src/comps_objlist.c:241:5: enter_function: entry to ‘comps_objlist_insert_at’
libcomps-0.1.24/libcomps/src/comps_objlist.c:244:8: branch_false: following ‘false’ branch (when ‘objlist’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objlist.c:245:9: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objlist.c:245:8: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: call_function: calling ‘comps_objlist_it_create’ from ‘comps_objlist_insert_at’
libcomps-0.1.24/libcomps/src/comps_objlist.c:246:30: return_function: returning to ‘comps_objlist_insert_at’ from ‘comps_objlist_it_create’
libcomps-0.1.24/libcomps/src/comps_objlist.c:247:12: call_function: calling ‘__comps_objlist_insert_at’ from ‘comps_objlist_insert_at’
Error: CPPCHECK_WARNING (CWE-476): [#def65]
libcomps-0.1.24/libcomps/src/comps_objlist.c:228: warning[nullPointer]: Possible null pointer dereference: oldit
Error: CPPCHECK_WARNING (CWE-476): [#def66]
libcomps-0.1.24/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): [#def67]
libcomps-0.1.24/libcomps/src/comps_objlist.c:469:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.24/libcomps/src/comps_objlist.c:468:11: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_objlist.c:469:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def68]
libcomps-0.1.24/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): [#def69]
libcomps-0.1.24/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): [#def70]
libcomps-0.1.24/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): [#def71]
libcomps-0.1.24/libcomps/src/comps_objmradix.c:307: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pair
Error: CPPCHECK_WARNING (CWE-476): [#def72]
libcomps-0.1.24/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): [#def73]
libcomps-0.1.24/libcomps/src/comps_objmradix.c:632:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_objmradix.c:630:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:631:16: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:631:16: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_objmradix.c:632:9: danger: ‘pair’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def74]
libcomps-0.1.24/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): [#def75]
libcomps-0.1.24/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-416): [#def76]
libcomps-0.1.24/libcomps/src/comps_objmradix.c:639:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*to_process.first’
libcomps-0.1.24/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:642:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:654:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:655:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:663:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:665:9: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:639:9: danger: use after ‘free’ of ‘*to_process.first’; freed at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def77]
libcomps-0.1.24/libcomps/src/comps_objmradix.c:642:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘current_pair’
libcomps-0.1.24/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:642:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:654:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:655:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:663:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:664:9: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:642:13: danger: use after ‘free’ of ‘current_pair’; freed at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def78]
libcomps-0.1.24/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): [#def79]
libcomps-0.1.24/libcomps/src/comps_objmradix.c:649:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rtpair’
libcomps-0.1.24/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:642:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:643:16: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:643:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:645:23: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:645:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:648:26: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:648:26: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_objmradix.c:649:17: danger: ‘rtpair’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def80]
libcomps-0.1.24/libcomps/src/comps_objmradix.c:650: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: CPPCHECK_WARNING (CWE-476): [#def81]
libcomps-0.1.24/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): [#def82]
libcomps-0.1.24/libcomps/src/comps_objmradix.c:657:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:655:14: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:656:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:656:20: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_objmradix.c:657:13: danger: ‘pair’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def83]
libcomps-0.1.24/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): [#def84]
libcomps-0.1.24/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-415): [#def85]
libcomps-0.1.24/libcomps/src/comps_objmradix.c:663:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)((void *)current_pair)).key’
libcomps-0.1.24/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:642:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:654:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:655:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:663:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:663:9: release_memory: first ‘free’ here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:637:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:639:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:642:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:654:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:655:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_objmradix.c:663:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objmradix.c:663:9: danger: second ‘free’ here; first ‘free’ was at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
libcomps-0.1.24/libcomps/src/comps_objradix.c:114:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.24/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.24/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
libcomps-0.1.24/libcomps/src/comps_objradix.c:135:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.24/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.24/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
libcomps-0.1.24/libcomps/src/comps_objradix.c:353:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rt’
libcomps-0.1.24/libcomps/src/comps_objradix.c:744:17: enter_function: entry to ‘comps_objrtree_union’
libcomps-0.1.24/libcomps/src/comps_objradix.c:746:11: call_function: calling ‘comps_objrtree_clone’ from ‘comps_objrtree_union’
libcomps-0.1.24/libcomps/src/comps_objradix.c:746:11: return_function: returning to ‘comps_objrtree_union’ from ‘comps_objrtree_clone’
libcomps-0.1.24/libcomps/src/comps_objradix.c:747:5: call_function: calling ‘comps_objrtree_unite’ from ‘comps_objrtree_union’
Error: CPPCHECK_WARNING (CWE-476): [#def89]
libcomps-0.1.24/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): [#def90]
libcomps-0.1.24/libcomps/src/comps_objradix.c:643:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_objradix.c:641:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:642:16: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:642:16: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_objradix.c:643:9: danger: ‘pair’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def91]
libcomps-0.1.24/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): [#def92]
libcomps-0.1.24/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-416): [#def93]
libcomps-0.1.24/libcomps/src/comps_objradix.c:650:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*to_process.first’
libcomps-0.1.24/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:653:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:665:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:666:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:674:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:676:9: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:650:9: danger: use after ‘free’ of ‘*to_process.first’; freed at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def94]
libcomps-0.1.24/libcomps/src/comps_objradix.c:653:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘current_pair’
libcomps-0.1.24/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:653:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:665:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:666:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:674:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:675:9: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:653:13: danger: use after ‘free’ of ‘current_pair’; freed at [(8)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def95]
libcomps-0.1.24/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): [#def96]
libcomps-0.1.24/libcomps/src/comps_objradix.c:660:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rtpair’
libcomps-0.1.24/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:653:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:654:16: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:654:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:656:23: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:656:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:659:26: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:659:26: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_objradix.c:660:17: danger: ‘rtpair’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def97]
libcomps-0.1.24/libcomps/src/comps_objradix.c:661: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: CPPCHECK_WARNING (CWE-476): [#def98]
libcomps-0.1.24/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): [#def99]
libcomps-0.1.24/libcomps/src/comps_objradix.c:668:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:666:14: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:667:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:667:20: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_objradix.c:668:13: danger: ‘pair’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def100]
libcomps-0.1.24/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): [#def101]
libcomps-0.1.24/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-415): [#def102]
libcomps-0.1.24/libcomps/src/comps_objradix.c:674:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)((void *)current_pair)).key’
libcomps-0.1.24/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:653:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:665:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:666:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:674:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:674:9: release_memory: first ‘free’ here
libcomps-0.1.24/libcomps/src/comps_objradix.c:648:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:650:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:653:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:665:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:666:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:674:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:674:9: danger: second ‘free’ here; first ‘free’ was at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def103]
libcomps-0.1.24/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): [#def104]
libcomps-0.1.24/libcomps/src/comps_objradix.c:692:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_objradix.c:691:12: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_objradix.c:692:5: danger: ‘pair’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def105]
libcomps-0.1.24/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-416): [#def106]
libcomps-0.1.24/libcomps/src/comps_objradix.c:702:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘**tmplist.first.data’
libcomps-0.1.24/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:707:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:738:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:739:9: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:702:9: danger: use after ‘free’ of ‘*tmplist.95_41->first.data’; freed at [(6)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/5)
Error: CPPCHECK_WARNING (CWE-476): [#def107]
libcomps-0.1.24/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): [#def108]
libcomps-0.1.24/libcomps/src/comps_objradix.c:709:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:708:20: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_objradix.c:709:13: danger: ‘pair’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def109]
libcomps-0.1.24/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.24/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:711:16: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:713:64: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:712:29: acquire_memory: this call could return NULL
libcomps-0.1.24/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 [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def110]
libcomps-0.1.24/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.24/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:707:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:708:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:711:16: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:722:63: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:721:29: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_objradix.c:723:17: danger: argument 1 (‘malloc(strlen(*(COMPS_ObjRTreeData *)it_43->data.key) + 1)’) from [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-415): [#def111]
libcomps-0.1.24/libcomps/src/comps_objradix.c:738:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)**tmplist.first.data).key’
libcomps-0.1.24/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:707:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:738:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:738:9: release_memory: first ‘free’ here
libcomps-0.1.24/libcomps/src/comps_objradix.c:699:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_objradix.c:701:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:707:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_objradix.c:738:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_objradix.c:738:9: danger: second ‘free’ here; first ‘free’ was at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def112]
libcomps-0.1.24/libcomps/src/comps_parse.c:293:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘alltext’
libcomps-0.1.24/libcomps/src/comps_parse.c:287:8: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_parse.c:288:39: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:288:19: acquire_memory: allocated here
libcomps-0.1.24/libcomps/src/comps_parse.c:289:12: release_memory: assuming ‘alltext’ is NULL
libcomps-0.1.24/libcomps/src/comps_parse.c:289:12: branch_true: following ‘true’ branch (when ‘alltext’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_parse.c:290:13: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:293:9: danger: dereference of NULL ‘alltext’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def113]
libcomps-0.1.24/libcomps/src/comps_parse.c:297:19: warning[-Wanalyzer-null-argument]: use of NULL ‘alltext’ where non-null expected
libcomps-0.1.24/libcomps/src/comps_parse.c:287:8: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_parse.c:287:8: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:295:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_parse.c:297:19: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:297:19: danger: argument 1 (‘alltext’) NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-416): [#def114]
libcomps-0.1.24/libcomps/src/comps_parse.c:449:31: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘it’
libcomps-0.1.24/libcomps/src/comps_parse.c:447:20: branch_true: following ‘true’ branch (when ‘attr_count > x’)...
libcomps-0.1.24/libcomps/src/comps_parse.c:448:41: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:448:50: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_parse.c:449:41: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:449:16: branch_true: following ‘true’ branch (when the strings are equal)...
libcomps-0.1.24/libcomps/src/comps_parse.c:450:21: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:450:20: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_parse.c:451:27: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:459:17: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_parse.c:447:20: branch_true: following ‘true’ branch (when ‘attr_count > x’)...
libcomps-0.1.24/libcomps/src/comps_parse.c:448:41: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:448:50: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_parse.c:449:41: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:449:31: danger: use after ‘free’ of ‘it’; freed at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def115]
libcomps-0.1.24/libcomps/src/comps_parse.c:466:39: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘it’
libcomps-0.1.24/libcomps/src/comps_parse.c:447:20: branch_true: following ‘true’ branch (when ‘attr_count > x’)...
libcomps-0.1.24/libcomps/src/comps_parse.c:448:41: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:448:50: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_parse.c:449:41: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:449:16: branch_true: following ‘true’ branch (when the strings are equal)...
libcomps-0.1.24/libcomps/src/comps_parse.c:450:21: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:450:20: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_parse.c:451:27: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:459:17: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_parse.c:464:46: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_parse.c:468:39: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_parse.c:466:39: danger: use after ‘free’ of ‘it’; freed at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
libcomps-0.1.24/libcomps/src/comps_radix.c:129:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.24/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.24/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
libcomps-0.1.24/libcomps/src/comps_radix.c:131:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.24/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.24/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-416): [#def118]
libcomps-0.1.24/libcomps/src/comps_radix.c:139:38: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*to_clone.first’
libcomps-0.1.24/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.24/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
libcomps-0.1.24/libcomps/src/comps_radix.c:152:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
libcomps-0.1.24/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.24/libcomps/src/comps_radix.c:589:11: call_function: calling ‘comps_rtree_clone’ from ‘comps_rtree_union’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
libcomps-0.1.24/libcomps/src/comps_radix.c:201:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘rt’
libcomps-0.1.24/libcomps/src/comps_radix.c:587:14: enter_function: entry to ‘comps_rtree_union’
libcomps-0.1.24/libcomps/src/comps_radix.c:590:5: call_function: calling ‘comps_rtree_unite’ from ‘comps_rtree_union’
Error: CPPCHECK_WARNING (CWE-476): [#def121]
libcomps-0.1.24/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): [#def122]
libcomps-0.1.24/libcomps/src/comps_radix.c:486:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_radix.c:484:38: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_radix.c:485:16: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:485:16: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_radix.c:486:9: danger: ‘pair’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def123]
libcomps-0.1.24/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): [#def124]
libcomps-0.1.24/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-416): [#def125]
libcomps-0.1.24/libcomps/src/comps_radix.c:493:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*to_process.first’
libcomps-0.1.24/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:496:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:508:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:509:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_radix.c:517:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:519:9: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:493:9: danger: use after ‘free’ of ‘*to_process.first’; freed at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-416): [#def126]
libcomps-0.1.24/libcomps/src/comps_radix.c:496:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘current_pair’
libcomps-0.1.24/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:496:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:508:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:509:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_radix.c:517:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:518:9: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:496:13: danger: use after ‘free’ of ‘current_pair’; freed at [(8)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def127]
libcomps-0.1.24/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): [#def128]
libcomps-0.1.24/libcomps/src/comps_radix.c:503:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rtpair’
libcomps-0.1.24/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:496:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:497:16: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:497:16: branch_false: following ‘false’ branch (when ‘keyvalpair != 0’)...
libcomps-0.1.24/libcomps/src/comps_radix.c:499:23: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:499:23: branch_false: following ‘false’ branch (when ‘keyvalpair != 1’)...
libcomps-0.1.24/libcomps/src/comps_radix.c:502:26: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:502:26: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_radix.c:503:17: danger: ‘rtpair’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def129]
libcomps-0.1.24/libcomps/src/comps_radix.c:504: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtpair
Error: CPPCHECK_WARNING (CWE-476): [#def130]
libcomps-0.1.24/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): [#def131]
libcomps-0.1.24/libcomps/src/comps_radix.c:511:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:509:14: branch_true: following ‘true’ branch (when ‘hsit’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_radix.c:510:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:510:20: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_radix.c:511:13: danger: ‘pair’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def132]
libcomps-0.1.24/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): [#def133]
libcomps-0.1.24/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-415): [#def134]
libcomps-0.1.24/libcomps/src/comps_radix.c:517:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)((void *)current_pair)).key’
libcomps-0.1.24/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:496:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:508:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:509:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_radix.c:517:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:517:9: release_memory: first ‘free’ here
libcomps-0.1.24/libcomps/src/comps_radix.c:491:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:493:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:496:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:508:21: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:509:14: branch_false: following ‘false’ branch (when ‘hsit’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_radix.c:517:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:517:9: danger: second ‘free’ here; first ‘free’ was at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def135]
libcomps-0.1.24/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): [#def136]
libcomps-0.1.24/libcomps/src/comps_radix.c:535:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_radix.c:534:12: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_radix.c:535:5: danger: ‘pair’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def137]
libcomps-0.1.24/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-416): [#def138]
libcomps-0.1.24/libcomps/src/comps_radix.c:545:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘**tmplist.first.data’
libcomps-0.1.24/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:582:9: release_memory: freed here
libcomps-0.1.24/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:545:9: danger: use after ‘free’ of ‘*tmplist.73_42->first.data’; freed at [(4)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def139]
libcomps-0.1.24/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): [#def140]
libcomps-0.1.24/libcomps/src/comps_radix.c:551:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pair’
libcomps-0.1.24/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:550:20: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_radix.c:551:13: danger: ‘pair’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def141]
libcomps-0.1.24/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.24/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:553:16: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:555:61: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:554:29: acquire_memory: this call could return NULL
libcomps-0.1.24/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/14/codeFlows/0/threadFlows/0/locations/6) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def142]
libcomps-0.1.24/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.24/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:549:40: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_radix.c:550:20: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:563:29: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_radix.c:565:17: danger: argument 1 (‘malloc(strlen(*(COMPS_RTreeData *)it_44->data.key) + 1)’) from [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-415): [#def143]
libcomps-0.1.24/libcomps/src/comps_radix.c:581:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct Pair)*(void *)**tmplist.first.data).key’
libcomps-0.1.24/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:581:9: release_memory: first ‘free’ here
libcomps-0.1.24/libcomps/src/comps_radix.c:542:12: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/src/comps_radix.c:544:9: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:549:40: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_radix.c:581:14: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_radix.c:581:9: danger: second ‘free’ here; first ‘free’ was at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
libcomps-0.1.24/libcomps/src/comps_set.c:132:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘not_processed1’
libcomps-0.1.24/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.24/libcomps/src/comps_set.c:153:41: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_set.c:156:10: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_set.c:156:41: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_set.c:159:10: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_set.c:163:13: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.24/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): [#def145]
libcomps-0.1.24/libcomps/src/comps_set.c:132:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘not_processed2’
libcomps-0.1.24/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: release_memory: ‘not_processed2’ is NULL
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.24/libcomps/src/comps_set.c:156:41: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_set.c:159:10: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_set.c:163:13: call_function: inlined call to ‘comps_set_is_empty’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:164:13: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_set.c:164:13: release_memory: ‘not_processed2’ is NULL
libcomps-0.1.24/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-476): [#def146]
libcomps-0.1.24/libcomps/src/comps_set.c:154:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘not_processed1’
libcomps-0.1.24/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.24/libcomps/src/comps_set.c:153:41: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_set.c:154:43: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_set.c:154:43: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.24/libcomps/src/comps_set.c:154:9: danger: dereference of NULL ‘not_processed1’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
libcomps-0.1.24/libcomps/src/comps_set.c:157:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘not_processed1’
libcomps-0.1.24/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.24/libcomps/src/comps_set.c:153:41: branch_false: following ‘false’ branch (when ‘it’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_set.c:156:10: branch_false: ...to here
libcomps-0.1.24/libcomps/src/comps_set.c:156:41: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_set.c:157:43: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_set.c:157:43: release_memory: ‘not_processed1’ is NULL
libcomps-0.1.24/libcomps/src/comps_set.c:157:9: danger: dereference of NULL ‘not_processed2’
Error: GCC_ANALYZER_WARNING (CWE-476): [#def148]
libcomps-0.1.24/libcomps/src/comps_set.c:157:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘not_processed2’
libcomps-0.1.24/libcomps/src/comps_set.c:137:6: enter_function: entry to ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:145:22: call_function: calling ‘comps_set_create’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:145:22: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_create’
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:147:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: release_memory: ‘not_processed2’ is NULL
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: call_function: calling ‘comps_set_init’ from ‘comps_set_cmp’
libcomps-0.1.24/libcomps/src/comps_set.c:150:5: return_function: returning to ‘comps_set_cmp’ from ‘comps_set_init’
libcomps-0.1.24/libcomps/src/comps_set.c:156:41: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_set.c:157:43: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_set.c:157:43: release_memory: ‘not_processed2’ is NULL
libcomps-0.1.24/libcomps/src/comps_set.c:157:9: danger: dereference of NULL ‘not_processed2’
Error: CPPCHECK_WARNING (CWE-476): [#def149]
libcomps-0.1.24/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): [#def150]
libcomps-0.1.24/libcomps/src/comps_utils.c:57:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.24/libcomps/src/comps_utils.c:56:11: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def151]
libcomps-0.1.24/libcomps/src/comps_utils.c:58: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
Error: CPPCHECK_WARNING (CWE-476): [#def152]
libcomps-0.1.24/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): [#def153]
libcomps-0.1.24/libcomps/src/comps_utils.c:93:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘arches_str’
libcomps-0.1.24/libcomps/src/comps_utils.c:92:22: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_utils.c:93:9: danger: ‘arches_str’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def154]
libcomps-0.1.24/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): [#def155]
libcomps-0.1.24/libcomps/src/comps_utils.c:103:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘arches_str’
libcomps-0.1.24/libcomps/src/comps_utils.c:91:8: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/comps_utils.c:102:18: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_utils.c:103:5: danger: ‘arches_str’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def156]
libcomps-0.1.24/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): [#def157]
libcomps-0.1.24/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): [#def158]
libcomps-0.1.24/libcomps/src/comps_utils.c:130:12: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.24/libcomps/src/comps_utils.c:129:11: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_utils.c:130:12: 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): [#def159]
libcomps-0.1.24/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): [#def160]
libcomps-0.1.24/libcomps/src/comps_utils.c:136:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.24/libcomps/src/comps_utils.c:135:11: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/src/comps_utils.c:136: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: CPPCHECK_WARNING (CWE-476): [#def161]
libcomps-0.1.24/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): [#def162]
libcomps-0.1.24/libcomps/src/comps_validate.c:59:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libcomps-0.1.24/libcomps/src/comps_validate.c:52:60: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_validate.c:54:41: branch_true: ...to here
libcomps-0.1.24/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): [#def163]
libcomps-0.1.24/libcomps/src/comps_validate.c:195:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘msg’ where non-null expected
libcomps-0.1.24/libcomps/src/comps_validate.c:180:10: branch_true: following ‘true’ branch (when ‘it’ is non-NULL)...
libcomps-0.1.24/libcomps/src/comps_validate.c:182:45: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_validate.c:185:16: branch_true: following ‘true’ branch (when ‘valres’ is NULL)...
libcomps-0.1.24/libcomps/src/comps_validate.c:186:47: branch_true: ...to here
libcomps-0.1.24/libcomps/src/comps_validate.c:193:19: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def164]
libcomps-0.1.24/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): [#def165]
libcomps-0.1.24/libcomps/src/python/src/pycomps.c:60:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(15)’
libcomps-0.1.24/libcomps/src/python/src/pycomps.c:44:16: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def166]
libcomps-0.1.24/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): [#def167]
libcomps-0.1.24/libcomps/src/python/src/pycomps.c:92:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(8)’
libcomps-0.1.24/libcomps/src/python/src/pycomps.c:87:16: acquire_memory: this call could return NULL
libcomps-0.1.24/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-688): [#def168]
libcomps-0.1.24/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.24/libcomps/src/python/src/pycomps_utils.c:112:8: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/python/src/pycomps_utils.c:116:13: branch_false: ...to here
libcomps-0.1.24/libcomps/src/python/src/pycomps_utils.c:117:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/python/src/pycomps_utils.c:121:15: branch_false: ...to here
libcomps-0.1.24/libcomps/src/python/src/pycomps_utils.c:122:12: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/src/python/src/pycomps_utils.c:125:39: branch_false: ...to here
libcomps-0.1.24/libcomps/src/python/src/pycomps_utils.c:125:16: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def169]
libcomps-0.1.24/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.24/libcomps/src/python/src/pycomps_utils.c:30:15: enter_function: entry to ‘__pycomps_unicode_in’
libcomps-0.1.24/libcomps/src/python/src/pycomps_utils.c:32:5: call_function: calling ‘__pycomps_PyUnicode_AsString’ from ‘__pycomps_unicode_in’
Error: CPPCHECK_WARNING (CWE-476): [#def170]
libcomps-0.1.24/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): [#def171]
libcomps-0.1.24/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.24/libcomps/src/python/src/pycomps_utils.c:170:11: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def172]
libcomps-0.1.24/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): [#def173]
libcomps-0.1.24/libcomps/tests/check_brtree.c:36:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.24/libcomps/tests/check_brtree.c:35:11: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def174]
libcomps-0.1.24/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): [#def175]
libcomps-0.1.24/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.24/libcomps/tests/check_brtree.c:36:21: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def176]
libcomps-0.1.24/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): [#def177]
libcomps-0.1.24/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): [#def178]
libcomps-0.1.24/libcomps/tests/check_brtree.c:77:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.24/libcomps/tests/check_brtree.c:75:11: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def179]
libcomps-0.1.24/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.24/libcomps/tests/check_brtree.c:76:16: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def180]
libcomps-0.1.24/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): [#def181]
libcomps-0.1.24/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): [#def182]
libcomps-0.1.24/libcomps/tests/check_brtree.c:89:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.24/libcomps/tests/check_brtree.c:88:11: acquire_memory: this call could return NULL
libcomps-0.1.24/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): [#def183]
libcomps-0.1.24/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): [#def184]
libcomps-0.1.24/libcomps/tests/check_brtree.c:91:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(8)’
libcomps-0.1.24/libcomps/tests/check_brtree.c:89:16: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/tests/check_brtree.c:90:17: branch_true: following ‘true’ branch (when ‘i != 8’)...
libcomps-0.1.24/libcomps/tests/check_brtree.c:91:35: branch_true: ...to here
libcomps-0.1.24/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: CPPCHECK_WARNING (CWE-476): [#def185]
libcomps-0.1.24/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): [#def186]
libcomps-0.1.24/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): [#def187]
libcomps-0.1.24/libcomps/tests/check_brtree.c:135:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.24/libcomps/tests/check_brtree.c:133:11: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/tests/check_brtree.c:135:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def188]
libcomps-0.1.24/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): [#def189]
libcomps-0.1.24/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.24/libcomps/tests/check_brtree.c:135:16: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/tests/check_brtree.c:138:5: danger: argument 1 (‘malloc((long unsigned int)len)’) from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def190]
libcomps-0.1.24/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): [#def191]
libcomps-0.1.24/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): [#def192]
libcomps-0.1.24/libcomps/tests/check_brtree.c:156:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.24/libcomps/tests/check_brtree.c:155:11: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/tests/check_brtree.c:156:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def193]
libcomps-0.1.24/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): [#def194]
libcomps-0.1.24/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.24/libcomps/tests/check_brtree.c:156:16: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/tests/check_brtree.c:162:17: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/tests/check_brtree.c:163:23: branch_true: ...to here
libcomps-0.1.24/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/9/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def195]
libcomps-0.1.24/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): [#def196]
libcomps-0.1.24/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): [#def197]
libcomps-0.1.24/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.24/libcomps/tests/check_brtree.c:156:16: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/tests/check_brtree.c:162:17: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/tests/check_brtree.c:162:17: branch_false: ...to here
libcomps-0.1.24/libcomps/tests/check_brtree.c:167:17: branch_true: following ‘true’ branch...
libcomps-0.1.24/libcomps/tests/check_brtree.c:168:27: branch_true: ...to here
libcomps-0.1.24/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/10/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def198]
libcomps-0.1.24/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): [#def199]
libcomps-0.1.24/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): [#def200]
libcomps-0.1.24/libcomps/tests/check_brtree.c:191:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.24/libcomps/tests/check_brtree.c:190:18: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/tests/check_brtree.c:191:5: danger: ‘ret’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def201]
libcomps-0.1.24/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): [#def202]
libcomps-0.1.24/libcomps/tests/check_brtree.c:197:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.24/libcomps/tests/check_brtree.c:196:17: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/tests/check_brtree.c:197:5: danger: argument 1 (‘ret’) from [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def203]
libcomps-0.1.24/libcomps/tests/check_parse.c:206:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown>.args + (long unsigned int)i * 8’
libcomps-0.1.24/libcomps/tests/check_parse.c:200:19: acquire_memory: this call could return NULL
libcomps-0.1.24/libcomps/tests/check_parse.c:204:19: branch_true: following ‘true’ branch (when ‘i < n’)...
libcomps-0.1.24/libcomps/tests/check_parse.c:205:9: branch_true: ...to here
libcomps-0.1.24/libcomps/tests/check_parse.c:206:9: danger: ‘*<unknown>.args + (long unsigned int)i * 8’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def204]
libcomps-0.1.24/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): [#def205]
libcomps-0.1.24/libcomps/tests/check_rtree.c:40:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ret’
libcomps-0.1.24/libcomps/tests/check_rtree.c:127:5: enter_function: entry to ‘main’
libcomps-0.1.24/libcomps/tests/check_rtree.c:148:5: call_function: inlined call to ‘int_cloner’ from ‘main’
Error: CPPCHECK_WARNING (CWE-476): [#def206]
libcomps-0.1.24/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): [#def207]
libcomps-0.1.24/libcomps/tests/check_rtree.c:46:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘ret’ where non-null expected
libcomps-0.1.24/libcomps/tests/check_rtree.c:127:5: enter_function: entry to ‘main’
libcomps-0.1.24/libcomps/tests/check_rtree.c:269:12: call_function: calling ‘load_acrodict’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-688): [#def208]
libcomps-0.1.24/libcomps/tests/check_utils.c:51:5: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
libcomps-0.1.24/libcomps/tests/check_utils.c:51:5: branch_false: following ‘false’ branch...
libcomps-0.1.24/libcomps/tests/check_utils.c:51:5: branch_false: ...to here
libcomps-0.1.24/libcomps/tests/check_utils.c:51:5: danger: argument 1 (‘<unknown>’) NULL where non-null expected
Scan Properties
| analyzer-version-clippy | 1.97.1 |
| analyzer-version-cppcheck | 2.21.1 |
| analyzer-version-gcc | 16.1.1 |
| analyzer-version-gcc-analyzer | 16.1.1 |
| 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-75.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.20260524.213755.g3c6d0be.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libcomps-0.1.24-1.fc44 |
| store-results-to | /tmp/tmpxan4mo28/libcomps-0.1.24-1.fc44.tar.xz |
| time-created | 2026-08-03 17:03:30 |
| time-finished | 2026-08-03 17:06:04 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,clippy,unicontrol,shellcheck,cppcheck' '-o' '/tmp/tmpxan4mo28/libcomps-0.1.24-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpxan4mo28/libcomps-0.1.24-1.fc44.src.rpm' |
| tool-version | csmock-3.8.7.20260803.142340.gb75b18e-1.el9 |