Newly introduced findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-121): [#def1]
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:673:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:130:1: enter_function: entry to ‘gdk_dmabuf_do_download_mmap’
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:145:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:150:19: branch_false: following ‘false’ branch (when ‘i <= j’)...
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:155:10: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:155:10: branch_false: following ‘false’ branch (when ‘i <= j’)...
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:162:21: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:162:21: call_function: calling ‘gdk_dmabuf_mmap’ from ‘gdk_dmabuf_do_download_mmap’
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:162:21: return_function: returning to ‘gdk_dmabuf_do_download_mmap’ from ‘gdk_dmabuf_mmap’
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:163:10: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:165:7: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:168:7: call_function: calling ‘gdk_memory_layout_init_from_dmabuf’ from ‘gdk_dmabuf_do_download_mmap’
#  671|     for (i = 0; i < dmabuf->n_planes; i++)
#  672|       {
#  673|->       self->planes[i].offset = dmabuf->planes[i].offset;
#  674|         self->planes[i].stride = dmabuf->planes[i].stride;
#  675|       }

Error: GCC_ANALYZER_WARNING (CWE-121): [#def2]
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:674:7: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:130:1: enter_function: entry to ‘gdk_dmabuf_do_download_mmap’
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:145:6: branch_false: following ‘false’ branch...
 branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:150:19: branch_false: following ‘false’ branch (when ‘i <= j’)...
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:155:10: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:155:10: branch_false: following ‘false’ branch (when ‘i <= j’)...
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:162:21: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:162:21: call_function: calling ‘gdk_dmabuf_mmap’ from ‘gdk_dmabuf_do_download_mmap’
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:162:21: return_function: returning to ‘gdk_dmabuf_do_download_mmap’ from ‘gdk_dmabuf_mmap’
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:163:10: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:165:7: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkdmabuf.c:168:7: call_function: calling ‘gdk_memory_layout_init_from_dmabuf’ from ‘gdk_dmabuf_do_download_mmap’
#  672|       {
#  673|         self->planes[i].offset = dmabuf->planes[i].offset;
#  674|->       self->planes[i].stride = dmabuf->planes[i].stride;
#  675|       }
#  676|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def3]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:465:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:465:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:465:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:465:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:465:1: danger: use of uninitialized value ‘x’ here
#  463|   #pragma warning( disable : 4333)
#  464|   #endif
#  465|-> NV12_FUNCS (nv12, guchar, 0, 255, FALSE, 2, 2)
#  466|   NV12_FUNCS (nv21, guchar, 0, 255, TRUE, 2, 2)
#  467|   NV12_FUNCS (nv16, guchar, 0, 255, FALSE, 2, 1)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def4]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:466:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:466:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:466:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:466:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:466:1: danger: use of uninitialized value ‘x’ here
#  464|   #endif
#  465|   NV12_FUNCS (nv12, guchar, 0, 255, FALSE, 2, 2)
#  466|-> NV12_FUNCS (nv21, guchar, 0, 255, TRUE, 2, 2)
#  467|   NV12_FUNCS (nv16, guchar, 0, 255, FALSE, 2, 1)
#  468|   NV12_FUNCS (nv61, guchar, 0, 255, TRUE, 2, 1)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:467:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:467:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:467:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:467:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:467:1: danger: use of uninitialized value ‘x’ here
#  465|   NV12_FUNCS (nv12, guchar, 0, 255, FALSE, 2, 2)
#  466|   NV12_FUNCS (nv21, guchar, 0, 255, TRUE, 2, 2)
#  467|-> NV12_FUNCS (nv16, guchar, 0, 255, FALSE, 2, 1)
#  468|   NV12_FUNCS (nv61, guchar, 0, 255, TRUE, 2, 1)
#  469|   NV12_FUNCS (nv24, guchar, 0, 255, FALSE, 1, 1)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def6]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:468:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:468:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:468:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:468:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:468:1: danger: use of uninitialized value ‘x’ here
#  466|   NV12_FUNCS (nv21, guchar, 0, 255, TRUE, 2, 2)
#  467|   NV12_FUNCS (nv16, guchar, 0, 255, FALSE, 2, 1)
#  468|-> NV12_FUNCS (nv61, guchar, 0, 255, TRUE, 2, 1)
#  469|   NV12_FUNCS (nv24, guchar, 0, 255, FALSE, 1, 1)
#  470|   NV12_FUNCS (nv42, guchar, 0, 255, TRUE, 1, 1)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def7]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:469:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:469:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:469:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:469:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:469:1: danger: use of uninitialized value ‘x’ here
#  467|   NV12_FUNCS (nv16, guchar, 0, 255, FALSE, 2, 1)
#  468|   NV12_FUNCS (nv61, guchar, 0, 255, TRUE, 2, 1)
#  469|-> NV12_FUNCS (nv24, guchar, 0, 255, FALSE, 1, 1)
#  470|   NV12_FUNCS (nv42, guchar, 0, 255, TRUE, 1, 1)
#  471|   NV12_FUNCS (p010, guint16, 6, 1023, FALSE, 2, 2)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def8]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:470:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:470:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:470:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:470:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:470:1: danger: use of uninitialized value ‘x’ here
#  468|   NV12_FUNCS (nv61, guchar, 0, 255, TRUE, 2, 1)
#  469|   NV12_FUNCS (nv24, guchar, 0, 255, FALSE, 1, 1)
#  470|-> NV12_FUNCS (nv42, guchar, 0, 255, TRUE, 1, 1)
#  471|   NV12_FUNCS (p010, guint16, 6, 1023, FALSE, 2, 2)
#  472|   NV12_FUNCS (p012, guint16, 4, 4095, FALSE, 2, 2)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def9]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:471:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:471:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:471:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:471:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:471:1: danger: use of uninitialized value ‘x’ here
#  469|   NV12_FUNCS (nv24, guchar, 0, 255, FALSE, 1, 1)
#  470|   NV12_FUNCS (nv42, guchar, 0, 255, TRUE, 1, 1)
#  471|-> NV12_FUNCS (p010, guint16, 6, 1023, FALSE, 2, 2)
#  472|   NV12_FUNCS (p012, guint16, 4, 4095, FALSE, 2, 2)
#  473|   NV12_FUNCS (p016, guint16, 0, 65535, FALSE, 2, 2)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def10]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:472:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:472:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:472:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:472:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:472:1: danger: use of uninitialized value ‘x’ here
#  470|   NV12_FUNCS (nv42, guchar, 0, 255, TRUE, 1, 1)
#  471|   NV12_FUNCS (p010, guint16, 6, 1023, FALSE, 2, 2)
#  472|-> NV12_FUNCS (p012, guint16, 4, 4095, FALSE, 2, 2)
#  473|   NV12_FUNCS (p016, guint16, 0, 65535, FALSE, 2, 2)
#  474|   #ifdef _MSC_VER

Error: GCC_ANALYZER_WARNING (CWE-457): [#def11]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:473:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:473:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:473:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:473:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:473:1: danger: use of uninitialized value ‘x’ here
#  471|   NV12_FUNCS (p010, guint16, 6, 1023, FALSE, 2, 2)
#  472|   NV12_FUNCS (p012, guint16, 4, 4095, FALSE, 2, 2)
#  473|-> NV12_FUNCS (p016, guint16, 0, 65535, FALSE, 2, 2)
#  474|   #ifdef _MSC_VER
#  475|   #pragma warning( pop )

Error: GCC_ANALYZER_WARNING (CWE-457): [#def12]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:478:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:478:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:478:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:478:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:478:1: danger: use of uninitialized value ‘x’ here
#  476|   #endif
#  477|   
#  478|-> YUV3_FUNCS (yuv410, FALSE, 4, 4)
#  479|   YUV3_FUNCS (yvu410, TRUE, 4, 4)
#  480|   YUV3_FUNCS (yuv411, FALSE, 4, 1)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def13]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:479:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:479:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:479:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:479:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:479:1: danger: use of uninitialized value ‘x’ here
#  477|   
#  478|   YUV3_FUNCS (yuv410, FALSE, 4, 4)
#  479|-> YUV3_FUNCS (yvu410, TRUE, 4, 4)
#  480|   YUV3_FUNCS (yuv411, FALSE, 4, 1)
#  481|   YUV3_FUNCS (yvu411, TRUE, 4, 1)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def14]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:480:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:480:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:480:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:480:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:480:1: danger: use of uninitialized value ‘x’ here
#  478|   YUV3_FUNCS (yuv410, FALSE, 4, 4)
#  479|   YUV3_FUNCS (yvu410, TRUE, 4, 4)
#  480|-> YUV3_FUNCS (yuv411, FALSE, 4, 1)
#  481|   YUV3_FUNCS (yvu411, TRUE, 4, 1)
#  482|   YUV3_FUNCS (yuv420, FALSE, 2, 2)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def15]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:481:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:481:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:481:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:481:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:481:1: danger: use of uninitialized value ‘x’ here
#  479|   YUV3_FUNCS (yvu410, TRUE, 4, 4)
#  480|   YUV3_FUNCS (yuv411, FALSE, 4, 1)
#  481|-> YUV3_FUNCS (yvu411, TRUE, 4, 1)
#  482|   YUV3_FUNCS (yuv420, FALSE, 2, 2)
#  483|   YUV3_FUNCS (yvu420, TRUE, 2, 2)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def16]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:482:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:482:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:482:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:482:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:482:1: danger: use of uninitialized value ‘x’ here
#  480|   YUV3_FUNCS (yuv411, FALSE, 4, 1)
#  481|   YUV3_FUNCS (yvu411, TRUE, 4, 1)
#  482|-> YUV3_FUNCS (yuv420, FALSE, 2, 2)
#  483|   YUV3_FUNCS (yvu420, TRUE, 2, 2)
#  484|   YUV3_FUNCS (yuv422, FALSE, 2, 1)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def17]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:483:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:483:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:483:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:483:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:483:1: danger: use of uninitialized value ‘x’ here
#  481|   YUV3_FUNCS (yvu411, TRUE, 4, 1)
#  482|   YUV3_FUNCS (yuv420, FALSE, 2, 2)
#  483|-> YUV3_FUNCS (yvu420, TRUE, 2, 2)
#  484|   YUV3_FUNCS (yuv422, FALSE, 2, 1)
#  485|   YUV3_FUNCS (yvu422, TRUE, 2, 1)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def18]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:484:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:484:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:484:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:484:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:484:1: danger: use of uninitialized value ‘x’ here
#  482|   YUV3_FUNCS (yuv420, FALSE, 2, 2)
#  483|   YUV3_FUNCS (yvu420, TRUE, 2, 2)
#  484|-> YUV3_FUNCS (yuv422, FALSE, 2, 1)
#  485|   YUV3_FUNCS (yvu422, TRUE, 2, 1)
#  486|   YUV3_FUNCS (yuv444, FALSE, 1, 1)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def19]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:485:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:485:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:485:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:485:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:485:1: danger: use of uninitialized value ‘x’ here
#  483|   YUV3_FUNCS (yvu420, TRUE, 2, 2)
#  484|   YUV3_FUNCS (yuv422, FALSE, 2, 1)
#  485|-> YUV3_FUNCS (yvu422, TRUE, 2, 1)
#  486|   YUV3_FUNCS (yuv444, FALSE, 1, 1)
#  487|   YUV3_FUNCS (yvu444, TRUE, 1, 1)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def20]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:486:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:486:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:486:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:486:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:486:1: danger: use of uninitialized value ‘x’ here
#  484|   YUV3_FUNCS (yuv422, FALSE, 2, 1)
#  485|   YUV3_FUNCS (yvu422, TRUE, 2, 1)
#  486|-> YUV3_FUNCS (yuv444, FALSE, 1, 1)
#  487|   YUV3_FUNCS (yvu444, TRUE, 1, 1)
#  488|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def21]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:487:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:487:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:487:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:487:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:487:1: danger: use of uninitialized value ‘x’ here
#  485|   YUV3_FUNCS (yvu422, TRUE, 2, 1)
#  486|   YUV3_FUNCS (yuv444, FALSE, 1, 1)
#  487|-> YUV3_FUNCS (yvu444, TRUE, 1, 1)
#  488|   
#  489|   YUYV_FUNCS (yuyv, 0, 1, 3)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def22]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:489:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:489:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:489:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:489:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:489:1: danger: use of uninitialized value ‘x’ here
#  487|   YUV3_FUNCS (yvu444, TRUE, 1, 1)
#  488|   
#  489|-> YUYV_FUNCS (yuyv, 0, 1, 3)
#  490|   YUYV_FUNCS (yvyu, 0, 3, 1)
#  491|   YUYV_FUNCS (uyvy, 1, 0, 2)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def23]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:490:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:490:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:490:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:490:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:490:1: danger: use of uninitialized value ‘x’ here
#  488|   
#  489|   YUYV_FUNCS (yuyv, 0, 1, 3)
#  490|-> YUYV_FUNCS (yvyu, 0, 3, 1)
#  491|   YUYV_FUNCS (uyvy, 1, 0, 2)
#  492|   YUYV_FUNCS (vyuy, 1, 2, 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def24]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:491:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:491:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:491:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:491:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:491:1: danger: use of uninitialized value ‘x’ here
#  489|   YUYV_FUNCS (yuyv, 0, 1, 3)
#  490|   YUYV_FUNCS (yvyu, 0, 3, 1)
#  491|-> YUYV_FUNCS (uyvy, 1, 0, 2)
#  492|   YUYV_FUNCS (vyuy, 1, 2, 0)
#  493|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def25]
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:492:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘x’
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:492:1: branch_true: following ‘true’ branch...
 branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:492:1: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:492:1: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/gdkmemoryformat.c:492:1: danger: use of uninitialized value ‘x’ here
#  490|   YUYV_FUNCS (yvyu, 0, 3, 1)
#  491|   YUYV_FUNCS (uyvy, 1, 0, 2)
#  492|-> YUYV_FUNCS (vyuy, 1, 2, 0)
#  493|   
#  494|   static void

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
gtk-4.19.0/redhat-linux-build/../gdk/wayland/gdksettings-wayland.c:157:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
gtk-4.19.0/redhat-linux-build/../gdk/wayland/gdksettings-wayland.c:462:1: enter_function: entry to ‘settings_portal_changed’
gtk-4.19.0/redhat-linux-build/../gdk/wayland/gdksettings-wayland.c:477:15: call_function: calling ‘find_translation_entry_by_schema’ from ‘settings_portal_changed’
gtk-4.19.0/redhat-linux-build/../gdk/wayland/gdksettings-wayland.c:477:15: return_function: returning to ‘settings_portal_changed’ from ‘find_translation_entry_by_schema’
gtk-4.19.0/redhat-linux-build/../gdk/wayland/gdksettings-wayland.c:478:10: branch_true: following ‘true’ branch...
gtk-4.19.0/redhat-linux-build/../gdk/wayland/gdksettings-wayland.c:480:21: branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gdk/wayland/gdksettings-wayland.c:484:11: call_function: calling ‘apply_portal_setting’ from ‘settings_portal_changed’
#  155|         g_assert (entry);
#  156|   
#  157|->       if (entry->valid)
#  158|           {
#  159|             antialiasing = entry->fallback.i;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
gtk-4.19.0/redhat-linux-build/../gtk/deprecated/gtktreeview.c:12429:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
gtk-4.19.0/redhat-linux-build/../gtk/deprecated/gtktreeview.c:6579:1: enter_function: entry to ‘_gtk_tree_view_column_autosize’
gtk-4.19.0/redhat-linux-build/../gtk/deprecated/gtktreeview.c:6583:3: branch_false: following ‘false’ branch (when ‘column’ is non-NULL)...
gtk-4.19.0/redhat-linux-build/../gtk/deprecated/gtktreeview.c:6583:3: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gtk/deprecated/gtktreeview.c:6587:3: call_function: calling ‘do_presize_handler’ from ‘_gtk_tree_view_column_autosize’
#12427|      * than expander_size and should not be overruled here.
#12428|      */
#12429|->   height = GTK_TREE_RBNODE_GET_HEIGHT (node);
#12430|     if (height <= 0)
#12431|       height = expander_size;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def28]
gtk-4.19.0/redhat-linux-build/../gtk/deprecated/gtktreeview.c:14063:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘node’
gtk-4.19.0/redhat-linux-build/../gtk/deprecated/gtktreeview.c:14035:18: release_memory: ‘node’ is NULL
gtk-4.19.0/redhat-linux-build/../gtk/deprecated/gtktreeview.c:14063:15: release_memory: ‘node’ is NULL
gtk-4.19.0/redhat-linux-build/../gtk/deprecated/gtktreeview.c:14063:11: danger: dereference of NULL ‘node’
#14061|           }
#14062|   
#14063|->       if (node->children)
#14064|   	{
#14065|   	  gboolean has_child;

Error: GCC_ANALYZER_WARNING (CWE-121): [#def29]
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:1407:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:1886:1: enter_function: entry to ‘end_element’
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:1905:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:1936:12: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:1936:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:1960:12: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:1960:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:1961:12: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:1960:12: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2014:12: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2014:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2022:12: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2022:11: branch_false: following ‘false’ branch (when the strings are non-equal)...
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2034:12: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2038:41: call_function: calling ‘state_pop’ from ‘end_element’
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2038:41: return_function: returning to ‘end_element’ from ‘state_pop’
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2039:33: call_function: calling ‘state_peek’ from ‘end_element’
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2039:33: return_function: returning to ‘end_element’ from ‘state_peek’
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2042:10: branch_false: following ‘false’ branch...
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2048:15: branch_false: ...to here
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2048:15: branch_true: following ‘true’ branch...
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2052:72: branch_true: ...to here
gtk-4.19.0/redhat-linux-build/../gtk/gtkbuilderparser.c:2052:30: call_function: calling ‘expression_info_construct’ from ‘end_element’
# 1405|           for (l = info->closure.params; l; l = l->next)
# 1406|             {
# 1407|->             params[--i] = expression_info_construct (builder, domain, l->data, error);
# 1408|               if (params[i] == NULL)
# 1409|                 return NULL;

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.86.0
diffbase-analyzer-version-cppcheck2.17.1
diffbase-analyzer-version-gcc15.0.1
diffbase-analyzer-version-gcc-analyzer15.0.1
diffbase-analyzer-version-shellcheck0.10.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-29.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-namegtk4-4.18.2-1.fc42
diffbase-store-results-to/tmp/tmpkcw0magq/gtk4-4.18.2-1.fc42.tar.xz
diffbase-time-created2025-04-25 12:57:12
diffbase-time-finished2025-04-25 13:20:56
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpkcw0magq/gtk4-4.18.2-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpkcw0magq/gtk4-4.18.2-1.fc42.src.rpm'
diffbase-tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-29.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namegtk4-4.19.0-1.fc43
store-results-to/tmp/tmpmmpa4epi/gtk4-4.19.0-1.fc43.tar.xz
time-created2025-04-25 13:21:21
time-finished2025-04-25 13:44:35
titleNewly introduced findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpmmpa4epi/gtk4-4.19.0-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpmmpa4epi/gtk4-4.19.0-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9