libreport-2.17.15-9.fc44
List of Findings
Error: CPPCHECK_WARNING (CWE-457): [#def1]
libreport-2.17.15/src/cli/cli-report.c:845: warning[uninitvar]: Uninitialized variable: help_wf_array
Error: GCC_ANALYZER_WARNING (CWE-457): [#def2]
libreport-2.17.15/src/include/problem_data.h:78:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘problem_data’
libreport-2.17.15/src/cli/cli-report.c:736:12: enter_function: entry to ‘run_event_chain_real’
libreport-2.17.15/src/cli/cli-report.c:748:32: branch_true: following ‘true’ branch (when ‘eitem’ is non-NULL)...
libreport-2.17.15/src/cli/cli-report.c:750:9: branch_true: ...to here
libreport-2.17.15/src/cli/cli-report.c:754:12: branch_true: following ‘true’ branch (when ‘interactive != 0’)...
libreport-2.17.15/src/cli/cli-report.c:755:22: branch_true: ...to here
libreport-2.17.15/src/cli/cli-report.c:755:22: call_function: calling ‘run_event_on_dir_name_interactively’ from ‘run_event_chain_real’
Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
libreport-2.17.15/src/include/report_result.h:36:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘result’
libreport-2.17.15/src/plugins/reporter-ureport.c:27:5: enter_function: entry to ‘main’
libreport-2.17.15/src/plugins/reporter-ureport.c:145:8: branch_false: following ‘false’ branch...
libreport-2.17.15/src/plugins/reporter-ureport.c:148:9: branch_false: ...to here
libreport-2.17.15/src/plugins/reporter-ureport.c:180:12: branch_false: following ‘false’ branch...
libreport-2.17.15/src/plugins/reporter-ureport.c:183:13: branch_false: ...to here
libreport-2.17.15/src/plugins/reporter-ureport.c:204:12: branch_true: following ‘true’ branch...
libreport-2.17.15/src/plugins/reporter-ureport.c:207:30: branch_true: ...to here
libreport-2.17.15/src/plugins/reporter-ureport.c:209:22: throw: if ‘libreport_find_in_reported_to’ throws an exception...
libreport-2.17.15/src/plugins/reporter-ureport.c:207:30: call_function: calling ‘g_autoptr_cleanup_generic_gfree’ from ‘main’
libreport-2.17.15/src/plugins/reporter-ureport.c:206:40: call_function: inlined call to ‘glib_autoptr_cleanup_report_result_t’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-404): [#def4]
libreport-2.17.15/src/lib/abrt_xmlrpc.c:222:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libreport-2.17.15/src/lib/abrt_xmlrpc.c:319:15: enter_function: entry to 'abrt_xmlrpc_call'
libreport-2.17.15/src/lib/abrt_xmlrpc.c:325:5: acquire_resource: 'va_start' called here
libreport-2.17.15/src/lib/abrt_xmlrpc.c:326:28: call_function: calling 'abrt_xmlrpc_call_full_va' from 'abrt_xmlrpc_call'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def5]
libreport-2.17.15/src/lib/abrt_xmlrpc.c:227:5: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libreport-2.17.15/src/lib/abrt_xmlrpc.c:319:15: enter_function: entry to 'abrt_xmlrpc_call'
libreport-2.17.15/src/lib/abrt_xmlrpc.c:325:5: acquire_resource: 'va_start' called here
libreport-2.17.15/src/lib/abrt_xmlrpc.c:326:28: call_function: calling 'abrt_xmlrpc_call_full_va' from 'abrt_xmlrpc_call'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def6]
libreport-2.17.15/src/lib/compress.c:33:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(path_in, src_flags)'
libreport-2.17.15/src/lib/compress.c:104:5: enter_function: entry to 'libreport_decompress_file_ext_at'
libreport-2.17.15/src/lib/compress.c:107:15: acquire_resource: opened here
libreport-2.17.15/src/lib/compress.c:108:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/compress.c:114:15: branch_false: ...to here
libreport-2.17.15/src/lib/compress.c:115:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/compress.c:122:15: branch_false: ...to here
libreport-2.17.15/src/lib/compress.c:122:15: call_function: calling 'libreport_decompress_fd' from 'libreport_decompress_file_ext_at'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
libreport-2.17.15/src/lib/compress.c:35:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(path_in, src_flags)'
libreport-2.17.15/src/lib/compress.c:104:5: enter_function: entry to 'libreport_decompress_file_ext_at'
libreport-2.17.15/src/lib/compress.c:107:15: acquire_resource: opened here
libreport-2.17.15/src/lib/compress.c:108:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/compress.c:114:15: branch_false: ...to here
libreport-2.17.15/src/lib/compress.c:115:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/compress.c:122:15: branch_false: ...to here
libreport-2.17.15/src/lib/compress.c:122:15: call_function: calling 'libreport_decompress_fd' from 'libreport_decompress_file_ext_at'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def8]
libreport-2.17.15/src/lib/compress.c:36:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(path_in, src_flags)'
libreport-2.17.15/src/lib/compress.c:104:5: enter_function: entry to 'libreport_decompress_file_ext_at'
libreport-2.17.15/src/lib/compress.c:107:15: acquire_resource: opened here
libreport-2.17.15/src/lib/compress.c:108:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/compress.c:114:15: branch_false: ...to here
libreport-2.17.15/src/lib/compress.c:115:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/compress.c:122:15: branch_false: ...to here
libreport-2.17.15/src/lib/compress.c:122:15: call_function: calling 'libreport_decompress_fd' from 'libreport_decompress_file_ext_at'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
libreport-2.17.15/src/lib/compress.c:38:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(path_in, src_flags)'
libreport-2.17.15/src/lib/compress.c:104:5: enter_function: entry to 'libreport_decompress_file_ext_at'
libreport-2.17.15/src/lib/compress.c:107:15: acquire_resource: opened here
libreport-2.17.15/src/lib/compress.c:108:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/compress.c:114:15: branch_false: ...to here
libreport-2.17.15/src/lib/compress.c:115:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/compress.c:122:15: branch_false: ...to here
libreport-2.17.15/src/lib/compress.c:122:15: call_function: calling 'libreport_decompress_fd' from 'libreport_decompress_file_ext_at'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def10]
libreport-2.17.15/src/lib/compress.c:114:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(path_in, src_flags)'
libreport-2.17.15/src/lib/compress.c:107:15: acquire_resource: opened here
libreport-2.17.15/src/lib/compress.c:108:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/compress.c:114:15: branch_false: ...to here
libreport-2.17.15/src/lib/compress.c:114:15: throw: if 'openat' throws an exception...
libreport-2.17.15/src/lib/compress.c:114:15: danger: 'open(path_in, src_flags)' leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
libreport-2.17.15/src/lib/compress.c:117:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(path_in, src_flags)'
libreport-2.17.15/src/lib/compress.c:107:15: acquire_resource: opened here
libreport-2.17.15/src/lib/compress.c:108:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/compress.c:114:15: branch_false: ...to here
libreport-2.17.15/src/lib/compress.c:115:8: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/compress.c:117:9: branch_true: ...to here
libreport-2.17.15/src/lib/compress.c:117:9: danger: 'open(path_in, src_flags)' leaks here; was opened at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def12]
libreport-2.17.15/src/lib/concat_path_file.c: scope_hint: In function 'libreport_concat_path_basename'
libreport-2.17.15/src/lib/concat_path_file.c:25:18: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def13]
libreport-2.17.15/src/lib/concat_path_file.c:25:18: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
libreport-2.17.15/src/lib/copyfd.c:67:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(src_name, src_flags)'
libreport-2.17.15/src/lib/copyfd.c:198:7: enter_function: entry to 'libreport_copy_file_ext_at'
libreport-2.17.15/src/lib/copyfd.c:201:15: acquire_resource: opened here
libreport-2.17.15/src/lib/copyfd.c:202:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/copyfd.c:208:9: branch_false: ...to here
libreport-2.17.15/src/lib/copyfd.c:208:9: call_function: calling 'libreport_copyfd_ext_at' from 'libreport_copy_file_ext_at'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
libreport-2.17.15/src/lib/copyfd.c:133:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(src_name, src_flags)'
libreport-2.17.15/src/lib/copyfd.c:198:7: enter_function: entry to 'libreport_copy_file_ext_at'
libreport-2.17.15/src/lib/copyfd.c:201:15: acquire_resource: opened here
libreport-2.17.15/src/lib/copyfd.c:202:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/copyfd.c:208:9: branch_false: ...to here
libreport-2.17.15/src/lib/copyfd.c:208:9: call_function: calling 'libreport_copyfd_ext_at' from 'libreport_copy_file_ext_at'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
libreport-2.17.15/src/lib/copyfd.c:136:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(src_name, src_flags)'
libreport-2.17.15/src/lib/copyfd.c:198:7: enter_function: entry to 'libreport_copy_file_ext_at'
libreport-2.17.15/src/lib/copyfd.c:201:15: acquire_resource: opened here
libreport-2.17.15/src/lib/copyfd.c:202:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/copyfd.c:208:9: branch_false: ...to here
libreport-2.17.15/src/lib/copyfd.c:208:9: call_function: calling 'libreport_copyfd_ext_at' from 'libreport_copy_file_ext_at'
Error: COMPILER_WARNING (CWE-477): [#def17]
libreport-2.17.15/src/lib/curl.c: scope_hint: In function 'post'
libreport-2.17.15/src/lib/curl.c:426:9: warning[-Wdeprecated-declarations]: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init()
libreport-2.17.15/src/include/libreport_curl.h:22: included_from: Included from here.
libreport-2.17.15/src/lib/curl.c:21: included_from: Included from here.
/usr/include/curl/curl.h:2628:1: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def18]
libreport-2.17.15/src/lib/curl.c:426:9: warning[-Wdeprecated-declarations]: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init()
Error: COMPILER_WARNING (CWE-477): [#def19]
libreport-2.17.15/src/lib/curl.c:427:25: warning[-Wdeprecated-declarations]: 'CURLFORM_PTRNAME' is deprecated: since 7.56.0. Use curl_mime_name()
/usr/include/curl/curl.h:2554:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def20]
libreport-2.17.15/src/lib/curl.c:427:25: warning[-Wdeprecated-declarations]: 'CURLFORM_PTRNAME' is deprecated: since 7.56.0. Use curl_mime_name()
Error: COMPILER_WARNING (CWE-477): [#def21]
libreport-2.17.15/src/lib/curl.c:429:25: warning[-Wdeprecated-declarations]: 'CURLFORM_STREAM' is deprecated: since 7.56.0. Use curl_mime_data_cb()
/usr/include/curl/curl.h:2574:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def22]
libreport-2.17.15/src/lib/curl.c:429:25: warning[-Wdeprecated-declarations]: 'CURLFORM_STREAM' is deprecated: since 7.56.0. Use curl_mime_data_cb()
Error: COMPILER_WARNING (CWE-477): [#def23]
libreport-2.17.15/src/lib/curl.c:430:25: warning[-Wdeprecated-declarations]: 'CURLFORM_CONTENTSLENGTH' is deprecated: since 7.56.0. Use curl_mime_data()
/usr/include/curl/curl.h:2558:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def24]
libreport-2.17.15/src/lib/curl.c:430:25: warning[-Wdeprecated-declarations]: 'CURLFORM_CONTENTSLENGTH' is deprecated: since 7.56.0. Use curl_mime_data()
Error: COMPILER_WARNING (CWE-477): [#def25]
libreport-2.17.15/src/lib/curl.c:432:25: warning[-Wdeprecated-declarations]: 'CURLFORM_CONTENTTYPE' is deprecated: since 7.56.0. Use curl_mime_type()
/usr/include/curl/curl.h:2568:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def26]
libreport-2.17.15/src/lib/curl.c:432:25: warning[-Wdeprecated-declarations]: 'CURLFORM_CONTENTTYPE' is deprecated: since 7.56.0. Use curl_mime_type()
Error: COMPILER_WARNING (CWE-477): [#def27]
libreport-2.17.15/src/lib/curl.c:433:25: warning[-Wdeprecated-declarations]: 'CURLFORM_FILENAME' is deprecated: since 7.56.0. Use curl_mime_filename()
/usr/include/curl/curl.h:2570:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def28]
libreport-2.17.15/src/lib/curl.c:433:25: warning[-Wdeprecated-declarations]: 'CURLFORM_FILENAME' is deprecated: since 7.56.0. Use curl_mime_filename()
Error: COMPILER_WARNING (CWE-477): [#def29]
libreport-2.17.15/src/lib/curl.c:439:9: warning[-Wdeprecated-declarations]: 'CURLOPT_HTTPPOST' is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST
/usr/include/curl/curl.h:1231:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def30]
libreport-2.17.15/src/lib/curl.c:439:9: warning[-Wdeprecated-declarations]: 'CURLOPT_HTTPPOST' is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST
Error: COMPILER_WARNING (CWE-477): [#def31]
libreport-2.17.15/src/lib/curl.c:443:9: warning[-Wdeprecated-declarations]: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init()
/usr/include/curl/curl.h:2628:1: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def32]
libreport-2.17.15/src/lib/curl.c:443:9: warning[-Wdeprecated-declarations]: 'curl_formadd' is deprecated: since 7.56.0. Use curl_mime_init()
Error: COMPILER_WARNING (CWE-477): [#def33]
libreport-2.17.15/src/lib/curl.c:444:25: warning[-Wdeprecated-declarations]: 'CURLFORM_PTRNAME' is deprecated: since 7.56.0. Use curl_mime_name()
/usr/include/curl/curl.h:2554:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def34]
libreport-2.17.15/src/lib/curl.c:444:25: warning[-Wdeprecated-declarations]: 'CURLFORM_PTRNAME' is deprecated: since 7.56.0. Use curl_mime_name()
Error: COMPILER_WARNING (CWE-477): [#def35]
libreport-2.17.15/src/lib/curl.c:451:25: warning[-Wdeprecated-declarations]: 'CURLFORM_BUFFER' is deprecated: since 7.56.0. Use curl_mime_filename()
/usr/include/curl/curl.h:2564:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def36]
libreport-2.17.15/src/lib/curl.c:451:25: warning[-Wdeprecated-declarations]: 'CURLFORM_BUFFER' is deprecated: since 7.56.0. Use curl_mime_filename()
Error: COMPILER_WARNING (CWE-477): [#def37]
libreport-2.17.15/src/lib/curl.c:452:25: warning[-Wdeprecated-declarations]: 'CURLFORM_BUFFERPTR' is deprecated: since 7.56.0. Use curl_mime_data()
/usr/include/curl/curl.h:2565:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def38]
libreport-2.17.15/src/lib/curl.c:452:25: warning[-Wdeprecated-declarations]: 'CURLFORM_BUFFERPTR' is deprecated: since 7.56.0. Use curl_mime_data()
Error: COMPILER_WARNING (CWE-477): [#def39]
libreport-2.17.15/src/lib/curl.c:453:25: warning[-Wdeprecated-declarations]: 'CURLFORM_BUFFERLENGTH' is deprecated: since 7.56.0. Use curl_mime_data()
/usr/include/curl/curl.h:2566:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def40]
libreport-2.17.15/src/lib/curl.c:453:25: warning[-Wdeprecated-declarations]: 'CURLFORM_BUFFERLENGTH' is deprecated: since 7.56.0. Use curl_mime_data()
Error: COMPILER_WARNING (CWE-477): [#def41]
libreport-2.17.15/src/lib/curl.c:455:25: warning[-Wdeprecated-declarations]: 'CURLFORM_CONTENTTYPE' is deprecated: since 7.56.0. Use curl_mime_type()
/usr/include/curl/curl.h:2568:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def42]
libreport-2.17.15/src/lib/curl.c:455:25: warning[-Wdeprecated-declarations]: 'CURLFORM_CONTENTTYPE' is deprecated: since 7.56.0. Use curl_mime_type()
Error: COMPILER_WARNING (CWE-477): [#def43]
libreport-2.17.15/src/lib/curl.c:459:9: warning[-Wdeprecated-declarations]: 'CURLOPT_HTTPPOST' is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST
/usr/include/curl/curl.h:1231:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def44]
libreport-2.17.15/src/lib/curl.c:459:9: warning[-Wdeprecated-declarations]: 'CURLOPT_HTTPPOST' is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST
Error: COMPILER_WARNING (CWE-477): [#def45]
libreport-2.17.15/src/lib/curl.c:565:9: warning[-Wdeprecated-declarations]: 'curl_formfree' is deprecated: since 7.56.0. Use curl_mime_free()
/usr/include/curl/curl.h:2664:1: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def46]
libreport-2.17.15/src/lib/curl.c:565:9: warning[-Wdeprecated-declarations]: 'curl_formfree' is deprecated: since 7.56.0. Use curl_mime_free()
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
libreport-2.17.15/src/lib/dirsize.c:34:18: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(pPath)'
libreport-2.17.15/src/lib/dirsize.c:74:8: enter_function: entry to 'libreport_get_dirsize_find_largest_dir'
libreport-2.17.15/src/lib/dirsize.c:84:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dirsize.c:87:23: branch_false: ...to here
libreport-2.17.15/src/lib/dirsize.c:92:12: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/dirsize.c:94:37: branch_true: ...to here
libreport-2.17.15/src/lib/dirsize.c:99:12: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/dirsize.c:101:13: branch_true: ...to here
libreport-2.17.15/src/lib/dirsize.c:102:21: call_function: calling 'libreport_get_dirsize' from 'libreport_get_dirsize_find_largest_dir'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
libreport-2.17.15/src/lib/dirsize.c:92:18: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(pPath)'
libreport-2.17.15/src/lib/dirsize.c:83:15: acquire_memory: allocated here
libreport-2.17.15/src/lib/dirsize.c:84:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dirsize.c:87:23: branch_false: ...to here
libreport-2.17.15/src/lib/dirsize.c:92:18: throw: if 'readdir' throws an exception...
libreport-2.17.15/src/lib/dirsize.c:92:18: danger: 'opendir(pPath)' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
libreport-2.17.15/src/lib/dump_dir.c:213:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&reopen_buf, 0)'
libreport-2.17.15/src/lib/dump_dir.c:1887:5: enter_function: entry to 'dd_load_uint64'
libreport-2.17.15/src/lib/dump_dir.c:1890:21: call_function: calling 'read_number_from_file_at' from 'dd_load_uint64'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
libreport-2.17.15/src/lib/dump_dir.c:886:5: warning[-Wanalyzer-malloc-leak]: leak of 'd'
libreport-2.17.15/src/lib/dump_dir.c:1411:6: enter_function: entry to 'dd_sanitize_mode_and_owner'
libreport-2.17.15/src/lib/dump_dir.c:1423:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dump_dir.c:1426:10: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1426:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dump_dir.c:1429:5: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1429:5: call_function: calling 'dd_init_next_file' from 'dd_sanitize_mode_and_owner'
libreport-2.17.15/src/lib/dump_dir.c:1429:5: return_function: returning to 'dd_sanitize_mode_and_owner' from 'dd_init_next_file'
libreport-2.17.15/src/lib/dump_dir.c:1431:12: call_function: calling 'dd_get_next_file' from 'dd_sanitize_mode_and_owner'
libreport-2.17.15/src/lib/dump_dir.c:1431:12: return_function: returning to 'dd_sanitize_mode_and_owner' from 'dd_get_next_file'
libreport-2.17.15/src/lib/dump_dir.c:1431:12: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dump_dir.c:1456:5: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1456:5: call_function: calling 'dd_sanitize_mode_meta_data' from 'dd_sanitize_mode_and_owner'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def51]
libreport-2.17.15/src/lib/dump_dir.c:886:5: warning[-Wanalyzer-null-argument]: use of NULL 'd' where non-null expected
libreport-2.17.15/src/lib/dump_dir.c:1411:6: enter_function: entry to 'dd_sanitize_mode_and_owner'
libreport-2.17.15/src/lib/dump_dir.c:1423:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dump_dir.c:1426:10: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1426:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dump_dir.c:1429:5: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1429:5: call_function: calling 'dd_init_next_file' from 'dd_sanitize_mode_and_owner'
libreport-2.17.15/src/lib/dump_dir.c:1429:5: return_function: returning to 'dd_sanitize_mode_and_owner' from 'dd_init_next_file'
libreport-2.17.15/src/lib/dump_dir.c:1431:12: call_function: calling 'dd_get_next_file' from 'dd_sanitize_mode_and_owner'
libreport-2.17.15/src/lib/dump_dir.c:1431:12: return_function: returning to 'dd_sanitize_mode_and_owner' from 'dd_get_next_file'
libreport-2.17.15/src/lib/dump_dir.c:1431:12: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dump_dir.c:1456:5: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1456:5: call_function: calling 'dd_sanitize_mode_meta_data' from 'dd_sanitize_mode_and_owner'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
libreport-2.17.15/src/lib/dump_dir.c:922:5: warning[-Wanalyzer-malloc-leak]: leak of 'd'
libreport-2.17.15/src/lib/dump_dir.c:1291:5: enter_function: entry to 'dd_reset_ownership'
libreport-2.17.15/src/lib/dump_dir.c:1293:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dump_dir.c:1296:43: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1303:9: call_function: calling 'dd_chown_meta_data' from 'dd_reset_ownership'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def53]
libreport-2.17.15/src/lib/dump_dir.c:922:5: warning[-Wanalyzer-null-argument]: use of NULL 'd' where non-null expected
libreport-2.17.15/src/lib/dump_dir.c:1291:5: enter_function: entry to 'dd_reset_ownership'
libreport-2.17.15/src/lib/dump_dir.c:1293:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dump_dir.c:1296:43: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1303:9: call_function: calling 'dd_chown_meta_data' from 'dd_reset_ownership'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
libreport-2.17.15/src/lib/dump_dir.c:1480:20: warning[-Wanalyzer-malloc-leak]: leak of 'd'
libreport-2.17.15/src/lib/dump_dir.c:1460:12: enter_function: entry to 'delete_file_dir'
libreport-2.17.15/src/lib/dump_dir.c:1463:15: call_function: calling 'fdreopen' from 'delete_file_dir'
libreport-2.17.15/src/lib/dump_dir.c:1463:15: return_function: returning to 'delete_file_dir' from 'fdreopen'
libreport-2.17.15/src/lib/dump_dir.c:1464:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dump_dir.c:1464:8: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1480:20: throw: if 'readdir' throws an exception...
libreport-2.17.15/src/lib/dump_dir.c:1480:20: danger: 'd' leaks here; was allocated at [(6)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def55]
libreport-2.17.15/src/lib/dump_dir.c:1480:20: warning[-Wanalyzer-null-argument]: use of NULL 'd' where non-null expected
libreport-2.17.15/src/lib/dump_dir.c:1460:12: enter_function: entry to 'delete_file_dir'
libreport-2.17.15/src/lib/dump_dir.c:1463:15: call_function: calling 'fdreopen' from 'delete_file_dir'
libreport-2.17.15/src/lib/dump_dir.c:1463:15: return_function: returning to 'delete_file_dir' from 'fdreopen'
libreport-2.17.15/src/lib/dump_dir.c:1464:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/dump_dir.c:1464:8: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1480:20: danger: argument 1 ('d') NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
libreport-2.17.15/src/lib/dump_dir.c:1706:28: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
libreport-2.17.15/src/lib/dump_dir.c:1692:8: branch_false: following 'false' branch (when 'fd != -1')...
libreport-2.17.15/src/lib/dump_dir.c:1702:16: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1702:16: acquire_memory: allocated here
libreport-2.17.15/src/lib/dump_dir.c:1703:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
libreport-2.17.15/src/lib/dump_dir.c:1706:28: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1706:28: throw: if 'g_string_new' throws an exception...
libreport-2.17.15/src/lib/dump_dir.c:1706:28: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
libreport-2.17.15/src/lib/dump_dir.c:1709:18: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
libreport-2.17.15/src/lib/dump_dir.c:1692:8: branch_false: following 'false' branch (when 'fd != -1')...
libreport-2.17.15/src/lib/dump_dir.c:1702:16: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1702:16: acquire_memory: allocated here
libreport-2.17.15/src/lib/dump_dir.c:1703:8: branch_false: following 'false' branch (when 'fp' is non-NULL)...
libreport-2.17.15/src/lib/dump_dir.c:1706:28: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:1709:18: throw: if 'fgetc' throws an exception...
libreport-2.17.15/src/lib/dump_dir.c:1709:18: danger: 'fp' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def58]
libreport-2.17.15/src/lib/dump_dir.c:2125:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'opendir_fd'
libreport-2.17.15/src/lib/dump_dir.c:2096:6: enter_function: entry to 'dd_init_next_file'
libreport-2.17.15/src/lib/dump_dir.c:2100:22: acquire_resource: opened here
libreport-2.17.15/src/lib/dump_dir.c:2101:8: branch_false: following 'false' branch (when 'opendir_fd >= 0')...
libreport-2.17.15/src/lib/dump_dir.c:2107:5: branch_false: ...to here
libreport-2.17.15/src/lib/dump_dir.c:2107:5: call_function: calling 'dd_clear_next_file' from 'dd_init_next_file'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def59]
libreport-2.17.15/src/lib/event_xml_parser.c:521:42: warning[-Wanalyzer-null-argument]: use of NULL 'parse_data.cur_locale' where non-null expected
libreport-2.17.15/src/lib/event_xml_parser.c:510:6: enter_function: entry to 'load_event_description_from_file'
libreport-2.17.15/src/lib/event_xml_parser.c:513:26: release_memory: 'parse_data.cur_locale' is NULL
libreport-2.17.15/src/lib/event_xml_parser.c:513:26: release_memory: 'parse_data.cur_locale' is NULL
libreport-2.17.15/src/lib/event_xml_parser.c:521:42: danger: argument 1 ('<unknown>') NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
libreport-2.17.15/src/lib/event_xml_parser.c:542:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
libreport-2.17.15/src/lib/event_xml_parser.c:510:6: enter_function: entry to 'load_event_description_from_file'
libreport-2.17.15/src/lib/event_xml_parser.c:535:17: acquire_resource: opened here
libreport-2.17.15/src/lib/event_xml_parser.c:536:8: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/event_xml_parser.c:536:8: branch_true: ...to here
libreport-2.17.15/src/lib/event_xml_parser.c:540:16: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/event_xml_parser.c:542:13: branch_true: ...to here
libreport-2.17.15/src/lib/event_xml_parser.c:542:13: throw: if 'g_markup_parse_context_parse' throws an exception...
libreport-2.17.15/src/lib/event_xml_parser.c:542:13: danger: 'fopen(filename, "r")' leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
libreport-2.17.15/src/lib/event_xml_parser.c:542:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
libreport-2.17.15/src/lib/event_xml_parser.c:510:6: enter_function: entry to 'load_event_description_from_file'
libreport-2.17.15/src/lib/event_xml_parser.c:535:17: acquire_memory: allocated here
libreport-2.17.15/src/lib/event_xml_parser.c:536:8: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/event_xml_parser.c:536:8: branch_true: ...to here
libreport-2.17.15/src/lib/event_xml_parser.c:540:16: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/event_xml_parser.c:542:13: branch_true: ...to here
libreport-2.17.15/src/lib/event_xml_parser.c:542:13: throw: if 'g_markup_parse_context_parse' throws an exception...
libreport-2.17.15/src/lib/event_xml_parser.c:542:13: danger: 'fopen(filename, "r")' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
libreport-2.17.15/src/lib/file_list.c:32:20: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(path)'
libreport-2.17.15/src/lib/file_list.c:26:11: acquire_memory: allocated here
libreport-2.17.15/src/lib/file_list.c:27:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/file_list.c:27:8: branch_false: ...to here
libreport-2.17.15/src/lib/file_list.c:32:20: throw: if 'readdir' throws an exception...
libreport-2.17.15/src/lib/file_list.c:32:20: danger: 'opendir(path)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
libreport-2.17.15/src/lib/get_cmdline.c:264:22: warning[-Wanalyzer-malloc-leak]: leak of 'fdopendir(openat(pid_proc_fd, "fd", 720896))'
libreport-2.17.15/src/lib/get_cmdline.c:326:5: enter_function: entry to 'libreport_dump_fd_info_ext'
libreport-2.17.15/src/lib/get_cmdline.c:335:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:341:19: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:342:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:348:15: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:349:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:355:12: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:356:9: call_function: calling 'libreport_dump_fd_info_at' from 'libreport_dump_fd_info_ext'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
libreport-2.17.15/src/lib/get_cmdline.c:274:16: warning[-Wanalyzer-malloc-leak]: leak of 'fdopendir(openat(pid_proc_fd, "fd", 720896))'
libreport-2.17.15/src/lib/get_cmdline.c:326:5: enter_function: entry to 'libreport_dump_fd_info_ext'
libreport-2.17.15/src/lib/get_cmdline.c:335:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:341:19: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:342:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:348:15: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:349:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:355:12: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:356:9: call_function: calling 'libreport_dump_fd_info_at' from 'libreport_dump_fd_info_ext'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def65]
libreport-2.17.15/src/lib/get_cmdline.c:341:19: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(proc_pid_fd_path, 2818048)'
libreport-2.17.15/src/lib/get_cmdline.c:334:22: acquire_resource: opened here
libreport-2.17.15/src/lib/get_cmdline.c:335:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:341:19: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:341:19: throw: if 'openat' throws an exception...
libreport-2.17.15/src/lib/get_cmdline.c:341:19: danger: 'open(proc_pid_fd_path, 2818048)' leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def66]
libreport-2.17.15/src/lib/get_cmdline.c:403:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&path, 0)'
libreport-2.17.15/src/lib/get_cmdline.c:457:5: enter_function: entry to 'libreport_get_env_variable'
libreport-2.17.15/src/lib/get_cmdline.c:462:23: acquire_resource: opened here
libreport-2.17.15/src/lib/get_cmdline.c:463:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:469:19: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:469:19: call_function: calling 'libreport_get_env_variable_ext' from 'libreport_get_env_variable'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
libreport-2.17.15/src/lib/get_cmdline.c:410:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&path, 0)'
libreport-2.17.15/src/lib/get_cmdline.c:457:5: enter_function: entry to 'libreport_get_env_variable'
libreport-2.17.15/src/lib/get_cmdline.c:462:23: acquire_resource: opened here
libreport-2.17.15/src/lib/get_cmdline.c:463:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:469:19: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:469:19: call_function: calling 'libreport_get_env_variable_ext' from 'libreport_get_env_variable'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def68]
libreport-2.17.15/src/lib/get_cmdline.c:411:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&path, 0)'
libreport-2.17.15/src/lib/get_cmdline.c:457:5: enter_function: entry to 'libreport_get_env_variable'
libreport-2.17.15/src/lib/get_cmdline.c:462:23: acquire_resource: opened here
libreport-2.17.15/src/lib/get_cmdline.c:463:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:469:19: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:469:19: call_function: calling 'libreport_get_env_variable_ext' from 'libreport_get_env_variable'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
libreport-2.17.15/src/lib/get_cmdline.c:421:21: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&path, 0)'
libreport-2.17.15/src/lib/get_cmdline.c:457:5: enter_function: entry to 'libreport_get_env_variable'
libreport-2.17.15/src/lib/get_cmdline.c:462:23: acquire_resource: opened here
libreport-2.17.15/src/lib/get_cmdline.c:463:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:469:19: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:469:19: call_function: calling 'libreport_get_env_variable_ext' from 'libreport_get_env_variable'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
libreport-2.17.15/src/lib/get_cmdline.c:421:21: warning[-Wanalyzer-malloc-leak]: leak of 'fenv'
libreport-2.17.15/src/lib/get_cmdline.c:401:8: branch_false: following 'false' branch (when 'workfd >= 0')...
libreport-2.17.15/src/lib/get_cmdline.c:407:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:407:18: acquire_memory: allocated here
libreport-2.17.15/src/lib/get_cmdline.c:408:8: branch_false: following 'false' branch (when 'fenv' is non-NULL)...
libreport-2.17.15/src/lib/get_cmdline.c:415:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: following 'true' branch (when 'c != -1')...
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:421:21: throw: if 'fgetc' throws an exception...
libreport-2.17.15/src/lib/get_cmdline.c:421:21: danger: 'fenv' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
libreport-2.17.15/src/lib/get_cmdline.c:421:45: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&path, 0)'
libreport-2.17.15/src/lib/get_cmdline.c:457:5: enter_function: entry to 'libreport_get_env_variable'
libreport-2.17.15/src/lib/get_cmdline.c:462:23: acquire_resource: opened here
libreport-2.17.15/src/lib/get_cmdline.c:463:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:469:19: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:469:19: call_function: calling 'libreport_get_env_variable_ext' from 'libreport_get_env_variable'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libreport-2.17.15/src/lib/get_cmdline.c:431:21: warning[-Wanalyzer-malloc-leak]: leak of 'fenv'
libreport-2.17.15/src/lib/get_cmdline.c:401:8: branch_false: following 'false' branch (when 'workfd >= 0')...
libreport-2.17.15/src/lib/get_cmdline.c:407:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:407:18: acquire_memory: allocated here
libreport-2.17.15/src/lib/get_cmdline.c:408:8: branch_false: following 'false' branch (when 'fenv' is non-NULL)...
libreport-2.17.15/src/lib/get_cmdline.c:415:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: following 'true' branch (when 'c != -1')...
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:421:16: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/get_cmdline.c:421:45: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:431:21: throw: if 'fgetc' throws an exception...
libreport-2.17.15/src/lib/get_cmdline.c:431:21: danger: 'fenv' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
libreport-2.17.15/src/lib/get_cmdline.c:439:18: warning[-Wanalyzer-malloc-leak]: leak of 'fenv'
libreport-2.17.15/src/lib/get_cmdline.c:401:8: branch_false: following 'false' branch (when 'workfd >= 0')...
libreport-2.17.15/src/lib/get_cmdline.c:407:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:407:18: acquire_memory: allocated here
libreport-2.17.15/src/lib/get_cmdline.c:408:8: branch_false: following 'false' branch (when 'fenv' is non-NULL)...
libreport-2.17.15/src/lib/get_cmdline.c:415:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: following 'true' branch (when 'c != -1')...
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:421:16: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/get_cmdline.c:421:45: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:439:18: throw: if 'g_malloc' throws an exception...
libreport-2.17.15/src/lib/get_cmdline.c:439:18: danger: 'fenv' leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
libreport-2.17.15/src/lib/get_cmdline.c:442:13: warning[-Wanalyzer-malloc-leak]: leak of 'fenv'
libreport-2.17.15/src/lib/get_cmdline.c:401:8: branch_false: following 'false' branch (when 'workfd >= 0')...
libreport-2.17.15/src/lib/get_cmdline.c:407:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:407:18: acquire_memory: allocated here
libreport-2.17.15/src/lib/get_cmdline.c:408:8: branch_false: following 'false' branch (when 'fenv' is non-NULL)...
libreport-2.17.15/src/lib/get_cmdline.c:415:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: following 'true' branch (when 'c != -1')...
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:421:16: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/get_cmdline.c:421:45: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:442:13: throw: if 'fseek' throws an exception...
libreport-2.17.15/src/lib/get_cmdline.c:442:13: danger: 'fenv' leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def75]
libreport-2.17.15/src/lib/get_cmdline.c:443:13: warning[-Wanalyzer-malloc-leak]: leak of 'fenv'
libreport-2.17.15/src/lib/get_cmdline.c:401:8: branch_false: following 'false' branch (when 'workfd >= 0')...
libreport-2.17.15/src/lib/get_cmdline.c:407:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:407:18: acquire_memory: allocated here
libreport-2.17.15/src/lib/get_cmdline.c:408:8: branch_false: following 'false' branch (when 'fenv' is non-NULL)...
libreport-2.17.15/src/lib/get_cmdline.c:415:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: following 'true' branch (when 'c != -1')...
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:421:16: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/get_cmdline.c:421:45: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:442:12: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/get_cmdline.c:443:13: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:443:13: throw: if 'log_and_die_wrapper' throws an exception...
libreport-2.17.15/src/lib/get_cmdline.c:443:13: danger: 'fenv' leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
libreport-2.17.15/src/lib/get_cmdline.c:446:13: warning[-Wanalyzer-malloc-leak]: leak of 'fenv'
libreport-2.17.15/src/lib/get_cmdline.c:401:8: branch_false: following 'false' branch (when 'workfd >= 0')...
libreport-2.17.15/src/lib/get_cmdline.c:407:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:407:18: acquire_memory: allocated here
libreport-2.17.15/src/lib/get_cmdline.c:408:8: branch_false: following 'false' branch (when 'fenv' is non-NULL)...
libreport-2.17.15/src/lib/get_cmdline.c:415:18: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: following 'true' branch (when 'c != -1')...
libreport-2.17.15/src/lib/get_cmdline.c:417:12: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:421:16: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/get_cmdline.c:421:45: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:442:12: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:445:13: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:445:12: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/get_cmdline.c:446:13: branch_true: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:446:13: throw: if 'log_and_die_wrapper' throws an exception...
libreport-2.17.15/src/lib/get_cmdline.c:446:13: danger: 'fenv' leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
libreport-2.17.15/src/lib/get_cmdline.c:492:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'cpid_proc_fd'
libreport-2.17.15/src/lib/get_cmdline.c:830:5: enter_function: entry to 'libreport_get_pid_of_container_at'
libreport-2.17.15/src/lib/get_cmdline.c:834:24: acquire_resource: opened here
libreport-2.17.15/src/lib/get_cmdline.c:835:8: branch_false: following 'false' branch (when 'cpid_proc_fd >= 0')...
libreport-2.17.15/src/lib/get_cmdline.c:842:9: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:842:9: call_function: calling 'libreport_get_ns_ids_at' from 'libreport_get_pid_of_container_at'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
libreport-2.17.15/src/lib/get_cmdline.c:618:17: warning[-Wanalyzer-malloc-leak]: leak of 'fin'
libreport-2.17.15/src/lib/get_cmdline.c:907:5: enter_function: entry to 'libreport_process_has_own_root_at'
libreport-2.17.15/src/lib/get_cmdline.c:913:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:920:17: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:920:17: acquire_memory: allocated here
libreport-2.17.15/src/lib/get_cmdline.c:921:8: branch_false: following 'false' branch (when 'fin' is non-NULL)...
libreport-2.17.15/src/lib/get_cmdline.c:930:5: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:932:9: call_function: calling 'libreport_get_mountinfo_for_mount_point' from 'libreport_process_has_own_root_at'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
libreport-2.17.15/src/lib/get_cmdline.c:658:19: warning[-Wanalyzer-malloc-leak]: leak of 'fin'
libreport-2.17.15/src/lib/get_cmdline.c:907:5: enter_function: entry to 'libreport_process_has_own_root_at'
libreport-2.17.15/src/lib/get_cmdline.c:913:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:920:17: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:920:17: acquire_memory: allocated here
libreport-2.17.15/src/lib/get_cmdline.c:921:8: branch_false: following 'false' branch (when 'fin' is non-NULL)...
libreport-2.17.15/src/lib/get_cmdline.c:930:5: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:932:9: call_function: calling 'libreport_get_mountinfo_for_mount_point' from 'libreport_process_has_own_root_at'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
libreport-2.17.15/src/lib/get_cmdline.c:661:13: warning[-Wanalyzer-malloc-leak]: leak of 'fin'
libreport-2.17.15/src/lib/get_cmdline.c:907:5: enter_function: entry to 'libreport_process_has_own_root_at'
libreport-2.17.15/src/lib/get_cmdline.c:913:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:920:17: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:920:17: acquire_memory: allocated here
libreport-2.17.15/src/lib/get_cmdline.c:921:8: branch_false: following 'false' branch (when 'fin' is non-NULL)...
libreport-2.17.15/src/lib/get_cmdline.c:930:5: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:932:9: call_function: calling 'libreport_get_mountinfo_for_mount_point' from 'libreport_process_has_own_root_at'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
libreport-2.17.15/src/lib/get_cmdline.c:675:13: warning[-Wanalyzer-malloc-leak]: leak of 'fin'
libreport-2.17.15/src/lib/get_cmdline.c:907:5: enter_function: entry to 'libreport_process_has_own_root_at'
libreport-2.17.15/src/lib/get_cmdline.c:913:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:920:17: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:920:17: acquire_memory: allocated here
libreport-2.17.15/src/lib/get_cmdline.c:921:8: branch_false: following 'false' branch (when 'fin' is non-NULL)...
libreport-2.17.15/src/lib/get_cmdline.c:930:5: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:932:9: call_function: calling 'libreport_get_mountinfo_for_mount_point' from 'libreport_process_has_own_root_at'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def82]
libreport-2.17.15/src/lib/get_cmdline.c:899:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'libreport_open_proc_pid_dir(pid)'
libreport-2.17.15/src/lib/get_cmdline.c:475:5: enter_function: entry to 'libreport_get_ns_ids'
libreport-2.17.15/src/lib/get_cmdline.c:477:23: call_function: calling 'libreport_open_proc_pid_dir' from 'libreport_get_ns_ids'
libreport-2.17.15/src/lib/get_cmdline.c:477:23: return_function: returning to 'libreport_get_ns_ids' from 'libreport_open_proc_pid_dir'
libreport-2.17.15/src/lib/get_cmdline.c:478:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:484:13: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:484:13: call_function: calling 'libreport_get_ns_ids_at' from 'libreport_get_ns_ids'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def83]
libreport-2.17.15/src/lib/get_cmdline.c:899:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'libreport_open_proc_pid_dir(ppid)'
libreport-2.17.15/src/lib/get_cmdline.c:830:5: enter_function: entry to 'libreport_get_pid_of_container_at'
libreport-2.17.15/src/lib/get_cmdline.c:835:8: branch_false: following 'false' branch (when 'cpid_proc_fd >= 0')...
libreport-2.17.15/src/lib/get_cmdline.c:842:9: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:842:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:842:8: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:851:12: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:857:13: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:857:12: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:860:34: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:860:34: call_function: calling 'libreport_open_proc_pid_dir' from 'libreport_get_pid_of_container_at'
libreport-2.17.15/src/lib/get_cmdline.c:860:34: return_function: returning to 'libreport_get_pid_of_container_at' from 'libreport_open_proc_pid_dir'
libreport-2.17.15/src/lib/get_cmdline.c:861:12: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:869:13: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:869:13: call_function: calling 'libreport_get_ns_ids_at' from 'libreport_get_pid_of_container_at'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def84]
libreport-2.17.15/src/lib/get_cmdline.c:899:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'libreport_open_proc_pid_dir(tested_pid)'
libreport-2.17.15/src/lib/get_cmdline.c:524:5: enter_function: entry to 'libreport_dump_namespace_diff_ext'
libreport-2.17.15/src/lib/get_cmdline.c:527:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:533:24: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:535:28: call_function: calling 'libreport_open_proc_pid_dir' from 'libreport_dump_namespace_diff_ext'
libreport-2.17.15/src/lib/get_cmdline.c:535:28: return_function: returning to 'libreport_dump_namespace_diff_ext' from 'libreport_open_proc_pid_dir'
libreport-2.17.15/src/lib/get_cmdline.c:536:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:543:30: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:543:30: call_function: calling 'libreport_open_proc_pid_dir' from 'libreport_dump_namespace_diff_ext'
libreport-2.17.15/src/lib/get_cmdline.c:543:30: return_function: returning to 'libreport_dump_namespace_diff_ext' from 'libreport_open_proc_pid_dir'
libreport-2.17.15/src/lib/get_cmdline.c:544:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:552:13: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:552:13: call_function: calling 'libreport_dump_namespace_diff_at' from 'libreport_dump_namespace_diff_ext'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def85]
libreport-2.17.15/src/lib/get_cmdline.c:899:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&proc_dir_path, 2818048)'
libreport-2.17.15/src/lib/get_cmdline.c:524:5: enter_function: entry to 'libreport_dump_namespace_diff_ext'
libreport-2.17.15/src/lib/get_cmdline.c:527:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:533:24: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:535:28: call_function: calling 'libreport_open_proc_pid_dir' from 'libreport_dump_namespace_diff_ext'
libreport-2.17.15/src/lib/get_cmdline.c:535:28: return_function: returning to 'libreport_dump_namespace_diff_ext' from 'libreport_open_proc_pid_dir'
libreport-2.17.15/src/lib/get_cmdline.c:536:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:543:30: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:543:30: call_function: calling 'libreport_open_proc_pid_dir' from 'libreport_dump_namespace_diff_ext'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
libreport-2.17.15/src/lib/get_cmdline.c:930:5: warning[-Wanalyzer-malloc-leak]: leak of 'fin'
libreport-2.17.15/src/lib/get_cmdline.c:913:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/get_cmdline.c:920:17: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:920:17: acquire_memory: allocated here
libreport-2.17.15/src/lib/get_cmdline.c:921:8: branch_false: following 'false' branch (when 'fin' is non-NULL)...
libreport-2.17.15/src/lib/get_cmdline.c:930:5: branch_false: ...to here
libreport-2.17.15/src/lib/get_cmdline.c:930:5: throw: if 'fseek' throws an exception...
libreport-2.17.15/src/lib/get_cmdline.c:930:5: danger: 'fin' leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
Error: COMPILER_WARNING (CWE-704): [#def87]
libreport-2.17.15/src/lib/make_descr.c: scope_hint: In function 'make_description_item_multiline'
libreport-2.17.15/src/lib/make_descr.c:32:17: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def88]
libreport-2.17.15/src/lib/make_descr.c:32:17: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
libreport-2.17.15/src/lib/problem_report.c:112:23: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
libreport-2.17.15/src/lib/problem_report.c:1194:1: enter_function: entry to 'problem_formatter_load_string'
libreport-2.17.15/src/lib/problem_report.c:1197:8: branch_true: following 'true' branch (when 'len != 0')...
libreport-2.17.15/src/lib/problem_report.c:1199:20: branch_true: ...to here
libreport-2.17.15/src/lib/problem_report.c:1199:20: acquire_memory: allocated here
libreport-2.17.15/src/lib/problem_report.c:1200:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
libreport-2.17.15/src/lib/problem_report.c:1206:29: branch_false: ...to here
libreport-2.17.15/src/lib/problem_report.c:1206:29: call_function: calling 'load_stream' from 'problem_formatter_load_string'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
libreport-2.17.15/src/lib/problem_report.c:204:16: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
libreport-2.17.15/src/lib/problem_report.c:1194:1: enter_function: entry to 'problem_formatter_load_string'
libreport-2.17.15/src/lib/problem_report.c:1197:8: branch_true: following 'true' branch (when 'len != 0')...
libreport-2.17.15/src/lib/problem_report.c:1199:20: branch_true: ...to here
libreport-2.17.15/src/lib/problem_report.c:1199:20: acquire_memory: allocated here
libreport-2.17.15/src/lib/problem_report.c:1200:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
libreport-2.17.15/src/lib/problem_report.c:1206:29: branch_false: ...to here
libreport-2.17.15/src/lib/problem_report.c:1206:29: call_function: calling 'load_stream' from 'problem_formatter_load_string'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
libreport-2.17.15/src/lib/problem_report.c:207:20: warning[-Wanalyzer-malloc-leak]: leak of 'fp'
libreport-2.17.15/src/lib/problem_report.c:1194:1: enter_function: entry to 'problem_formatter_load_string'
libreport-2.17.15/src/lib/problem_report.c:1197:8: branch_true: following 'true' branch (when 'len != 0')...
libreport-2.17.15/src/lib/problem_report.c:1199:20: branch_true: ...to here
libreport-2.17.15/src/lib/problem_report.c:1199:20: acquire_memory: allocated here
libreport-2.17.15/src/lib/problem_report.c:1200:12: branch_false: following 'false' branch (when 'fp' is non-NULL)...
libreport-2.17.15/src/lib/problem_report.c:1206:29: branch_false: ...to here
libreport-2.17.15/src/lib/problem_report.c:1206:29: call_function: calling 'load_stream' from 'problem_formatter_load_string'
Error: COMPILER_WARNING (CWE-704): [#def92]
libreport-2.17.15/src/lib/problem_report.c: scope_hint: In function 'format_percented_string'
libreport-2.17.15/src/lib/problem_report.c:361:33: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def93]
libreport-2.17.15/src/lib/problem_report.c:361:33: warning[-Wdiscarded-qualifiers]: initialization discards 'const' qualifier from pointer target type
Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
libreport-2.17.15/src/lib/report_result.c:179:9: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
libreport-2.17.15/src/lib/report_result.c:169:18: enter_function: entry to 'report_result_new_with_label_from_env'
libreport-2.17.15/src/lib/report_result.c:177:8: branch_true: following 'true' branch (when 'workflow' is non-NULL)...
libreport-2.17.15/src/lib/report_result.c:179:28: call_function: inlined call to 'g_strdup_inline' from 'report_result_new_with_label_from_env'
libreport-2.17.15/src/lib/report_result.c:179:9: danger: dereference of NULL 'report_result_new_with_label(label)'
Error: COMPILER_WARNING: [#def95]
libreport-2.17.15/src/lib/run_event.c: scope_hint: In function 'load_rule_list'
libreport-2.17.15/src/lib/run_event.c:153:9: warning[-Wunused-but-set-variable=]: variable 'line_counter' set but not used
Error: GCC_ANALYZER_WARNING (CWE-775): [#def96]
libreport-2.17.15/src/lib/run_event.c:158:21: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(conf_file_name, "r")'
libreport-2.17.15/src/lib/run_event.c:803:7: enter_function: entry to 'list_possible_events_problem_data'
libreport-2.17.15/src/lib/run_event.c:805:12: call_function: calling '_list_possible_events' from 'list_possible_events_problem_data'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
libreport-2.17.15/src/lib/run_event.c:158:21: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(conf_file_name, "r")'
libreport-2.17.15/src/lib/run_event.c:803:7: enter_function: entry to 'list_possible_events_problem_data'
libreport-2.17.15/src/lib/run_event.c:805:12: call_function: calling '_list_possible_events' from 'list_possible_events_problem_data'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def98]
libreport-2.17.15/src/lib/spawn.c:111:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/null", 2)'
libreport-2.17.15/src/lib/spawn.c:81:12: branch_false: following 'false' branch (when 'child != -1')...
libreport-2.17.15/src/lib/spawn.c:84:12: branch_false: ...to here
libreport-2.17.15/src/lib/spawn.c:84:12: branch_true: following 'true' branch (when 'child == 0')...
libreport-2.17.15/src/lib/spawn.c:87:20: branch_true: ...to here
libreport-2.17.15/src/lib/spawn.c:104:20: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/spawn.c:110:28: branch_false: ...to here
libreport-2.17.15/src/lib/spawn.c:110:27: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/spawn.c:111:25: branch_true: ...to here
libreport-2.17.15/src/lib/spawn.c:111:25: acquire_resource: opened here
libreport-2.17.15/src/lib/spawn.c:111:25: danger: 'open("/dev/null", 2)' leaks here; was opened at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def99]
libreport-2.17.15/src/lib/spawn.c:117:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/null", 2)'
libreport-2.17.15/src/lib/spawn.c:81:12: branch_false: following 'false' branch (when 'child != -1')...
libreport-2.17.15/src/lib/spawn.c:84:12: branch_false: ...to here
libreport-2.17.15/src/lib/spawn.c:84:12: branch_true: following 'true' branch (when 'child == 0')...
libreport-2.17.15/src/lib/spawn.c:87:20: branch_true: ...to here
libreport-2.17.15/src/lib/spawn.c:113:20: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/spawn.c:116:28: branch_false: ...to here
libreport-2.17.15/src/lib/spawn.c:116:27: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/spawn.c:117:25: branch_true: ...to here
libreport-2.17.15/src/lib/spawn.c:117:25: acquire_resource: opened here
libreport-2.17.15/src/lib/spawn.c:117:25: danger: 'open("/dev/null", 2)' leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def100]
libreport-2.17.15/src/lib/spawn.c:127:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open("/dev/null", 2)'
libreport-2.17.15/src/lib/spawn.c:81:12: branch_false: following 'false' branch (when 'child != -1')...
libreport-2.17.15/src/lib/spawn.c:84:12: branch_false: ...to here
libreport-2.17.15/src/lib/spawn.c:84:12: branch_true: following 'true' branch (when 'child == 0')...
libreport-2.17.15/src/lib/spawn.c:87:20: branch_true: ...to here
libreport-2.17.15/src/lib/spawn.c:123:20: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/spawn.c:126:28: branch_false: ...to here
libreport-2.17.15/src/lib/spawn.c:126:27: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/spawn.c:127:25: branch_true: ...to here
libreport-2.17.15/src/lib/spawn.c:127:25: acquire_resource: opened here
libreport-2.17.15/src/lib/spawn.c:127:25: danger: 'open("/dev/null", 2)' leaks here; was opened at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def101]
libreport-2.17.15/src/lib/stdio_helpers.c:40:46: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
libreport-2.17.15/src/lib/stdio_helpers.c:85:7: enter_function: entry to 'libreport_xmalloc_fopen_fgetline_fclose'
libreport-2.17.15/src/lib/stdio_helpers.c:88:16: acquire_resource: opened here
libreport-2.17.15/src/lib/stdio_helpers.c:89:8: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/stdio_helpers.c:91:13: branch_true: ...to here
libreport-2.17.15/src/lib/stdio_helpers.c:91:13: call_function: calling 'libreport_xmalloc_fgetline' from 'libreport_xmalloc_fopen_fgetline_fclose'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
libreport-2.17.15/src/lib/stdio_helpers.c:40:46: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
libreport-2.17.15/src/lib/stdio_helpers.c:85:7: enter_function: entry to 'libreport_xmalloc_fopen_fgetline_fclose'
libreport-2.17.15/src/lib/stdio_helpers.c:88:16: acquire_memory: allocated here
libreport-2.17.15/src/lib/stdio_helpers.c:89:8: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/stdio_helpers.c:91:13: branch_true: ...to here
libreport-2.17.15/src/lib/stdio_helpers.c:91:13: call_function: calling 'libreport_xmalloc_fgetline' from 'libreport_xmalloc_fopen_fgetline_fclose'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def103]
libreport-2.17.15/src/lib/strbuf.c:133:35: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
libreport-2.17.15/src/lib/strbuf.c:138:10: enter_function: entry to 'libreport_strbuf_prepend_strf'
libreport-2.17.15/src/lib/strbuf.c:142:5: acquire_resource: 'va_start' called here
libreport-2.17.15/src/lib/strbuf.c:143:5: call_function: calling 'libreport_strbuf_prepend_strfv' from 'libreport_strbuf_prepend_strf'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def104]
libreport-2.17.15/src/lib/user_settings.c:124:28: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(cur_file, "r")'
libreport-2.17.15/src/lib/user_settings.c:107:8: enter_function: entry to 'libreport_load_words_from_file'
libreport-2.17.15/src/lib/user_settings.c:112:43: call_function: calling 'get_user_config_file_path' from 'libreport_load_words_from_file'
libreport-2.17.15/src/lib/user_settings.c:112:43: return_function: returning to 'libreport_load_words_from_file' from 'get_user_config_file_path'
libreport-2.17.15/src/lib/user_settings.c:115:11: branch_true: following 'true' branch (when 'file_list_cur' is non-NULL)...
libreport-2.17.15/src/lib/user_settings.c:117:15: branch_true: ...to here
libreport-2.17.15/src/lib/user_settings.c:118:20: acquire_resource: opened here
libreport-2.17.15/src/lib/user_settings.c:119:12: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/user_settings.c:119:12: branch_true: ...to here
libreport-2.17.15/src/lib/user_settings.c:124:28: throw: if 'libreport_xmalloc_fgetline' throws an exception...
libreport-2.17.15/src/lib/user_settings.c:124:28: danger: 'fopen(cur_file, "r")' leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
libreport-2.17.15/src/lib/user_settings.c:124:28: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(cur_file, "r")'
libreport-2.17.15/src/lib/user_settings.c:107:8: enter_function: entry to 'libreport_load_words_from_file'
libreport-2.17.15/src/lib/user_settings.c:112:43: call_function: calling 'get_user_config_file_path' from 'libreport_load_words_from_file'
libreport-2.17.15/src/lib/user_settings.c:112:43: return_function: returning to 'libreport_load_words_from_file' from 'get_user_config_file_path'
libreport-2.17.15/src/lib/user_settings.c:115:11: branch_true: following 'true' branch (when 'file_list_cur' is non-NULL)...
libreport-2.17.15/src/lib/user_settings.c:117:15: branch_true: ...to here
libreport-2.17.15/src/lib/user_settings.c:118:20: acquire_memory: allocated here
libreport-2.17.15/src/lib/user_settings.c:119:12: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/user_settings.c:119:12: branch_true: ...to here
libreport-2.17.15/src/lib/user_settings.c:124:28: throw: if 'libreport_xmalloc_fgetline' throws an exception...
libreport-2.17.15/src/lib/user_settings.c:124:28: danger: 'fopen(cur_file, "r")' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def106]
libreport-2.17.15/src/lib/workflow_xml_parser.c:198:42: warning[-Wanalyzer-null-argument]: use of NULL 'parse_data.cur_locale' where non-null expected
libreport-2.17.15/src/lib/workflow_xml_parser.c:193:6: enter_function: entry to 'load_workflow_description_from_file'
libreport-2.17.15/src/lib/workflow_xml_parser.c:196:26: release_memory: 'parse_data.cur_locale' is NULL
libreport-2.17.15/src/lib/workflow_xml_parser.c:196:26: release_memory: 'parse_data.cur_locale' is NULL
libreport-2.17.15/src/lib/workflow_xml_parser.c:198:42: danger: argument 1 ('<unknown>') NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-775): [#def107]
libreport-2.17.15/src/lib/workflow_xml_parser.c:219:13: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "r")'
libreport-2.17.15/src/lib/workflow_xml_parser.c:193:6: enter_function: entry to 'load_workflow_description_from_file'
libreport-2.17.15/src/lib/workflow_xml_parser.c:212:17: acquire_resource: opened here
libreport-2.17.15/src/lib/workflow_xml_parser.c:213:8: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/workflow_xml_parser.c:213:8: branch_true: ...to here
libreport-2.17.15/src/lib/workflow_xml_parser.c:217:16: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/workflow_xml_parser.c:219:13: branch_true: ...to here
libreport-2.17.15/src/lib/workflow_xml_parser.c:219:13: throw: if 'g_markup_parse_context_parse' throws an exception...
libreport-2.17.15/src/lib/workflow_xml_parser.c:219:13: danger: 'fopen(filename, "r")' leaks here; was opened at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
libreport-2.17.15/src/lib/workflow_xml_parser.c:219:13: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "r")'
libreport-2.17.15/src/lib/workflow_xml_parser.c:193:6: enter_function: entry to 'load_workflow_description_from_file'
libreport-2.17.15/src/lib/workflow_xml_parser.c:212:17: acquire_memory: allocated here
libreport-2.17.15/src/lib/workflow_xml_parser.c:213:8: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/workflow_xml_parser.c:213:8: branch_true: ...to here
libreport-2.17.15/src/lib/workflow_xml_parser.c:217:16: branch_true: following 'true' branch...
libreport-2.17.15/src/lib/workflow_xml_parser.c:219:13: branch_true: ...to here
libreport-2.17.15/src/lib/workflow_xml_parser.c:219:13: throw: if 'g_markup_parse_context_parse' throws an exception...
libreport-2.17.15/src/lib/workflow_xml_parser.c:219:13: danger: 'fopen(filename, "r")' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def109]
libreport-2.17.15/src/lib/xfuncs.c:74:8: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'dup2(from, to)'
libreport-2.17.15/src/lib/xfuncs.c:74:9: acquire_resource: opened here
libreport-2.17.15/src/lib/xfuncs.c:74:8: danger: 'dup2(from, to)' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def110]
libreport-2.17.15/src/lib/xfuncs.c:230:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(dirname, 65536)'
libreport-2.17.15/src/lib/xfuncs.c:243:18: acquire_resource: opened here
libreport-2.17.15/src/lib/xfuncs.c:244:8: branch_false: following 'false' branch...
libreport-2.17.15/src/lib/xfuncs.c:246:13: branch_false: ...to here
libreport-2.17.15/src/lib/xfuncs.c:230:9: danger: 'open(dirname, 65536)' leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: COMPILER_WARNING (CWE-704): [#def111]
libreport-2.17.15/src/plugins/reporter-bugzilla.c: scope_hint: In function ‘set_settings’
libreport-2.17.15/src/plugins/reporter-bugzilla.c:125:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def112]
libreport-2.17.15/src/plugins/reporter-bugzilla.c:125:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-477): [#def113]
libreport-2.17.15/src/plugins/reporter-kerneloops.c: scope_hint: In function ‘http_post_to_kerneloops_site’
libreport-2.17.15/src/plugins/reporter-kerneloops.c:51:5: warning[-Wdeprecated-declarations]: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init()
libreport-2.17.15/src/include/libreport_curl.h:22: included_from: Included from here.
libreport-2.17.15/src/plugins/reporter-kerneloops.c:19: included_from: Included from here.
/usr/include/curl/curl.h:2628:1: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def114]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:51:5: warning[-Wdeprecated-declarations]: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init()
Error: COMPILER_WARNING (CWE-477): [#def115]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:52:13: warning[-Wdeprecated-declarations]: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name()
/usr/include/curl/curl.h:2553:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def116]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:52:13: warning[-Wdeprecated-declarations]: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name()
Error: COMPILER_WARNING (CWE-477): [#def117]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:53:13: warning[-Wdeprecated-declarations]: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data()
/usr/include/curl/curl.h:2556:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def118]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:53:13: warning[-Wdeprecated-declarations]: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data()
Error: COMPILER_WARNING (CWE-477): [#def119]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:55:5: warning[-Wdeprecated-declarations]: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init()
/usr/include/curl/curl.h:2628:1: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def120]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:55:5: warning[-Wdeprecated-declarations]: ‘curl_formadd’ is deprecated: since 7.56.0. Use curl_mime_init()
Error: COMPILER_WARNING (CWE-477): [#def121]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:56:13: warning[-Wdeprecated-declarations]: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name()
/usr/include/curl/curl.h:2553:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def122]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:56:13: warning[-Wdeprecated-declarations]: ‘CURLFORM_COPYNAME’ is deprecated: since 7.56.0. Use curl_mime_name()
Error: COMPILER_WARNING (CWE-477): [#def123]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:57:13: warning[-Wdeprecated-declarations]: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data()
/usr/include/curl/curl.h:2556:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def124]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:57:13: warning[-Wdeprecated-declarations]: ‘CURLFORM_COPYCONTENTS’ is deprecated: since 7.56.0. Use curl_mime_data()
Error: COMPILER_WARNING (CWE-477): [#def125]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:60:5: warning[-Wdeprecated-declarations]: ‘CURLOPT_HTTPPOST’ is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST
/usr/include/curl/curl.h:1231:3: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def126]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:60:5: warning[-Wdeprecated-declarations]: ‘CURLOPT_HTTPPOST’ is deprecated: since 7.56.0. Use CURLOPT_MIMEPOST
Error: COMPILER_WARNING (CWE-477): [#def127]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:65:5: warning[-Wdeprecated-declarations]: ‘curl_formfree’ is deprecated: since 7.56.0. Use curl_mime_free()
/usr/include/curl/curl.h:2664:1: note: declared here
Error: COMPILER_WARNING (CWE-477): [#def128]
libreport-2.17.15/src/plugins/reporter-kerneloops.c:65:5: warning[-Wdeprecated-declarations]: ‘curl_formfree’ is deprecated: since 7.56.0. Use curl_mime_free()
Error: COMPILER_WARNING (CWE-704): [#def129]
libreport-2.17.15/src/plugins/reporter-mantisbt.c: scope_hint: In function ‘set_settings’
libreport-2.17.15/src/plugins/reporter-mantisbt.c:145:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def130]
libreport-2.17.15/src/plugins/reporter-mantisbt.c:145:28: warning[-Wdiscarded-qualifiers]: initialization discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def131]
libreport-2.17.15/src/plugins/reporter-systemd-journal.c: scope_hint: In function ‘main’
libreport-2.17.15/src/plugins/reporter-systemd-journal.c:304:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
Error: COMPILER_WARNING (CWE-704): [#def132]
libreport-2.17.15/src/plugins/reporter-systemd-journal.c:304:21: warning[-Wdiscarded-qualifiers]: assignment discards ‘const’ qualifier from pointer target type
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-116.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 | libreport-2.17.15-9.fc44 |
| store-results-to | /tmp/tmp1dkjox4x/libreport-2.17.15-9.fc44.tar.xz |
| time-created | 2026-01-08 19:12:08 |
| time-finished | 2026-01-08 19:14:51 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmp1dkjox4x/libreport-2.17.15-9.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp1dkjox4x/libreport-2.17.15-9.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |