Error: GCC_ANALYZER_WARNING (CWE-775): [#def1] glib-2.86.0/girepository/compiler/compiler.c:113:12: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’ glib-2.86.0/girepository/compiler/compiler.c:158:1: enter_function: entry to ‘main’ glib-2.86.0/girepository/compiler/compiler.c:173:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:184:3: branch_false: ...to here glib-2.86.0/girepository/compiler/compiler.c:193:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:200:7: branch_false: ...to here glib-2.86.0/girepository/compiler/compiler.c:200:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:216:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:227:3: branch_false: ...to here glib-2.86.0/girepository/compiler/compiler.c:245:8: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:247:10: branch_false: ...to here glib-2.86.0/girepository/compiler/compiler.c:247:8: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:251:24: branch_false: ...to here glib-2.86.0/girepository/compiler/compiler.c:251:24: call_function: calling ‘write_out_typelib’ from ‘main’ # 111| if (tmp_filename != NULL) # 112| { # 113|-> if (!g_file_move (tmp_file_obj, file_obj, G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, &error)) # 114| { # 115| char *message = g_strdup_printf (_("Error: Failed to rename ‘%s’ to ‘%s’: %s"), Error: GCC_ANALYZER_WARNING (CWE-401): [#def2] glib-2.86.0/girepository/compiler/compiler.c:113:12: warning[-Wanalyzer-malloc-leak]: leak of ‘file’ glib-2.86.0/girepository/compiler/compiler.c:158:1: enter_function: entry to ‘main’ glib-2.86.0/girepository/compiler/compiler.c:173:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:184:3: branch_false: ...to here glib-2.86.0/girepository/compiler/compiler.c:193:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:200:7: branch_false: ...to here glib-2.86.0/girepository/compiler/compiler.c:200:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:216:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:227:3: branch_false: ...to here glib-2.86.0/girepository/compiler/compiler.c:245:8: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:247:10: branch_false: ...to here glib-2.86.0/girepository/compiler/compiler.c:247:8: branch_false: following ‘false’ branch... glib-2.86.0/girepository/compiler/compiler.c:251:24: branch_false: ...to here glib-2.86.0/girepository/compiler/compiler.c:251:24: call_function: calling ‘write_out_typelib’ from ‘main’ # 111| if (tmp_filename != NULL) # 112| { # 113|-> if (!g_file_move (tmp_file_obj, file_obj, G_FILE_COPY_OVERWRITE, NULL, NULL, NULL, &error)) # 114| { # 115| char *message = g_strdup_printf (_("Error: Failed to rename ‘%s’ to ‘%s’: %s"), Error: GCC_ANALYZER_WARNING (CWE-775): [#def3] glib-2.86.0/girepository/gdump.c:74:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:641:11: acquire_resource: opened here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 72| size_t *len_out) # 73| { # 74|-> GByteArray *buffer = g_byte_array_new (); # 75| const uint8_t nul = '\0'; # 76| Error: GCC_ANALYZER_WARNING (CWE-775): [#def4] glib-2.86.0/girepository/gdump.c:74:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:653:12: acquire_resource: opened here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 72| size_t *len_out) # 73| { # 74|-> GByteArray *buffer = g_byte_array_new (); # 75| const uint8_t nul = '\0'; # 76| Error: GCC_ANALYZER_WARNING (CWE-401): [#def5] glib-2.86.0/girepository/gdump.c:74:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:641:11: acquire_memory: allocated here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 72| size_t *len_out) # 73| { # 74|-> GByteArray *buffer = g_byte_array_new (); # 75| const uint8_t nul = '\0'; # 76| Error: GCC_ANALYZER_WARNING (CWE-401): [#def6] glib-2.86.0/girepository/gdump.c:74:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:653:12: acquire_memory: allocated here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 72| size_t *len_out) # 73| { # 74|-> GByteArray *buffer = g_byte_array_new (); # 75| const uint8_t nul = '\0'; # 76| Error: GCC_ANALYZER_WARNING (CWE-775): [#def7] glib-2.86.0/girepository/gdump.c:86:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:641:11: acquire_resource: opened here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 84| break; # 85| # 86|-> if (byte == '\n') # 87| break; # 88| Error: GCC_ANALYZER_WARNING (CWE-775): [#def8] glib-2.86.0/girepository/gdump.c:86:11: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:653:12: acquire_resource: opened here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 84| break; # 85| # 86|-> if (byte == '\n') # 87| break; # 88| Error: GCC_ANALYZER_WARNING (CWE-401): [#def9] glib-2.86.0/girepository/gdump.c:86:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:641:11: acquire_memory: allocated here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 84| break; # 85| # 86|-> if (byte == '\n') # 87| break; # 88| Error: GCC_ANALYZER_WARNING (CWE-401): [#def10] glib-2.86.0/girepository/gdump.c:86:11: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:653:12: acquire_memory: allocated here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 84| break; # 85| # 86|-> if (byte == '\n') # 87| break; # 88| Error: GCC_ANALYZER_WARNING (CWE-775): [#def11] glib-2.86.0/girepository/gdump.c:92:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:641:11: acquire_resource: opened here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 90| } # 91| # 92|-> g_byte_array_append (buffer, &nul, 1); # 93| # 94| if (len_out != NULL) Error: GCC_ANALYZER_WARNING (CWE-775): [#def12] glib-2.86.0/girepository/gdump.c:92:3: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:653:12: acquire_resource: opened here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 90| } # 91| # 92|-> g_byte_array_append (buffer, &nul, 1); # 93| # 94| if (len_out != NULL) Error: GCC_ANALYZER_WARNING (CWE-401): [#def13] glib-2.86.0/girepository/gdump.c:92:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:641:11: acquire_memory: allocated here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 90| } # 91| # 92|-> g_byte_array_append (buffer, &nul, 1); # 93| # 94| if (len_out != NULL) Error: GCC_ANALYZER_WARNING (CWE-401): [#def14] glib-2.86.0/girepository/gdump.c:92:3: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:653:12: acquire_memory: allocated here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 90| } # 91| # 92|-> g_byte_array_append (buffer, &nul, 1); # 93| # 94| if (len_out != NULL) Error: GCC_ANALYZER_WARNING (CWE-775): [#def15] glib-2.86.0/girepository/gdump.c:95:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(input_filename, "rbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:641:11: acquire_resource: opened here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 93| # 94| if (len_out != NULL) # 95|-> *len_out = buffer->len - 1; /* don’t include terminating nul */ # 96| # 97| return (char *) g_byte_array_free (buffer, FALSE); Error: GCC_ANALYZER_WARNING (CWE-775): [#def16] glib-2.86.0/girepository/gdump.c:95:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(output_filename, "wbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:653:12: acquire_resource: opened here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 93| # 94| if (len_out != NULL) # 95|-> *len_out = buffer->len - 1; /* don’t include terminating nul */ # 96| # 97| return (char *) g_byte_array_free (buffer, FALSE); Error: GCC_ANALYZER_WARNING (CWE-401): [#def17] glib-2.86.0/girepository/gdump.c:95:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(input_filename, "rbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:641:11: acquire_memory: allocated here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 93| # 94| if (len_out != NULL) # 95|-> *len_out = buffer->len - 1; /* don’t include terminating nul */ # 96| # 97| return (char *) g_byte_array_free (buffer, FALSE); Error: GCC_ANALYZER_WARNING (CWE-401): [#def18] glib-2.86.0/girepository/gdump.c:95:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(output_filename, "wbe")’ glib-2.86.0/girepository/gdump.c:619:1: enter_function: entry to ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:631:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:641:11: branch_false: ...to here glib-2.86.0/girepository/gdump.c:642:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:653:12: branch_false: ...to here glib-2.86.0/girepository/gdump.c:653:12: acquire_memory: allocated here glib-2.86.0/girepository/gdump.c:654:6: branch_false: following ‘false’ branch... glib-2.86.0/girepository/gdump.c:666:3: branch_false: ...to here glib-2.86.0/girepository/gdump.c:666:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:666:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:667:3: call_function: calling ‘goutput_write’ from ‘gi_repository_dump’ glib-2.86.0/girepository/gdump.c:667:3: return_function: returning to ‘gi_repository_dump’ from ‘goutput_write’ glib-2.86.0/girepository/gdump.c:674:20: call_function: calling ‘read_line’ from ‘gi_repository_dump’ # 93| # 94| if (len_out != NULL) # 95|-> *len_out = buffer->len - 1; /* don’t include terminating nul */ # 96| # 97| return (char *) g_byte_array_free (buffer, FALSE); Error: GCC_ANALYZER_WARNING (CWE-404): [#def19] glib-2.86.0/glib/gutils.c:1860:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’ glib-2.86.0/glib/gutils.c:1836:3: acquire_resource: ‘va_start’ called here glib-2.86.0/glib/gutils.c:1838:35: branch_true: following ‘true’ branch (when ‘dir_type’ is non-NULL)... glib-2.86.0/glib/gutils.c:1840:21: branch_true: ...to here glib-2.86.0/glib/gutils.c:1841:7: branch_true: following ‘true’ branch (when ‘dir_value’ is non-NULL)... glib-2.86.0/glib/gutils.c:1843:11: branch_true: ...to here glib-2.86.0/glib/gutils.c:1845:15: branch_false: following ‘false’ branch (when the strings are non-equal)... glib-2.86.0/glib/gutils.c:1847:16: branch_false: ...to here glib-2.86.0/glib/gutils.c:1847:15: branch_false: following ‘false’ branch (when the strings are non-equal)... glib-2.86.0/glib/gutils.c:1849:16: branch_false: ...to here glib-2.86.0/glib/gutils.c:1849:15: branch_false: following ‘false’ branch (when the strings are non-equal)... glib-2.86.0/glib/gutils.c:1851:16: branch_false: ...to here glib-2.86.0/glib/gutils.c:1851:15: branch_false: following ‘false’ branch (when the strings are non-equal)... glib-2.86.0/glib/gutils.c:1853:16: branch_false: ...to here glib-2.86.0/glib/gutils.c:1853:15: branch_false: following ‘false’ branch (when the strings are non-equal)... glib-2.86.0/glib/gutils.c:1855:16: branch_false: ...to here glib-2.86.0/glib/gutils.c:1855:15: branch_false: following ‘false’ branch (when the strings are non-equal)... glib-2.86.0/glib/gutils.c:1857:16: branch_false: ...to here glib-2.86.0/glib/gutils.c:1857:15: branch_false: following ‘false’ branch (when the strings are non-equal)... glib-2.86.0/glib/gutils.c:1860:9: branch_false: ...to here glib-2.86.0/glib/gutils.c:1860:9: throw: if ‘g_assertion_message_expr’ throws an exception... glib-2.86.0/glib/gutils.c:1860:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0) # 1858| set_str_if_different (&g_user_runtime_dir, dir_type, dir_value); # 1859| else # 1860|-> g_assert_not_reached (); # 1861| } # 1862| Error: CPPCHECK_WARNING (CWE-457): [#def20] glib-2.86.0/glib/tests/array-test.c:981: error[uninitvar]: Uninitialized variable: &i # 979| g_test_expect_message (G_LOG_DOMAIN, G_LOG_LEVEL_CRITICAL, # 980| "*assertion*!= NULL*"); # 981|-> g_assert_false (g_array_binary_search (NULL, &i, cmpint, NULL)); # 982| g_test_assert_expected_messages (); # 983|
| 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 |
| diffbase-analyzer-version-clippy | 1.92.0 |
| diffbase-analyzer-version-cppcheck | 2.19.1 |
| diffbase-analyzer-version-gcc | 16.0.0 |
| diffbase-analyzer-version-gcc-analyzer | 16.0.0 |
| diffbase-analyzer-version-shellcheck | 0.11.0 |
| diffbase-analyzer-version-unicontrol | 0.0.2 |
| diffbase-enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| diffbase-exit-code | 0 |
| diffbase-host | ip-172-16-1-213.us-west-2.compute.internal |
| diffbase-known-false-positives | /usr/share/csmock/known-false-positives.js |
| diffbase-known-false-positives-rpm | known-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch |
| diffbase-mock-config | fedora-rawhide-x86_64 |
| diffbase-project-name | glib2-2.87.0-3.fc44 |
| diffbase-store-results-to | /tmp/tmpwqhefumj/glib2-2.87.0-3.fc44.tar.xz |
| diffbase-time-created | 2026-01-08 16:33:48 |
| diffbase-time-finished | 2026-01-08 16:46:12 |
| diffbase-tool | csmock |
| diffbase-tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpwqhefumj/glib2-2.87.0-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpwqhefumj/glib2-2.87.0-3.fc44.src.rpm' |
| diffbase-tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |
| enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
| exit-code | 0 |
| host | ip-172-16-1-213.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 | glib2-2.86.0-2.fc43 |
| store-results-to | /tmp/tmpqw7p0r3w/glib2-2.86.0-2.fc43.tar.xz |
| time-created | 2026-01-08 16:20:06 |
| time-finished | 2026-01-08 16:32:37 |
| title | Fixed findings |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpqw7p0r3w/glib2-2.86.0-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpqw7p0r3w/glib2-2.86.0-2.fc43.src.rpm' |
| tool-version | csmock-3.8.3.20251215.161544.g62de9a5-1.el9 |