gdk-pixbuf2-modules-extra-2.44.0-1.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:194:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:174:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:175:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:178:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:179:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:191:16: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:193:12: branch_true: following ‘true’ branch (when ‘size == 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:194:17: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:194:17: throw: if ‘g_dgettext’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:194:17: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  192|   
#  193|   	if (size == 0) {
#  194|->                 g_set_error (error,
#  195|                                GDK_PIXBUF_ERROR,
#  196|                                GDK_PIXBUF_ERROR_CORRUPT_IMAGE,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:194:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:174:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:175:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:178:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:179:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:191:16: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:193:12: branch_true: following ‘true’ branch (when ‘size == 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:194:17: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:194:17: throw: if ‘g_dgettext’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:194:17: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  192|   
#  193|   	if (size == 0) {
#  194|->                 g_set_error (error,
#  195|                                GDK_PIXBUF_ERROR,
#  196|                                GDK_PIXBUF_ERROR_CORRUPT_IMAGE,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def3]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:199:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:174:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:175:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:178:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:179:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:191:16: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:193:12: branch_true: following ‘true’ branch (when ‘size == 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:194:17: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:199:17: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:199:17: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:199:17: throw: if ‘g_free_sized’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:199:17: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  197|                                _("Image file “%s” contains no data"),
#  198|                                display_name);
#  199|->                 g_free (display_name);
#  200|   		fclose (f);
#  201|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:199:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:174:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:175:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:178:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:179:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:191:16: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:193:12: branch_true: following ‘true’ branch (when ‘size == 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:194:17: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:199:17: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:199:17: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:199:17: throw: if ‘g_free_sized’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:199:17: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  197|                                _("Image file “%s” contains no data"),
#  198|                                display_name);
#  199|->                 g_free (display_name);
#  200|   		fclose (f);
#  201|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def5]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:204:24: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:174:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:175:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:178:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:179:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:191:16: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:193:12: branch_false: following ‘false’ branch (when ‘size != 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:204:24: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:204:24: throw: if ‘_gdk_pixbuf_get_module’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:204:24: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  202|   	}
#  203|   
#  204|-> 	image_module = _gdk_pixbuf_get_module (buffer, size, filename, error);
#  205|   	if (!image_module) {
#  206|                   g_free (display_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:204:24: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:174:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:175:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:178:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:179:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:191:16: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:193:12: branch_false: following ‘false’ branch (when ‘size != 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:204:24: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:204:24: throw: if ‘_gdk_pixbuf_get_module’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-animation.c:204:24: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  202|   	}
#  203|   
#  204|-> 	image_module = _gdk_pixbuf_get_module (buffer, size, filename, error);
#  205|   	if (!image_module) {
#  206|                   g_free (display_name);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def7]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:178:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "wb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2643:1: enter_function: entry to ‘gdk_pixbuf_savev’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2653:9: branch_false: following ‘false’ branch (when ‘pixbuf’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2653:9: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2654:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2655:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2655:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2656:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2656:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2657:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2657:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2658:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2658:9: branch_true: following ‘true’ branch (when ‘type’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2659:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2661:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2663:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2677:17: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2677:17: call_function: calling ‘gdk_pixbuf_real_save’ from ‘gdk_pixbuf_savev’
#  176|   get_file_formats (void)
#  177|   {
#  178|->         G_LOCK (init_lock);
#  179|           if (file_formats == NULL ||
#  180|               !file_formats_inited)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:178:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "wb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2643:1: enter_function: entry to ‘gdk_pixbuf_savev’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2653:9: branch_false: following ‘false’ branch (when ‘pixbuf’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2653:9: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2654:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2655:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2655:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2656:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2656:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2657:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2657:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2658:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2658:9: branch_true: following ‘true’ branch (when ‘type’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2659:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2661:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2663:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2677:17: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2677:17: call_function: calling ‘gdk_pixbuf_real_save’ from ‘gdk_pixbuf_savev’
#  176|   get_file_formats (void)
#  177|   {
#  178|->         G_LOCK (init_lock);
#  179|           if (file_formats == NULL ||
#  180|               !file_formats_inited)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def9]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:179:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "wb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2643:1: enter_function: entry to ‘gdk_pixbuf_savev’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2653:9: branch_false: following ‘false’ branch (when ‘pixbuf’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2653:9: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2654:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2655:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2655:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2656:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2656:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2657:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2657:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2658:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2658:9: branch_true: following ‘true’ branch (when ‘type’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2659:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2661:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2663:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2677:17: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2677:17: call_function: calling ‘gdk_pixbuf_real_save’ from ‘gdk_pixbuf_savev’
#  177|   {
#  178|           G_LOCK (init_lock);
#  179|->         if (file_formats == NULL ||
#  180|               !file_formats_inited)
#  181|                   file_formats_inited = gdk_pixbuf_io_init ();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:179:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "wb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2643:1: enter_function: entry to ‘gdk_pixbuf_savev’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2653:9: branch_false: following ‘false’ branch (when ‘pixbuf’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2653:9: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2654:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2655:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2655:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2656:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2656:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2657:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2657:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2658:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2658:9: branch_true: following ‘true’ branch (when ‘type’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2659:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2661:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2663:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2677:17: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2677:17: call_function: calling ‘gdk_pixbuf_real_save’ from ‘gdk_pixbuf_savev’
#  177|   {
#  178|           G_LOCK (init_lock);
#  179|->         if (file_formats == NULL ||
#  180|               !file_formats_inited)
#  181|                   file_formats_inited = gdk_pixbuf_io_init ();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def11]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1073:32: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1198:1: enter_function: entry to ‘gdk_pixbuf_new_from_file’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1205:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1206:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1208:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1209:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: call_function: calling ‘_gdk_pixbuf_get_module_for_file’ from ‘gdk_pixbuf_new_from_file’
# 1071|           if (size == 0) {
# 1072|   		gchar *display_name;
# 1073|->         	display_name = g_filename_display_name (filename);      
# 1074|                   g_set_error (error,
# 1075|                                GDK_PIXBUF_ERROR,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1073:32: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1198:1: enter_function: entry to ‘gdk_pixbuf_new_from_file’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1205:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1206:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1208:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1209:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: call_function: calling ‘_gdk_pixbuf_get_module_for_file’ from ‘gdk_pixbuf_new_from_file’
# 1071|           if (size == 0) {
# 1072|   		gchar *display_name;
# 1073|->         	display_name = g_filename_display_name (filename);      
# 1074|                   g_set_error (error,
# 1075|                                GDK_PIXBUF_ERROR,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def13]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1074:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1198:1: enter_function: entry to ‘gdk_pixbuf_new_from_file’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1205:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1206:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1208:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1209:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: call_function: calling ‘_gdk_pixbuf_get_module_for_file’ from ‘gdk_pixbuf_new_from_file’
# 1072|   		gchar *display_name;
# 1073|           	display_name = g_filename_display_name (filename);      
# 1074|->                 g_set_error (error,
# 1075|                                GDK_PIXBUF_ERROR,
# 1076|                                GDK_PIXBUF_ERROR_CORRUPT_IMAGE,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1074:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1198:1: enter_function: entry to ‘gdk_pixbuf_new_from_file’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1205:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1206:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1208:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1209:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: call_function: calling ‘_gdk_pixbuf_get_module_for_file’ from ‘gdk_pixbuf_new_from_file’
# 1072|   		gchar *display_name;
# 1073|           	display_name = g_filename_display_name (filename);      
# 1074|->                 g_set_error (error,
# 1075|                                GDK_PIXBUF_ERROR,
# 1076|                                GDK_PIXBUF_ERROR_CORRUPT_IMAGE,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def15]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1079:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1198:1: enter_function: entry to ‘gdk_pixbuf_new_from_file’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1205:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1206:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1208:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1209:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: call_function: calling ‘_gdk_pixbuf_get_module_for_file’ from ‘gdk_pixbuf_new_from_file’
# 1077|                                _("Image file “%s” contains no data"),
# 1078|                                display_name);
# 1079|->                 g_free (display_name);
# 1080|                   return NULL;
# 1081|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1079:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1198:1: enter_function: entry to ‘gdk_pixbuf_new_from_file’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1205:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1206:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1208:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1209:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: call_function: calling ‘_gdk_pixbuf_get_module_for_file’ from ‘gdk_pixbuf_new_from_file’
# 1077|                                _("Image file “%s” contains no data"),
# 1078|                                display_name);
# 1079|->                 g_free (display_name);
# 1080|                   return NULL;
# 1081|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def17]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1083:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1198:1: enter_function: entry to ‘gdk_pixbuf_new_from_file’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1205:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1206:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1208:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1209:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: call_function: calling ‘_gdk_pixbuf_get_module_for_file’ from ‘gdk_pixbuf_new_from_file’
# 1081|           }
# 1082|   
# 1083|-> 	return _gdk_pixbuf_get_module (buffer, size, filename, error);
# 1084|   }
# 1085|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1083:16: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1198:1: enter_function: entry to ‘gdk_pixbuf_new_from_file’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1205:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1206:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1208:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1209:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1223:24: call_function: calling ‘_gdk_pixbuf_get_module_for_file’ from ‘gdk_pixbuf_new_from_file’
# 1081|           }
# 1082|   
# 1083|-> 	return _gdk_pixbuf_get_module (buffer, size, filename, error);
# 1084|   }
# 1085|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def19]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: throw: if ‘_gdk_pixbuf_loader_new_with_filename’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/6)
# 1494|           }
# 1495|   
# 1496|->         loader = _gdk_pixbuf_loader_new_with_filename (filename);
# 1497|   
# 1498|           info.width = width;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: throw: if ‘_gdk_pixbuf_loader_new_with_filename’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/6)
# 1494|           }
# 1495|   
# 1496|->         loader = _gdk_pixbuf_loader_new_with_filename (filename);
# 1497|   
# 1498|           info.width = width;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1502:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1502:9: throw: if ‘g_signal_connect_data’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1502:9: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/6)
# 1500|           info.preserve_aspect_ratio = preserve_aspect_ratio;
# 1501|   
# 1502|->         g_signal_connect (loader, "size-prepared", 
# 1503|                             G_CALLBACK (at_scale_size_prepared_cb), &info);
# 1504|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1502:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1502:9: throw: if ‘g_signal_connect_data’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1502:9: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/6)
# 1500|           info.preserve_aspect_ratio = preserve_aspect_ratio;
# 1501|   
# 1502|->         g_signal_connect (loader, "size-prepared", 
# 1503|                             G_CALLBACK (at_scale_size_prepared_cb), &info);
# 1504|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1509:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1506:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1508:20: branch_true: following ‘true’ branch (when ‘length > 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1509:30: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1509:30: throw: if ‘gdk_pixbuf_loader_write’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1509:30: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/6)
# 1507|                   length = fread (buffer, 1, sizeof (buffer), f);
# 1508|                   if (length > 0)
# 1509|->                         if (!gdk_pixbuf_loader_write (loader, buffer, length, error)) {
# 1510|                                   gdk_pixbuf_loader_close (loader, NULL);
# 1511|                                   fclose (f);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1509:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1506:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1508:20: branch_true: following ‘true’ branch (when ‘length > 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1509:30: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1509:30: throw: if ‘gdk_pixbuf_loader_write’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1509:30: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/6)
# 1507|                   length = fread (buffer, 1, sizeof (buffer), f);
# 1508|                   if (length > 0)
# 1509|->                         if (!gdk_pixbuf_loader_write (loader, buffer, length, error)) {
# 1510|                                   gdk_pixbuf_loader_close (loader, NULL);
# 1511|                                   fclose (f);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def25]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1516:29: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1506:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1516:29: throw: if ‘gdk_pixbuf_loader_get_animation’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1516:29: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/6)
# 1514|                           }
# 1515|                   
# 1516|->                 animation = gdk_pixbuf_loader_get_animation (loader);
# 1517|                   if (animation) {
# 1518|                           iter = gdk_pixbuf_animation_get_iter (animation, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1516:29: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1506:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1516:29: throw: if ‘gdk_pixbuf_loader_get_animation’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1516:29: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/6)
# 1514|                           }
# 1515|                   
# 1516|->                 animation = gdk_pixbuf_loader_get_animation (loader);
# 1517|                   if (animation) {
# 1518|                           iter = gdk_pixbuf_animation_get_iter (animation, NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def27]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1518:32: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1506:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1518:32: throw: if ‘gdk_pixbuf_animation_get_iter’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1518:32: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/6)
# 1516|                   animation = gdk_pixbuf_loader_get_animation (loader);
# 1517|                   if (animation) {
# 1518|->                         iter = gdk_pixbuf_animation_get_iter (animation, NULL);
# 1519|                           if (!gdk_pixbuf_animation_iter_on_currently_loading_frame (iter)) {
# 1520|                                   has_frame = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1518:32: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1506:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1518:32: throw: if ‘gdk_pixbuf_animation_get_iter’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1518:32: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/6)
# 1516|                   animation = gdk_pixbuf_loader_get_animation (loader);
# 1517|                   if (animation) {
# 1518|->                         iter = gdk_pixbuf_animation_get_iter (animation, NULL);
# 1519|                           if (!gdk_pixbuf_animation_iter_on_currently_loading_frame (iter)) {
# 1520|                                   has_frame = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def29]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1519:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1506:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1519:30: throw: if ‘gdk_pixbuf_animation_iter_on_currently_loading_frame’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1519:30: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/6)
# 1517|                   if (animation) {
# 1518|                           iter = gdk_pixbuf_animation_get_iter (animation, NULL);
# 1519|->                         if (!gdk_pixbuf_animation_iter_on_currently_loading_frame (iter)) {
# 1520|                                   has_frame = TRUE;
# 1521|                           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1519:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1506:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1519:30: throw: if ‘gdk_pixbuf_animation_iter_on_currently_loading_frame’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1519:30: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/6)
# 1517|                   if (animation) {
# 1518|                           iter = gdk_pixbuf_animation_get_iter (animation, NULL);
# 1519|->                         if (!gdk_pixbuf_animation_iter_on_currently_loading_frame (iter)) {
# 1520|                                   has_frame = TRUE;
# 1521|                           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1522:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1506:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1522:25: throw: if ‘g_object_unref’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1522:25: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(7)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/6)
# 1520|                                   has_frame = TRUE;
# 1521|                           }
# 1522|->                         g_object_unref (iter);
# 1523|                   }
# 1524|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1522:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1478:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1479:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1480:9: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1482:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1483:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1496:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1506:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1522:25: throw: if ‘g_object_unref’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:1522:25: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(7)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/6)
# 1520|                                   has_frame = TRUE;
# 1521|                           }
# 1522|->                         g_object_unref (iter);
# 1523|                   }
# 1524|           }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2082:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2085:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: throw: if ‘_gdk_pixbuf_loader_new_with_filename’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/2)
# 2086|                   return NULL;
# 2087|   
# 2088|->         loader = _gdk_pixbuf_loader_new_with_filename (filename);
# 2089|   
# 2090|           info.format = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2082:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2085:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: throw: if ‘_gdk_pixbuf_loader_new_with_filename’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/2)
# 2086|                   return NULL;
# 2087|   
# 2088|->         loader = _gdk_pixbuf_loader_new_with_filename (filename);
# 2089|   
# 2090|           info.format = NULL;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def35]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2094:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2082:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2085:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2094:9: throw: if ‘g_signal_connect_data’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2094:9: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/2)
# 2092|           info.height = -1;
# 2093|                   
# 2094|->         g_signal_connect (loader, "size-prepared", G_CALLBACK (info_cb), &info);
# 2095|   
# 2096|           while (!feof (f) && !ferror (f)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2094:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2082:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2085:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2094:9: throw: if ‘g_signal_connect_data’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2094:9: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/2)
# 2092|           info.height = -1;
# 2093|                   
# 2094|->         g_signal_connect (loader, "size-prepared", G_CALLBACK (info_cb), &info);
# 2095|   
# 2096|           while (!feof (f) && !ferror (f)) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def37]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2082:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2085:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2096:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2098:20: branch_true: following ‘true’ branch (when ‘length > 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: throw: if ‘gdk_pixbuf_loader_write’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/2)
# 2097|                   length = fread (buffer, 1, sizeof (buffer), f);
# 2098|                   if (length > 0) {
# 2099|->                         if (!gdk_pixbuf_loader_write (loader, buffer, length, NULL))
# 2100|                                   break;
# 2101|                   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2082:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2085:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2096:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2098:20: branch_true: following ‘true’ branch (when ‘length > 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: throw: if ‘gdk_pixbuf_loader_write’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/2)
# 2097|                   length = fread (buffer, 1, sizeof (buffer), f);
# 2098|                   if (length > 0) {
# 2099|->                         if (!gdk_pixbuf_loader_write (loader, buffer, length, NULL))
# 2100|                                   break;
# 2101|                   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def39]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2102:21: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2082:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: acquire_resource: opened here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2085:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2096:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2098:20: branch_false: following ‘false’ branch (when ‘length <= 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2102:21: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2102:20: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2102:20: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2096:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2098:20: branch_true: following ‘true’ branch (when ‘length > 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: throw: if ‘gdk_pixbuf_loader_write’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2102:21: danger: ‘fopen(filename, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/2)
# 2100|                                   break;
# 2101|                   }
# 2102|->                 if (info.format != NULL)
# 2103|                           break;
# 2104|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2102:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(filename, "rb")’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2082:9: branch_true: following ‘true’ branch (when ‘filename’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2084:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2085:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2088:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2096:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2098:20: branch_false: following ‘false’ branch (when ‘length <= 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2102:21: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2102:20: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2102:20: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2096:16: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2098:20: branch_true: following ‘true’ branch (when ‘length > 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2099:30: throw: if ‘gdk_pixbuf_loader_write’ throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2102:21: danger: ‘fopen(filename, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/2)
# 2100|                                   break;
# 2101|                   }
# 2102|->                 if (info.format != NULL)
# 2103|                           break;
# 2104|           }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def41]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2310:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:3111:1: enter_function: entry to ‘gdk_pixbuf_save_to_stream’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:3123:9: acquire_resource: ‘va_start’ called here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:3124:9: call_function: calling ‘collect_save_options’ from ‘gdk_pixbuf_save_to_stream’
# 2308|   
# 2309|         /* woo, slow */
# 2310|->       *keys = g_realloc (*keys, sizeof(gchar*) * (count + 1));
# 2311|         *vals = g_realloc (*vals, sizeof(gchar*) * (count + 1));
# 2312|         

Error: GCC_ANALYZER_WARNING (CWE-404): [#def42]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2311:15: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:3111:1: enter_function: entry to ‘gdk_pixbuf_save_to_stream’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:3123:9: acquire_resource: ‘va_start’ called here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:3124:9: call_function: calling ‘collect_save_options’ from ‘gdk_pixbuf_save_to_stream’
# 2309|         /* woo, slow */
# 2310|         *keys = g_realloc (*keys, sizeof(gchar*) * (count + 1));
# 2311|->       *vals = g_realloc (*vals, sizeof(gchar*) * (count + 1));
# 2312|         
# 2313|         (*keys)[count-1] = g_strdup (key);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2428:18: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2407:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2415:14: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2416:12: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2418:13: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2418:13: acquire_memory: allocated here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2419:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2428:18: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2428:18: throw: if the called function throws an exception...
gdk-pixbuf-2.44.0/gdk-pixbuf/gdk-pixbuf-io.c:2428:18: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/4)
# 2426|           }
# 2427|   
# 2428|->         retval = (image_module->save) (f, pixbuf, keys, values, error);
# 2429|           if (!retval)
# 2430|                   goto end;

Error: CPPCHECK_WARNING (CWE-190): [#def44]
gdk-pixbuf-2.44.0/gdk-pixbuf/io-bmp.c:381: error[integerOverflow]: Signed integer overflow for expression '-2147483647-1'.
#  379|   	/* Negative heights indicates bottom-down pixelorder */
#  380|   	if (State->Header.height < 0) {
#  381|-> 		if (State->Header.height == INT_MIN) {
#  382|   			g_set_error_literal (error,
#  383|   					     GDK_PIXBUF_ERROR,

Error: COMPILER_WARNING: [#def45]
gdk-pixbuf-2.44.0/gdk-pixbuf/io-xpm.c: scope_hint: In function ‘pixbuf_create_from_xpm’
gdk-pixbuf-2.44.0/gdk-pixbuf/io-xpm.c:454:19: warning[-Wunused-but-set-variable=]: variable ‘xcnt’ set but not used
#  454 |         gint cnt, xcnt, ycnt, wbytes, n;
#      |                   ^~~~
#  452|   {
#  453|   	gint w, h, n_col, cpp, x_hot, y_hot, items;
#  454|-> 	gint cnt, xcnt, ycnt, wbytes, n;
#  455|   	gint is_trans = FALSE;
#  456|   	const gchar *buffer;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def46]
gdk-pixbuf-2.44.0/gdk-pixbuf/io-xpm.c:624:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘color’
gdk-pixbuf-2.44.0/gdk-pixbuf/io-xpm.c:677:1: enter_function: entry to ‘gdk_pixbuf__xpm_image_load_xpm_data’
gdk-pixbuf-2.44.0/gdk-pixbuf/io-xpm.c:686:18: call_function: calling ‘pixbuf_create_from_xpm’ from ‘gdk_pixbuf__xpm_image_load_xpm_data’
#  622|   				color = fallbackcolor;
#  623|   
#  624|-> 			*pixtmp++ = color->red >> 8;
#  625|   			*pixtmp++ = color->green >> 8;
#  626|   			*pixtmp++ = color->blue >> 8;

Error: GCC_ANALYZER_WARNING: [#def47]
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:1442:19: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2372:1: enter_function: entry to ‘_pixops_scale_real’
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2394:3: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2395:3: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2395:3: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2396:3: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2396:3: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2398:7: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2398:6: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2401:6: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2401:6: branch_false: following ‘false’ branch (when ‘interp_type != 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2411:7: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2411:6: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2416:3: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2417:8: call_function: calling ‘make_weights’ from ‘_pixops_scale_real’
# 1440|     int i;
# 1441|   
# 1442|->   pixel_weights = g_try_malloc_n (sizeof (double) * SUBSAMPLE, n);
# 1443|     if (pixel_weights == NULL)
# 1444|       return FALSE;

Error: GCC_ANALYZER_WARNING: [#def48]
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:1601:19: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2372:1: enter_function: entry to ‘_pixops_scale_real’
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2394:3: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2395:3: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2395:3: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2396:3: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2396:3: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2398:7: branch_true: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2398:6: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2401:6: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2401:6: branch_false: following ‘false’ branch (when ‘interp_type != 0’)...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2411:7: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2411:6: branch_false: following ‘false’ branch...
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2416:3: branch_false: ...to here
gdk-pixbuf-2.44.0/gdk-pixbuf/pixops/pixops.c:2417:8: call_function: calling ‘make_weights’ from ‘_pixops_scale_real’
# 1599|     int offset, i;
# 1600|   
# 1601|->   pixel_weights = g_malloc_n (sizeof (double) * SUBSAMPLE, n);
# 1602|     if (pixel_weights == NULL)
# 1603|       return FALSE;

Error: CPPCHECK_WARNING (CWE-476): [#def49]
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:59: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
#   57|         f = fopen ("pixbuf-randomly-modified-image", "w");
#   58|         g_assert (f != NULL);
#   59|->       fwrite (img_copy, size, 1, f);
#   60|         g_assert (!ferror (f));
#   61|         fclose (f);

Error: CPPCHECK_WARNING (CWE-476): [#def50]
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:60: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: f
#   58|         g_assert (f != NULL);
#   59|         fwrite (img_copy, size, 1, f);
#   60|->       g_assert (!ferror (f));
#   61|         fclose (f);
#   62|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:60:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("pixbuf-randomly-modified-image", "w")’
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:48:15: branch_true: following ‘true’ branch (when ‘i < n’)...
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:53:21: branch_true: ...to here
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:57:11: acquire_resource: opened here
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:58:7: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:59:7: branch_true: ...to here
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:60:7: danger: ‘fopen("pixbuf-randomly-modified-image", "w")’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   58|         g_assert (f != NULL);
#   59|         fwrite (img_copy, size, 1, f);
#   60|->       g_assert (!ferror (f));
#   61|         fclose (f);
#   62|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:60:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("pixbuf-randomly-modified-image", "w")’
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:48:15: branch_true: following ‘true’ branch (when ‘i < n’)...
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:53:21: branch_true: ...to here
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:57:11: acquire_memory: allocated here
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:58:7: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:59:7: branch_true: ...to here
gdk-pixbuf-2.44.0/tests/pixbuf-randomly-modified.c:60:7: danger: ‘fopen("pixbuf-randomly-modified-image", "w")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   58|         g_assert (f != NULL);
#   59|         fwrite (img_copy, size, 1, f);
#   60|->       g_assert (!ferror (f));
#   61|         fclose (f);
#   62|   

Error: CPPCHECK_WARNING (CWE-476): [#def53]
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:44: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: file
#   42|     g_assert (file != NULL);
#   43|   
#   44|->   while (!feof (file)) 
#   45|       {
#   46|         nbytes = fread (buffer, 1, sizeof (buffer), file);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:47:7: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(g_test_get_filename(0, "test-images/randomly-modified", data, 0), "rb")’
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:41:10: acquire_resource: opened here
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:42:3: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:42:3: branch_true: ...to here
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:44:10: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:46:16: branch_true: ...to here
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:47:7: throw: if ‘gdk_pixbuf_loader_write’ throws an exception...
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:47:7: danger: ‘fopen(g_test_get_filename(0, "test-images/randomly-modified", data, 0), "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   45|       {
#   46|         nbytes = fread (buffer, 1, sizeof (buffer), file);
#   47|->       gdk_pixbuf_loader_write (loader, buffer, nbytes, &error);
#   48|         g_assert_no_error (error);
#   49|         g_thread_yield ();      

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:47:7: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(g_test_get_filename(0, "test-images/randomly-modified", data, 0), "rb")’
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:41:10: acquire_memory: allocated here
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:42:3: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:42:3: branch_true: ...to here
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:44:10: branch_true: following ‘true’ branch...
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:46:16: branch_true: ...to here
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:47:7: throw: if ‘gdk_pixbuf_loader_write’ throws an exception...
gdk-pixbuf-2.44.0/tests/pixbuf-threads.c:47:7: danger: ‘fopen(g_test_get_filename(0, "test-images/randomly-modified", data, 0), "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   45|       {
#   46|         nbytes = fread (buffer, 1, sizeof (buffer), file);
#   47|->       gdk_pixbuf_loader_write (loader, buffer, nbytes, &error);
#   48|         g_assert_no_error (error);
#   49|         g_thread_yield ();      

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-223.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegdk-pixbuf2-modules-extra-2.44.0-1.fc44
store-results-to/tmp/tmpfpru29z4/gdk-pixbuf2-modules-extra-2.44.0-1.fc44.tar.xz
time-created2026-01-08 16:15:36
time-finished2026-01-08 16:17:13
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpfpru29z4/gdk-pixbuf2-modules-extra-2.44.0-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpfpru29z4/gdk-pixbuf2-modules-extra-2.44.0-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9