libconfig-1.8.2-1.fc44
List of Findings
Error: COMPILER_WARNING (CWE-704): [#def1]
libconfig-1.8.2/examples/c/example4.c: scope_hint: In function ‘include_func’
libconfig-1.8.2/examples/c/example4.c:61:5: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def2]
libconfig-1.8.2/examples/c/example4.c:61:5: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
libconfig-1.8.2/examples/c/example4.c:73:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:90:24: acquire_memory: allocated here
libconfig-1.8.2/examples/c/example4.c:73:24: throw: if ‘readdir’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:73:24: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
libconfig-1.8.2/examples/c/example4.c:73:24: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(include_path)’
libconfig-1.8.2/examples/c/example4.c:69:8: acquire_memory: allocated here
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:24: throw: if ‘readdir’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:73:24: danger: ‘opendir(include_path)’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
libconfig-1.8.2/examples/c/example4.c:73:24: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:24: throw: if ‘readdir’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:73:24: danger: ‘result’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
libconfig-1.8.2/examples/c/example4.c:75:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:90:24: acquire_memory: allocated here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:75:7: throw: if ‘pathbuf_append_path’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:75:7: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
libconfig-1.8.2/examples/c/example4.c:75:7: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:75:7: throw: if ‘pathbuf_append_path’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:75:7: danger: ‘result’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
libconfig-1.8.2/examples/c/example4.c:80:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:90:24: acquire_memory: allocated here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:78:9: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:79:13: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:78:10: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:80:13: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:80:13: throw: if ‘fnmatch’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:80:13: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
libconfig-1.8.2/examples/c/example4.c:80:13: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:78:9: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:79:13: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:78:10: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:80:13: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:80:13: throw: if ‘fnmatch’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:80:13: danger: ‘result’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
libconfig-1.8.2/examples/c/example4.c:90:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result_next’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:90:9: danger: dereference of NULL ‘result_next’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
libconfig-1.8.2/examples/c/example4.c:97:7: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:90:24: acquire_memory: allocated here
libconfig-1.8.2/examples/c/example4.c:97:7: throw: if ‘pathbuf_remove_last_component’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:97:7: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
libconfig-1.8.2/examples/c/example4.c:97:7: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:97:7: throw: if ‘pathbuf_remove_last_component’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:97:7: danger: ‘result’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libconfig-1.8.2/examples/c/example4.c:99:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:90:24: acquire_memory: allocated here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_false: following ‘false’ branch...
libconfig-1.8.2/examples/c/example4.c:99:5: branch_false: ...to here
libconfig-1.8.2/examples/c/example4.c:99:5: throw: if ‘closedir’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:99:5: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
libconfig-1.8.2/examples/c/example4.c:99:5: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_false: following ‘false’ branch...
libconfig-1.8.2/examples/c/example4.c:99:5: branch_false: ...to here
libconfig-1.8.2/examples/c/example4.c:99:5: throw: if ‘closedir’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:99:5: danger: ‘result’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
libconfig-1.8.2/examples/c/example4.c:102:3: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘result_next’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
libconfig-1.8.2/examples/c/example4.c:104:3: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:90:24: acquire_memory: allocated here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_false: following ‘false’ branch...
libconfig-1.8.2/examples/c/example4.c:99:5: branch_false: ...to here
libconfig-1.8.2/examples/c/example4.c:104:3: throw: if ‘pathbuf_destroy’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:104:3: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libconfig-1.8.2/examples/c/example4.c:104:3: warning[-Wanalyzer-malloc-leak]: leak of ‘result’
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:71:5: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_true: following ‘true’ branch...
libconfig-1.8.2/examples/c/example4.c:75:37: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:82:11: branch_true: following ‘true’ branch (when ‘result_count == result_capacity’)...
libconfig-1.8.2/examples/c/example4.c:84:11: branch_true: ...to here
libconfig-1.8.2/examples/c/example4.c:73:11: branch_false: following ‘false’ branch...
libconfig-1.8.2/examples/c/example4.c:99:5: branch_false: ...to here
libconfig-1.8.2/examples/c/example4.c:104:3: throw: if ‘pathbuf_destroy’ throws an exception...
libconfig-1.8.2/examples/c/example4.c:104:3: danger: ‘result’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def18]
libconfig-1.8.2/examples/c/pathbuf.c:45: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
libconfig-1.8.2/examples/c/pathbuf.c:45:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
libconfig-1.8.2/examples/c/pathbuf.c:44:33: acquire_memory: this call could return NULL
libconfig-1.8.2/examples/c/pathbuf.c:45:3: danger: ‘buf’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def20]
libconfig-1.8.2/examples/c/pathbuf.c:46: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
libconfig-1.8.2/examples/c/pathbuf.c:46:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(128)’
libconfig-1.8.2/examples/c/pathbuf.c:45:23: acquire_memory: this call could return NULL
libconfig-1.8.2/examples/c/pathbuf.c:46:3: danger: ‘malloc(128)’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def22]
libconfig-1.8.2/examples/c/pathbuf.c:47: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: CPPCHECK_WARNING (CWE-476): [#def23]
libconfig-1.8.2/examples/c/pathbuf.c:48: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: CPPCHECK_WARNING (CWE-401): [#def24]
libconfig-1.8.2/examples/c/pathbuf.c:50: error[memleak]: Memory leak: buf.path
Error: COMPILER_WARNING: [#def25]
libconfig-1.8.2/lib/grammar.c: scope_hint: In function 'libconfig_yyparse'
libconfig-1.8.2/lib/grammar.c:72:25: warning[-Wunused-but-set-variable=]: variable 'libconfig_yynerrs' set but not used
libconfig-1.8.2/lib/grammar.c:1077:9: note: in expansion of macro 'yynerrs'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def26]
libconfig-1.8.2/lib/grammar.c:1185:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'yyss'
libconfig-1.8.2/lib/grammar.c:1143:6: branch_true: following 'true' branch...
libconfig-1.8.2/lib/grammar.c:1149:28: branch_true: ...to here
libconfig-1.8.2/lib/grammar.c:1172:10: branch_false: following 'false' branch (when 'yystacksize <= 9999')...
libconfig-1.8.2/lib/grammar.c:1174:7: branch_false: ...to here
libconfig-1.8.2/lib/grammar.c:1183:12: branch_false: following 'false' branch...
libconfig-1.8.2/lib/grammar.c:1185:9: branch_false: ...to here
libconfig-1.8.2/lib/grammar.c:1185:9: danger: use of uninitialized value 'yyss' here
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
libconfig-1.8.2/lib/libconfig.c:1192:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'setting'
libconfig-1.8.2/lib/libconfig.c:1599:19: enter_function: entry to 'config_setting_set_int_elem'
libconfig-1.8.2/lib/libconfig.c:1606:5: branch_false: following 'false' branch...
libconfig-1.8.2/lib/libconfig.c:1610:5: branch_false: ...to here
libconfig-1.8.2/lib/libconfig.c:1610:5: branch_true: following 'true' branch (when 'idx < 0')...
libconfig-1.8.2/lib/libconfig.c:1612:10: branch_true: ...to here
libconfig-1.8.2/lib/libconfig.c:1612:7: branch_false: following 'false' branch...
libconfig-1.8.2/lib/libconfig.c:1615:15: branch_false: ...to here
libconfig-1.8.2/lib/libconfig.c:1615:15: call_function: calling '__config_setting_create' from 'config_setting_set_int_elem'
libconfig-1.8.2/lib/libconfig.c:1615:15: return_function: returning to 'config_setting_set_int_elem' from '__config_setting_create'
libconfig-1.8.2/lib/libconfig.c:1625:8: call_function: calling 'config_setting_set_int' from 'config_setting_set_int_elem'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
libconfig-1.8.2/lib/libconfig.c:1222:10: warning[-Wanalyzer-null-dereference]: dereference of NULL 'setting'
libconfig-1.8.2/lib/libconfig.c:1647:19: enter_function: entry to 'config_setting_set_int64_elem'
libconfig-1.8.2/lib/libconfig.c:1654:5: branch_false: following 'false' branch...
libconfig-1.8.2/lib/libconfig.c:1658:5: branch_false: ...to here
libconfig-1.8.2/lib/libconfig.c:1658:5: branch_true: following 'true' branch (when 'idx < 0')...
libconfig-1.8.2/lib/libconfig.c:1660:10: branch_true: ...to here
libconfig-1.8.2/lib/libconfig.c:1660:7: branch_false: following 'false' branch...
libconfig-1.8.2/lib/libconfig.c:1663:15: branch_false: ...to here
libconfig-1.8.2/lib/libconfig.c:1663:15: call_function: calling '__config_setting_create' from 'config_setting_set_int64_elem'
libconfig-1.8.2/lib/libconfig.c:1663:15: return_function: returning to 'config_setting_set_int64_elem' from '__config_setting_create'
libconfig-1.8.2/lib/libconfig.c:1673:8: call_function: calling 'config_setting_set_int64' from 'config_setting_set_int64_elem'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libconfig-1.8.2/lib/libconfig.c:2069:26: warning[-Wanalyzer-malloc-leak]: leak of 'file'
libconfig-1.8.2/lib/libconfig.c:2065:12: acquire_memory: allocated here
libconfig-1.8.2/lib/libconfig.c:2069:26: throw: if 'libconfig_malloc' throws an exception...
libconfig-1.8.2/lib/libconfig.c:2069:26: danger: 'file' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
libconfig-1.8.2/lib/scanner.c:2222:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'b'
libconfig-1.8.2/lib/scanner.c:2101:10: enter_function: entry to 'libconfig_yyrestart'
libconfig-1.8.2/lib/scanner.c:2108:13: call_function: calling 'libconfig_yy_create_buffer' from 'libconfig_yyrestart'
libconfig-1.8.2/lib/scanner.c:2108:13: return_function: returning to 'libconfig_yyrestart' from 'libconfig_yy_create_buffer'
libconfig-1.8.2/lib/scanner.c:2111:9: branch_false: following 'false' branch...
libconfig-1.8.2/lib/scanner.c:2111:9: branch_false: ...to here
libconfig-1.8.2/lib/scanner.c:2111:9: call_function: calling 'libconfig_yy_init_buffer' from 'libconfig_yyrestart'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libconfig-1.8.2/tests/tests.c:122:3: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
libconfig-1.8.2/tests/tests.c:121:17: acquire_memory: allocated here
libconfig-1.8.2/tests/tests.c:122:3: throw: if ‘tt_expect’ throws an exception...
libconfig-1.8.2/tests/tests.c:122:3: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
libconfig-1.8.2/tests/tests.c:125:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(file, "rt")’
libconfig-1.8.2/tests/tests.c:124:8: acquire_resource: opened here
libconfig-1.8.2/tests/tests.c:125:3: throw: if ‘tt_expect’ throws an exception...
libconfig-1.8.2/tests/tests.c:125:3: danger: ‘fopen(file, "rt")’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libconfig-1.8.2/tests/tests.c:125:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(file, "rt")’
libconfig-1.8.2/tests/tests.c:124:8: acquire_memory: allocated here
libconfig-1.8.2/tests/tests.c:125:3: throw: if ‘tt_expect’ throws an exception...
libconfig-1.8.2/tests/tests.c:125:3: danger: ‘fopen(file, "rt")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def34]
libconfig-1.8.2/tests/tests.c:127: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: CPPCHECK_WARNING (CWE-476): [#def35]
libconfig-1.8.2/tests/tests.c:127: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: CPPCHECK_WARNING (CWE-476): [#def36]
libconfig-1.8.2/tests/tests.c:128: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: CPPCHECK_WARNING (CWE-682): [#def37]
libconfig-1.8.2/tests/tests.c:132: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
libconfig-1.8.2/tests/tests.c:175:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&error_file, "rt")’
libconfig-1.8.2/tests/tests.c:171:7: branch_false: following ‘false’ branch...
libconfig-1.8.2/tests/tests.c:174:10: acquire_resource: opened here
libconfig-1.8.2/tests/tests.c:175:5: throw: if ‘tt_expect’ throws an exception...
libconfig-1.8.2/tests/tests.c:175:5: danger: ‘fopen(&error_file, "rt")’ leaks here; was opened at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libconfig-1.8.2/tests/tests.c:175:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&error_file, "rt")’
libconfig-1.8.2/tests/tests.c:171:7: branch_false: following ‘false’ branch...
libconfig-1.8.2/tests/tests.c:174:10: acquire_memory: allocated here
libconfig-1.8.2/tests/tests.c:175:5: throw: if ‘tt_expect’ throws an exception...
libconfig-1.8.2/tests/tests.c:175:5: danger: ‘fopen(&error_file, "rt")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def40]
libconfig-1.8.2/tests/tests.c:176: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: CPPCHECK_WARNING (CWE-476): [#def41]
libconfig-1.8.2/tests/tests.c:177: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
libconfig-1.8.2/tests/tests.c:205:5: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&error_file, "rt")’
libconfig-1.8.2/tests/tests.c:199:7: branch_false: following ‘false’ branch...
libconfig-1.8.2/tests/tests.c:204:10: acquire_resource: opened here
libconfig-1.8.2/tests/tests.c:205:5: throw: if ‘tt_expect’ throws an exception...
libconfig-1.8.2/tests/tests.c:205:5: danger: ‘fopen(&error_file, "rt")’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
libconfig-1.8.2/tests/tests.c:205:5: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&error_file, "rt")’
libconfig-1.8.2/tests/tests.c:199:7: branch_false: following ‘false’ branch...
libconfig-1.8.2/tests/tests.c:204:10: acquire_memory: allocated here
libconfig-1.8.2/tests/tests.c:205:5: throw: if ‘tt_expect’ throws an exception...
libconfig-1.8.2/tests/tests.c:205:5: danger: ‘fopen(&error_file, "rt")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def44]
libconfig-1.8.2/tests/tests.c:206: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: CPPCHECK_WARNING (CWE-476): [#def45]
libconfig-1.8.2/tests/tests.c:207: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
libconfig-1.8.2/tests/tests.c:657:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("testdata/nesting.cfg", "rt")’
libconfig-1.8.2/tests/tests.c:656:12: acquire_resource: opened here
libconfig-1.8.2/tests/tests.c:657:3: throw: if ‘tt_expect’ throws an exception...
libconfig-1.8.2/tests/tests.c:657:3: danger: ‘fopen("testdata/nesting.cfg", "rt")’ leaks here; was opened at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
libconfig-1.8.2/tests/tests.c:657:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("testdata/nesting.cfg", "rt")’
libconfig-1.8.2/tests/tests.c:656:12: acquire_memory: allocated here
libconfig-1.8.2/tests/tests.c:657:3: throw: if ‘tt_expect’ throws an exception...
libconfig-1.8.2/tests/tests.c:657:3: danger: ‘fopen("testdata/nesting.cfg", "rt")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def48]
libconfig-1.8.2/tests/tests.c:661: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: stream
Error: CPPCHECK_WARNING (CWE-476): [#def49]
libconfig-1.8.2/tinytest/tinytest.c:228: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: suite
Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
libconfig-1.8.2/tinytest/tinytest.c:228:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘suite’
libconfig-1.8.2/tinytest/tinytest.c:227:27: acquire_memory: this call could return NULL
libconfig-1.8.2/tinytest/tinytest.c:228:3: danger: ‘suite’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def51]
libconfig-1.8.2/tinytest/tinytest.c:229: error[memleak]: Memory leak: suite.name
Error: CPPCHECK_WARNING (CWE-476): [#def52]
libconfig-1.8.2/tinytest/tinytest.c:258: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: test
Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
libconfig-1.8.2/tinytest/tinytest.c:258:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘test’
libconfig-1.8.2/tinytest/tinytest.c:257:21: acquire_memory: this call could return NULL
libconfig-1.8.2/tinytest/tinytest.c:258:3: danger: ‘test’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def54]
libconfig-1.8.2/tinytest/tinytest.c:259: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: test
Scan Properties
| analyzer-version-clippy | 1.92.0 |
| analyzer-version-cppcheck | 2.19.1 |
| analyzer-version-gcc | 16.0.0 |
| analyzer-version-gcc-analyzer | 16.0.0 |
| analyzer-version-shellcheck | 0.11.0 |
| analyzer-version-unicontrol | 0.0.2 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-238.us-west-2.compute.internal |
| known-false-positives | /usr/share/csmock/known-false-positives.js |
| known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| mock-config | fedora-rawhide-x86_64 |
| project-name | libconfig-1.8.2-1.fc44 |
| store-results-to | /tmp/tmpdtrn8856/libconfig-1.8.2-1.fc44.tar.xz |
| time-created | 2026-01-08 18:38:22 |
| time-finished | 2026-01-08 18:39:50 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpdtrn8856/libconfig-1.8.2-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpdtrn8856/libconfig-1.8.2-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |