xorg-x11-server-Xwayland-24.1.4-1.fc42

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c: scope_hint: In function ‘PanoramiXMaybeAddDepth’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:748:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘PanoramiXDepths’
#  746|       PanoramiXDepths = reallocarray(PanoramiXDepths,
#  747|                                      PanoramiXNumDepths, sizeof(DepthRec));
#  748|->     PanoramiXDepths[j].depth = pDepth->depth;
#  749|       PanoramiXDepths[j].numVids = 0;
#  750|       PanoramiXDepths[j].vids = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c: scope_hint: In function ‘PanoramiXConsolidate’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:820:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘root’
#  818|   
#  819|       root = malloc(sizeof(PanoramiXRes));
#  820|->     root->type = XRT_WINDOW;
#  821|       defmap = malloc(sizeof(PanoramiXRes));
#  822|       defmap->type = XRT_COLORMAP;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:822:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘defmap’
#  820|       root->type = XRT_WINDOW;
#  821|       defmap = malloc(sizeof(PanoramiXRes));
#  822|->     defmap->type = XRT_COLORMAP;
#  823|       saver = malloc(sizeof(PanoramiXRes));
#  824|       saver->type = XRT_WINDOW;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:824:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘saver’
#  822|       defmap->type = XRT_COLORMAP;
#  823|       saver = malloc(sizeof(PanoramiXRes));
#  824|->     saver->type = XRT_WINDOW;
#  825|   
#  826|       FOR_NSCREENS(i) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:838:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*root.info[0].id’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:45: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:826:5: note: in expansion of macro ‘FOR_NSCREENS’
#  836|       }
#  837|   
#  838|->     AddResource(root->info[0].id, XRT_WINDOW, root);
#  839|       AddResource(saver->info[0].id, XRT_WINDOW, saver);
#  840|       AddResource(defmap->info[0].id, XRT_COLORMAP, defmap);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c: scope_hint: In function ‘CopyBits’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:1126:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:1112:23: note: in definition of macro ‘SHIFT_L’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:1170:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:1170:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/region.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/window.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:35: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c: scope_hint: In function ‘CopyBits’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:1112:23: note: in definition of macro ‘SHIFT_L’
# 1124|   
# 1125|       while (bytes--) {
# 1126|->         *dst |= SHIFT_L(*src, shiftL);
# 1127|           *(dst + 1) |= SHIFT_R(*src, shiftR);
# 1128|           dst++;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def7]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c: scope_hint: In function ‘XineramaGetImageData’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:1253:33: warning[-Wanalyzer-null-argument]: use of NULL ‘ScratchMem’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:1170:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:1170:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c: scope_hint: In function ‘XineramaGetImageData’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
# 1251|                           if (w) {
# 1252|                               if (!shift)
# 1253|->                                 memcpy(data + index, ScratchMem + index2, w);
# 1254|                               else
# 1255|                                   CopyBits(data + index, shift,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def8]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:1276:25: warning[-Wanalyzer-null-argument]: use of NULL ‘ScratchMem’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:1170:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c: scope_hint: In function ‘XineramaGetImageData’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:49: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.c:1270:25: note: in expansion of macro ‘BitsPerPixel’
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
# 1274|   
# 1275|                       for (j = 0; j < h; j++) {
# 1276|->                         memcpy(data + (pitch * (y + j)) + x,
# 1277|                                  ScratchMem + (ScratchPitch * j), w);
# 1278|                       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def9]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXCopyArea’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1137:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pGC’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:151: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:35: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1061:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:45: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1068:17: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1075:17: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1121:9: note: in expansion of macro ‘FOR_NSCREENS_BACKWARD’
# 1135|           free(data);
# 1136|   
# 1137|->         if (pGC->graphicsExposures) {
# 1138|               RegionRec rgn;
# 1139|               int dx, dy;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def10]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyPoint’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1399:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origPts’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1380:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1387:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/window.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1398:19: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1398:19: note: in expansion of macro ‘xallocarray’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1397|       if (npoint > 0) {
# 1398|           origPts = xallocarray(npoint, sizeof(xPoint));
# 1399|->         memcpy((char *) origPts, (char *) &stuff[1], npoint * sizeof(xPoint));
# 1400|           FOR_NSCREENS_FORWARD(j) {
# 1401|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def11]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyLine’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1464:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origPts’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1445:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1452:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1460:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1463:19: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1463:19: note: in expansion of macro ‘xallocarray’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1462|       if (npoint > 0) {
# 1463|           origPts = xallocarray(npoint, sizeof(xPoint));
# 1464|->         memcpy((char *) origPts, (char *) &stuff[1], npoint * sizeof(xPoint));
# 1465|           FOR_NSCREENS_FORWARD(j) {
# 1466|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def12]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolySegment’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1533:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origSegs’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1510:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1517:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1525:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1532:20: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1532:20: note: in expansion of macro ‘xallocarray’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1531|       if (nsegs > 0) {
# 1532|           origSegs = xallocarray(nsegs, sizeof(xSegment));
# 1533|->         memcpy((char *) origSegs, (char *) &stuff[1], nsegs * sizeof(xSegment));
# 1534|           FOR_NSCREENS_FORWARD(j) {
# 1535|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def13]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyRectangle’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1601:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origRecs’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1578:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1585:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1593:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1600:20: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1600:20: note: in expansion of macro ‘xallocarray’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1599|       if (nrects > 0) {
# 1600|           origRecs = xallocarray(nrects, sizeof(xRectangle));
# 1601|->         memcpy((char *) origRecs, (char *) &stuff[1],
# 1602|                  nrects * sizeof(xRectangle));
# 1603|           FOR_NSCREENS_FORWARD(j) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def14]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyArc’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1668:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origArcs’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1645:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1652:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1660:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1667:20: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1667:20: note: in expansion of macro ‘xallocarray’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1666|       if (narcs > 0) {
# 1667|           origArcs = xallocarray(narcs, sizeof(xArc));
# 1668|->         memcpy((char *) origArcs, (char *) &stuff[1], narcs * sizeof(xArc));
# 1669|           FOR_NSCREENS_FORWARD(j) {
# 1670|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def15]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXFillPoly’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1730:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘locPts’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1710:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1717:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1725:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1729:18: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1729:18: note: in expansion of macro ‘xallocarray’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1728|       if (count > 0) {
# 1729|           locPts = xallocarray(count, sizeof(DDXPointRec));
# 1730|->         memcpy((char *) locPts, (char *) &stuff[1],
# 1731|                  count * sizeof(DDXPointRec));
# 1732|           FOR_NSCREENS_FORWARD(j) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def16]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyFillRectangle’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1799:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origRects’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1776:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1783:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1791:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1798:21: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1798:21: note: in expansion of macro ‘xallocarray’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1797|       if (things > 0) {
# 1798|           origRects = xallocarray(things, sizeof(xRectangle));
# 1799|->         memcpy((char *) origRects, (char *) &stuff[1],
# 1800|                  things * sizeof(xRectangle));
# 1801|           FOR_NSCREENS_FORWARD(j) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def17]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyFillArc’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1866:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origArcs’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1843:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1850:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1858:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1865:20: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXprocs.c:1865:20: note: in expansion of macro ‘xallocarray’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1864|       if (narcs > 0) {
# 1865|           origArcs = xallocarray(narcs, sizeof(xArc));
# 1866|->         memcpy((char *) origArcs, (char *) &stuff[1], narcs * sizeof(xArc));
# 1867|           FOR_NSCREENS_FORWARD(j) {
# 1868|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:1004:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rects’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:1194:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:1195:5: note: in expansion of macro ‘swapl’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:951:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:197:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:963:18: note: in expansion of macro ‘wInputShape’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c: scope_hint: In function ‘ProcShapeGetRectangles’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:1000:17: note: in expansion of macro ‘xallocarray’
# 1002|               return BadAlloc;
# 1003|           for (i = 0; i < nrects; i++, box++) {
# 1004|->             rects[i].x = box->x1;
# 1005|               rects[i].y = box->y1;
# 1006|               rects[i].width = box->x2 - box->x1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shm.c: scope_hint: In function ‘ShmInitScreenPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shm.c:214:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘screen_priv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shm.c:210:37: note: in expansion of macro ‘ShmGetScreenPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shm.c:48: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘ShmInitScreenPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shm.c:210:37: note: in expansion of macro ‘ShmGetScreenPriv’
#  212|       if (!screen_priv) {
#  213|           screen_priv = calloc(1, sizeof(ShmScrPrivateRec));
#  214|->         screen_priv->CloseScreen = pScreen->CloseScreen;
#  215|           dixSetPrivate(&pScreen->devPrivates, shmScrPrivateKey, screen_priv);
#  216|           pScreen->CloseScreen = ShmCloseScreen;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def20]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c: scope_hint: In function ‘IdleTimeQueryValue’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c:2650:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c:61: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:428:25: note: in expansion of macro ‘__BUG_WARN_MSG’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c:121:5: note: in expansion of macro ‘BUG_WARN’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:417:20: note: in definition of macro ‘__BUG_WARN_MSG’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c:121:5: note: in expansion of macro ‘BUG_WARN’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c:121:15: note: in expansion of macro ‘IsSystemCounter’
# 2648|           SyncCounter *counter = pCounter;
# 2649|           IdleCounterPriv *priv = SysCounterGetPrivate(counter);
# 2650|->         deviceid = priv->deviceid;
# 2651|       }
# 2652|       else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c: scope_hint: In function ‘IdleTimeBlockHandler’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c:2663:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2661|       SyncCounter *counter = pCounter;
# 2662|       IdleCounterPriv *priv = SysCounterGetPrivate(counter);
# 2663|->     int64_t *less = priv->value_less;
# 2664|       int64_t *greater = priv->value_greater;
# 2665|       int64_t idle, old_idle;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def22]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c: scope_hint: In function ‘IdleTimeWakeupHandler’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c:2753:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2751|       SyncCounter *counter = pCounter;
# 2752|       IdleCounterPriv *priv = SysCounterGetPrivate(counter);
# 2753|->     int64_t *less = priv->value_less;
# 2754|       int64_t *greater = priv->value_greater;
# 2755|       int64_t idle;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def23]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c: scope_hint: In function ‘IdleTimeBracketValues’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c:2786:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2784|       SyncCounter *counter = pCounter;
# 2785|       IdleCounterPriv *priv = SysCounterGetPrivate(counter);
# 2786|->     int64_t *less = priv->value_less;
# 2787|       int64_t *greater = priv->value_greater;
# 2788|       Bool registered = (less || greater);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c: scope_hint: In function ‘init_system_idle_counter’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c:2823:48: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘priv’
# 2821|           IdleCounterPriv *priv = malloc(sizeof(IdleCounterPriv));
# 2822|   
# 2823|->         priv->value_less = priv->value_greater = NULL;
# 2824|           priv->deviceid = deviceid;
# 2825|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/sync.c:2829:12: warning[-Wanalyzer-malloc-leak]: leak of ‘priv’
# 2827|       }
# 2828|   
# 2829|->     return idle_time_counter;
# 2830|   }
# 2831|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def26]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:96:5: warning[-Wanalyzer-null-argument]: use of NULL ‘VidModeCreateMode()’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c: scope_hint: In function ‘ProcVidModeValidateModeLine’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:188:13: note: in expansion of macro ‘VM_GETPRIV’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:42: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘ProcVidModeValidateModeLine’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:188:13: note: in expansion of macro ‘VM_GETPRIV’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:41: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:1879:9: note: in expansion of macro ‘swaps’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:1880:9: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:1881:9: note: in expansion of macro ‘swapl’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:188:13: note: in expansion of macro ‘VM_GETPRIV’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘ProcVidModeValidateModeLine’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:188:13: note: in expansion of macro ‘VM_GETPRIV’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:893:9: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘ProcVidModeValidateModeLine’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘ProcVidModeValidateModeLine’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c: scope_hint: In function ‘ProcVidModeValidateModeLine’
<built-in>: scope_hint: In function ‘ProcVidModeValidateModeLine’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   94|   VidModeCopyMode(DisplayModePtr modefrom, DisplayModePtr modeto)
#   95|   {
#   96|->     memcpy(modeto, modefrom, sizeof(DisplayModeRec));
#   97|   }
#   98|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c: scope_hint: In function ‘ProcVidModeGetDotClocks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:1377:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Clocks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:1983:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:1984:5: note: in expansion of macro ‘swaps’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c:1333:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘ProcVidModeGetDotClocks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/vidmode.c: scope_hint: In function ‘ProcVidModeGetDotClocks’
# 1375|       if (!ClockProg) {
# 1376|           for (n = 0; n < numClocks; n++) {
# 1377|->             dotclock = Clocks[n];
# 1378|               if (client->swapped) {
# 1379|                   WriteSwappedDataToClient(client, 4, (char *) &dotclock);

Error: GCC_ANALYZER_WARNING (CWE-590): [#def28]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:141:9: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘it’ which points to memory on the stack
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:1067:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/gc.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:1068:5: note: in expansion of macro ‘swapl’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:1069:5: note: in expansion of macro ‘REQUEST_FIXED_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:959:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:91:16: note: in definition of macro ‘REQUEST_FIXED_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:962:5: note: in expansion of macro ‘REQUEST_FIXED_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:152: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/resource.h:96:41: note: in expansion of macro ‘RESOURCE_CLIENT_BITS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/resource.h:98:33: note: in expansion of macro ‘RESOURCE_CLIENT_MASK’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/resource.h:100:30: note: in expansion of macro ‘CLIENT_BITS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:918:25: note: in expansion of macro ‘CLIENT_ID’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:139:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c: scope_hint: In function ‘DestroyFragments’
#  139|       xorg_list_for_each_entry_safe(it, tmp, frags, l) {
#  140|           xorg_list_del(&it->l);
#  141|->         free(it);
#  142|       }
#  143|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c: scope_hint: In function ‘ProcXResQueryClients.part.0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:233:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘current_clients’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:228:23: note: in expansion of macro ‘xallocarray’
#  231|       for (i = 0; i < currentMaxClients; i++) {
#  232|           if (clients[i]) {
#  233|->             current_clients[num_clients] = i;
#  234|               num_clients++;
#  235|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xselinux_ext.c: scope_hint: In function ‘SELinuxPopulateItem’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xselinux_ext.c:322:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘i’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/selection.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xselinux_ext.c:24: included_from: Included from here.
#  320|           return BadValue;
#  321|   
#  322|->     i->id = id;
#  323|       i->octx_len = bytes_to_int32(strlen(i->octx) + 1);
#  324|       i->dctx_len = bytes_to_int32(strlen(i->dctx) + 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xselinux_ext.c: scope_hint: In function ‘SELinuxFreeItems’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xselinux_ext.c:336:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘items’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘SELinuxFreeItems’
#  334|   
#  335|       for (k = 0; k < count; k++) {
#  336|->         freecon(items[k].octx);
#  337|           freecon(items[k].dctx);
#  338|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xselinux_ext.c: scope_hint: In function ‘SELinuxSendItemsToClient’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xselinux_ext.c:358:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
#  356|       /* Fill in the buffer */
#  357|       for (k = 0; k < count; k++) {
#  358|->         buf[pos] = items[k].id;
#  359|           if (client->swapped)
#  360|               swapl(buf + pos);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xselinux_label.c: scope_hint: In function ‘SELinuxAtomToSID’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xselinux_label.c:142:18: warning[-Wanalyzer-malloc-leak]: leak of ‘rec’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/callback.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/extnsionst.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/registry_priv.h:8: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xselinux_label.c:26: included_from: Included from here.
#  140|       if (!rec) {
#  141|           rec = calloc(1, sizeof(SELinuxAtomRec));
#  142|->         if (!rec || !SELinuxArraySet(&arr_atoms, atom, rec))
#  143|               return BadAlloc;
#  144|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xtest.c: scope_hint: In function ‘ProcXTestFakeInput’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xtest.c:383:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
#  381|       case KeyPress:
#  382|       case KeyRelease:
#  383|->         if (!dev->key)
#  384|               return BadDevice;
#  385|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xtest.c:395:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
#  393|           break;
#  394|       case MotionNotify:
#  395|->         if (!dev->valuator)
#  396|               return BadDevice;
#  397|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xtest.c:426:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
#  424|       case ButtonPress:
#  425|       case ButtonRelease:
#  426|->         if (!dev->button)
#  427|               return BadDevice;
#  428|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xtest.c:440:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
#  438|       valuator_mask_set_range(&mask, firstValuator, numValuators, valuators);
#  439|   
#  440|->     if (dev->sendEventsProc)
#  441|           (*dev->sendEventsProc) (dev, type, ev->u.u.detail, flags, &mask);
#  442|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def38]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xvdisp.c: scope_hint: In function ‘XineramifyXv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xvdisp.c:1787:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*port.info[0].id’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xvdisp.c:33: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘XineramifyXv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xvdisp.c:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xvdisp.c:1770:9: note: in expansion of macro ‘FOR_NSCREENS_FORWARD_SKIP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘XineramifyXv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xvdisp.c:1770:9: note: in expansion of macro ‘FOR_NSCREENS_FORWARD_SKIP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘XineramifyXv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xvdisp.c:1770:9: note: in expansion of macro ‘FOR_NSCREENS_FORWARD_SKIP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xvdisp.c:1781:13: note: in expansion of macro ‘FOR_NSCREENS’
# 1785|                       port->info[k].id = 0;
# 1786|               }
# 1787|->             AddResource(port->info[0].id, XvXRTPort, port);
# 1788|           }
# 1789|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c: scope_hint: In function ‘DeepCopyKeyboardClasses’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:492:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*to.key’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/input.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/inputstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:85: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:2394:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:2395:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:2396:5: note: in expansion of macro ‘BUG_RETURN_VAL’
#  490|                   continue;
#  491|               if (k->xkb_sli->flags & XkbSLI_IsDefault) {
#  492|->                 k->xkb_sli->names = to->key->xkbInfo->desc->names->indicators;
#  493|                   k->xkb_sli->maps = to->key->xkbInfo->desc->indicators->maps;
#  494|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c: scope_hint: In function ‘SelectForWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:2682:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:95: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:2682:23: note: in expansion of macro ‘wOtherInputMasks’
# 2680|               }
# 2681|           }
# 2682|->         for (others = wOtherInputMasks(pWin)->inputClients; others;
# 2683|                others = others->next) {
# 2684|               if (SameClient(others, client)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c: scope_hint: In function ‘MakeInputMasks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:2770:32: warning[-Wanalyzer-malloc-leak]: leak of ‘imasks’
# 2768|           return FALSE;
# 2769|       }
# 2770|->     pWin->optional->inputMasks = imasks;
# 2771|       return TRUE;
# 2772|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c: scope_hint: In function ‘DeviceEventSuppressForWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:3244:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘inputMasks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:3239:22: note: in expansion of macro ‘wOtherInputMasks’
# 3242|       RecalculateDeviceDeliverableEvents(pWin);
# 3243|       if (ShouldFreeInputMasks(pWin, FALSE))
# 3244|->         FreeResource(inputMasks->inputClients->resource, RT_NONE);
# 3245|       return Success;
# 3246|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c: scope_hint: In function ‘XISetEventMask’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:3338:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c: scope_hint: In function ‘XISetEventMask’
/usr/include/X11/extensions/XI2proto.h:61: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/inputstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:3338:18: note: in expansion of macro ‘wOtherInputMasks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:3338:18: note: in expansion of macro ‘wOtherInputMasks’
# 3336|           if (AddExtensionClient(win, client, 0, 0) != Success)
# 3337|               return BadAlloc;
# 3338|->         others = wOtherInputMasks(win)->inputClients;
# 3339|       }
# 3340|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getprop.c: scope_hint: In function ‘ClassFromMask’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getprop.c:163:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getprop.c:57: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getprop.c:102:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getprop.c:58: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getprop.c:116:19: note: in expansion of macro ‘wOtherInputMasks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getprop.c:116:19: note: in expansion of macro ‘wOtherInputMasks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/input.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/inputstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getprop.c:121:19: note: in expansion of macro ‘xallocarray’
#  161|                           (*count)++;
#  162|                       else
#  163|->                         *buf++ = (id << 8) | EventInfo[j].type;
#  164|                   }
#  165|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def45]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/listdev.c: scope_hint: In function ‘CopySwapDevice’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/listdev.c:171:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dev’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/listdev.c:59: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/listdev.c:343:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
#  169|       dev = (xDeviceInfoPtr) * buf;
#  170|   
#  171|->     dev->id = d->id;
#  172|       dev->type = d->xinput_type;
#  173|       dev->num_classes = num_classes;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def46]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/xibarriers.c:125:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘pbd’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/xibarriers.c:124:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/xibarriers.c:124:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
#  123|   
#  124|       xorg_list_for_each_entry_safe(pbd, tmp, &c->per_device, entry) {
#  125|->         free(pbd);
#  126|       }
#  127|       free(c);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/xibarriers.c: scope_hint: In function ‘add_master_func’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/xibarriers.c:716:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘AllocBarrierDevice()’
#  714|   
#  715|       pbd = AllocBarrierDevice();
#  716|->     pbd->deviceid = *deviceid;
#  717|   
#  718|       input_lock();

Error: GCC_ANALYZER_WARNING (CWE-476): [#def48]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/dixfonts.c: scope_hint: In function ‘doPolyText’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/dixfonts.c:1315:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘origGC’
# 1313|       if (client_state == START_SLEEP) {
# 1314|           /* Step 4 */
# 1315|->         if (pFont != origGC->font) {
# 1316|               ChangeGCVal val;
# 1317|   

Error: GCC_ANALYZER_WARNING (CWE-590): [#def49]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/dixfonts.c:1346:9: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘c’ which points to memory on the stack
# 1344|           FreeScratchGC(c->pGC);
# 1345|           free(c->data);
# 1346|->         free(c);
# 1347|       }
# 1348|       return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-590): [#def50]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/dixfonts.c: scope_hint: In function ‘doImageText’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/dixfonts.c:1492:9: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘c’ which points to memory on the stack
# 1490|           FreeScratchGC(c->pGC);
# 1491|           free(c->data);
# 1492|->         free(c);
# 1493|       }
# 1494|       return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/enterleave.c: scope_hint: In function ‘DeviceFocusEvent’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/enterleave.c:786:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xi2event’
#  784|   
#  785|       xi2event = calloc(1, len);
#  786|->     xi2event->type = GenericEvent;
#  787|       xi2event->extension = IReqCode;
#  788|       xi2event->evtype = type;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/events.c: scope_hint: In function ‘CheckPhysLimits’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/events.c:773:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pScreen’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/eventstr.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/eventconvert.h:33: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/events.c:110: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/events.c:5058:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:152: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/resource.h:98:27: note: in definition of macro ‘CLIENT_BITS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/events.c:5080:10: note: in expansion of macro ‘SameClient’
#  771|               if (pScreen != pSprite->hotPhys.pScreen)
#  772|                   pSprite->hotPhys = new;
#  773|->             (*pScreen->SetCursorPosition)
#  774|                   (pDev, pScreen, new.x, new.y, generateEvents);
#  775|           }

Error: GCC_ANALYZER_WARNING (CWE-122): [#def53]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/extension.c: scope_hint: In function ‘ProcListExtensions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/extension.c:297:23: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/extnsionst.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/registry_priv.h:8: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/extension.c:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/extension.c:266:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/extension.c:297:23: note: write of 1 byte to beyond the end of the region
#  295|                   continue;
#  296|   
#  297|->             *bufptr++ = len = strlen(extensions[i]->name);
#  298|               memcpy(bufptr, extensions[i]->name, len);
#  299|               bufptr += len;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/privates.c: scope_hint: In function ‘dixAllocatePrivates’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/privates.c:522:5: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/privates.c:56: included_from: Included from here.
#  520|   
#  521|       _dixInitPrivates(privates, p, type);
#  522|->     ++global_keys[type].allocated;
#  523|   
#  524|       return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c: scope_hint: In function ‘dixChangeWindowProperty’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:299:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*pWin.optional’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:151: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:213:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:231:5: note: in expansion of macro ‘REQUEST_FIXED_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:98:18: note: in expansion of macro ‘wUserProps’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:275:17: note: in expansion of macro ‘dixAllocateObjectWithPrivates’
#  297|               return rc;
#  298|           }
#  299|->         pProp->next = pWin->optional->userProps;
#  300|           pWin->optional->userProps = pProp;
#  301|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/ptrveloc.c: scope_hint: In function ‘InitPredictableAccelerationScheme’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/ptrveloc.c:155:32: warning[-Wanalyzer-malloc-leak]: leak of ‘schemeData’
#  153|       }
#  154|       /* all fine, assign scheme to device */
#  155|->     dev->valuator->accelScheme = scheme;
#  156|       return TRUE;
#  157|   }

Error: GCC_ANALYZER_WARNING (CWE-590): [#def57]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/region.c: scope_hint: In function ‘RegionBreak’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/region.c:172:62: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘&RegionEmptyData’ which points to memory not on the heap
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/region.c:338:5: note: in expansion of macro ‘xfreeData’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/region.c:82: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/region.c:338:5: note: in expansion of macro ‘xfreeData’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/region.c:338:5: note: in expansion of macro ‘xfreeData’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/region.c:338:5: note: in expansion of macro ‘xfreeData’
#  170|           ((r1)->y2 >= (r2)->y2) )
#  171|   
#  172|-> #define xfreeData(reg) if ((reg)->data && (reg)->data->size) free((reg)->data)
#  173|   
#  174|   #define RECTALLOC_BAIL(pReg,n,bail) \

Error: GCC_ANALYZER_WARNING (CWE-131): [#def58]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/swaprep.c: scope_hint: In function ‘CopySwap32Write’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/swaprep.c:99:22: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
#   97|   
#   98|       /* Allocate as big a buffer as we can... */
#   99|->     while (!(pbufT = malloc(bufsize))) {
#  100|           bufsize >>= 1;
#  101|           if (bufsize == 4) {

Error: GCC_ANALYZER_WARNING (CWE-131): [#def59]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/swaprep.c: scope_hint: In function ‘CopySwap16Write’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/swaprep.c:146:22: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
#  144|   
#  145|       /* Allocate as big a buffer as we can... */
#  146|->     while (!(pbufT = malloc(bufsize))) {
#  147|           bufsize >>= 1;
#  148|           if (bufsize == 4) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/window.c: scope_hint: In function ‘ChangeWindowDeviceCursor’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/window.c:3495:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pNewNode’
# 3493|   
# 3494|           pNewNode = malloc(sizeof(DevCursNodeRec));
# 3495|->         pNewNode->dev = pDev;
# 3496|           pNewNode->next = pWin->optional->deviceCursors;
# 3497|           pWin->optional->deviceCursors = pNewNode;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def61]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dri3/dri3_screen.c: scope_hint: In function ‘dri3_fd_from_pixmap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dri3/dri3_screen.c:143:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dri3/dri3_priv.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘dri3_fd_from_pixmap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dri3/dri3_screen.c: scope_hint: In function ‘dri3_fd_from_pixmap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dri3/dri3_screen.c: scope_hint: In function ‘dri3_fd_from_pixmap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dri3/dri3_screen.c:143:13: note: read of 4 bytes from after the end of ‘fds’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dri3/dri3_screen.c:143:13: note: valid subscripts for ‘fds’ are ‘[0]’ to ‘[3]’
#  141|           int i;
#  142|           for (i = 0; i < num_fds; i++)
#  143|->             close(fds[i]);
#  144|           return -1;
#  145|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dri3/dri3_screen.c: scope_hint: In function ‘cache_formats_and_modifiers’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dri3/dri3_screen.c:186:8: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)num_formats, 16)’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘cache_formats_and_modifiers’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dri3/dri3_screen.c: scope_hint: In function ‘cache_formats_and_modifiers’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dri3/dri3_screen.c: scope_hint: In function ‘cache_formats_and_modifiers’
#  184|   
#  185|       ds->formats = calloc(num_formats, sizeof(dri3_dmabuf_format_rec));
#  186|->     if (!ds->formats) {
#  187|           free(formats);
#  188|           return BadAlloc;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c: scope_hint: In function ‘glamor_close_screen’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c:926:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ps’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/pixmapstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.h:33: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c:37: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c:908:27: note: in expansion of macro ‘GetPictureScreenIfSet’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_close_screen’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c: scope_hint: In function ‘glamor_close_screen’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_close_screen’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_close_screen’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c: scope_hint: In function ‘glamor_close_screen’
#  924|       screen->BlockHandler = glamor_priv->saved_procs.block_handler;
#  925|   
#  926|->     ps->Composite = glamor_priv->saved_procs.composite;
#  927|       ps->Trapezoids = glamor_priv->saved_procs.trapezoids;
#  928|       ps->Triangles = glamor_priv->saved_procs.triangles;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c: scope_hint: In function ‘_glamor_fds_from_pixmap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c:1024:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c: scope_hint: In function ‘_glamor_fds_from_pixmap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘_glamor_fds_from_pixmap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c: scope_hint: In function ‘_glamor_fds_from_pixmap’
# 1022|       if (!glamor_priv->dri3_enabled)
# 1023|           return 0;
# 1024|->     switch (pixmap_priv->type) {
# 1025|       case GLAMOR_TEXTURE_DRM:
# 1026|       case GLAMOR_TEXTURE_ONLY:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c: scope_hint: In function ‘glamor_name_from_pixmap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c:1101:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.c: scope_hint: In function ‘glamor_name_from_pixmap’
# 1099|       glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap);
# 1100|   
# 1101|->     switch (pixmap_priv->type) {
# 1102|       case GLAMOR_TEXTURE_DRM:
# 1103|       case GLAMOR_TEXTURE_ONLY:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def66]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c:432:70: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘glyph_atlas’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_composite_glyphs’
#  430|                       /* Glyph not cached in current atlas?
#  431|                        */
#  432|->                     if (_X_UNLIKELY(glyph_priv->serial != glyph_atlas->serial)) {
#  433|                           if (!glamor_glyph_can_add(glyph_atlas, glyph_atlas_dim, glyph_draw)) {
#  434|                               if (glyphs_queued) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def67]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_core.c: scope_hint: In function ‘glamor_get_drawable_location’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_core.c:44:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_core.c: scope_hint: In function ‘glamor_get_drawable_location’
#   42|       glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap);
#   43|   
#   44|->     if (pixmap_priv->gl_fbo == GLAMOR_FBO_UNATTACHED)
#   45|           return 'm';
#   46|       else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c:287:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_attach_fbo’
#  285|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#  286|   
#  287|->     if (pixmap_priv->fbo)
#  288|           return;
#  289|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_exchange_fbos’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c:366:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_exchange_fbos’
#  364|       front_priv = glamor_get_pixmap_private(front);
#  365|       back_priv = glamor_get_pixmap_private(back);
#  366|->     temp_fbo = front_priv->fbo;
#  367|       front_priv->fbo = back_priv->fbo;
#  368|       back_priv->fbo = temp_fbo;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c:367:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_pixmap_exchange_fbos’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_exchange_fbos’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_exchange_fbos’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_exchange_fbos’
#  365|       back_priv = glamor_get_pixmap_private(back);
#  366|       temp_fbo = front_priv->fbo;
#  367|->     front_priv->fbo = back_priv->fbo;
#  368|       back_priv->fbo = temp_fbo;
#  369|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c:130:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
#  128|               DEBUGRegionPrint(current_region);
#  129|               if (RegionNumRects(current_region)) {
#  130|->                 clipped_regions[k].region = current_region;
#  131|                   clipped_regions[k].block_idx = temp_block_idx;
#  132|                   k++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c:235:38: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
#  233|                                                            reverse, upsidedown);
#  234|           for (j = 0; j < inner_n_regions; j++) {
#  235|->             result_regions[k].region = inner_regions[j].region;
#  236|               result_regions[k].block_idx = clipped_regions[i].block_idx;
#  237|               k++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c:365:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
#  363|       if (glamor_pixmap_priv_is_small(pixmap_priv)) {
#  364|           clipped_regions = calloc(1, sizeof(*clipped_regions));
#  365|->         clipped_regions[0].region = RegionCreate(NULL, 1);
#  366|           clipped_regions[0].block_idx = 0;
#  367|           RegionCopy(clipped_regions[0].region, region);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c:1175:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘source_pixmap_priv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
# 1173|           need_free_source_pixmap_priv = source_pixmap_priv;
# 1174|           source_pixmap_priv = malloc(sizeof(*source_pixmap_priv));
# 1175|->         *source_pixmap_priv = *need_free_source_pixmap_priv;
# 1176|           need_free_source_pixmap_priv = source_pixmap_priv;
# 1177|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_prepare.c: scope_hint: In function ‘glamor_prep_drawable_box’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_prepare.c:44:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_prepare.c: scope_hint: In function ‘glamor_prep_drawable_box’
#   42|       int                         off_x, off_y;
#   43|   
#   44|->     if (priv->type == GLAMOR_DRM_ONLY)
#   45|           return FALSE;
#   46|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_render.c:35: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_drm_only’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:458:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_drm_only’
#  456|       glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
#  457|   
#  458|->     return priv->type == GLAMOR_DRM_ONLY;
#  459|   }
#  460|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c:25: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_is_memory’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:469:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/Xprintf.h:29: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c:23: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_is_memory’
#  467|       glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
#  468|   
#  469|->     return priv->type == GLAMOR_MEMORY;
#  470|   }
#  471|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:502:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_has_fbo’
#  500|       glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
#  501|   
#  502|->     return priv->gl_fbo == GLAMOR_FBO_NORMAL;
#  503|   }
#  504|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:517:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_fbo_at’
#  515|   glamor_pixmap_fbo_at(glamor_pixmap_private *priv, int box)
#  516|   {
#  517|->     assert(box < priv->block_wcnt * priv->block_hcnt);
#  518|       return priv->fbo_array[box];
#  519|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_transform.c:23: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_box_at’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:524:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_transform.c: scope_hint: In function ‘glamor_pixmap_box_at’
#  522|   glamor_pixmap_box_at(glamor_pixmap_private *priv, int box)
#  523|   {
#  524|->     assert(box < priv->block_wcnt * priv->block_hcnt);
#  525|       return &priv->box_array[box];
#  526|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:537:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_dash.c: scope_hint: In function ‘glamor_dash_loop’
/usr/include/epoxy/gl.h:89: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_dash.c: scope_hint: In function ‘glamor_dash_loop’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_dash.c:213:5: note: in expansion of macro ‘glamor_pixmap_loop’
#  535|   glamor_pixmap_hcnt(glamor_pixmap_private *priv)
#  536|   {
#  537|->     return priv->block_hcnt;
#  538|   }
#  539|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def82]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:983: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_core.c: scope_hint: In function ‘glamor_validate_gc’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_utils.h:573:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_core.c:205:19: note: in expansion of macro ‘GLAMOR_PIXMAP_PRIV_HAS_FBO’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_core.c: scope_hint: In function ‘glamor_validate_gc’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_core.c:205:19: note: in expansion of macro ‘GLAMOR_PIXMAP_PRIV_HAS_FBO’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_core.c:205:19: note: in expansion of macro ‘GLAMOR_PIXMAP_PRIV_HAS_FBO’
#  571|                                                       && (_h_) <= _glamor_->max_fbo_size)
#  572|   
#  573|-> #define GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv)    (pixmap_priv->gl_fbo == GLAMOR_FBO_NORMAL)
#  574|   
#  575|   #define REVERT_NONE       		0

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:983: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c:31: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_utils.h: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_utils.h:671:42: warning[-Wanalyzer-malloc-leak]: leak of ‘glamor_create_fbo(glamor_get_screen_private(*pixmap.drawable.pScreen), pixmap, (int)*pixmap.drawable.width, (int)*pixmap.drawable.height,  flag)’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_attach_fbo’
#  669|   glamor_make_current(glamor_screen_private *glamor_priv)
#  670|   {
#  671|->     if (lastGLContext != glamor_priv->ctx.ctx) {
#  672|           lastGLContext = glamor_priv->ctx.ctx;
#  673|           glamor_priv->ctx.make_current(&glamor_priv->ctx);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def84]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c:488:53: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_pixmap_priv[1]’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c:417:18: note: in expansion of macro ‘REGION_RECTS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c:418:16: note: in expansion of macro ‘REGION_NUM_RECTS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
#  486|   
#  487|           glActiveTexture(GL_TEXTURE1);
#  488|->         glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[1]->fbo->tex);
#  489|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
#  490|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def85]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c:510:53: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_pixmap_priv[1]’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c:417:18: note: in expansion of macro ‘REGION_RECTS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c:418:16: note: in expansion of macro ‘REGION_NUM_RECTS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
#  508|   
#  509|           glActiveTexture(GL_TEXTURE1);
#  510|->         glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[1]->fbo->tex);
#  511|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
#  512|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glx/createcontext.c: scope_hint: In function ‘__glXDisp_CreateContextAttribsARB’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glx/createcontext.c:174:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘attribs’
#  172|   
#  173|       for (i = 0; i < req->numAttribs; i++) {
#  174|->         switch (attribs[i * 2]) {
#  175|           case GLX_CONTEXT_MAJOR_VERSION_ARB:
#  176|               major_version = attribs[2 * i + 1];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glx/glxcmds.c: scope_hint: In function ‘validGlxFBConfigForWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glx/glxcmds.c:126:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pVisual’
#  124|   
#  125|       /* FIXME: What exactly should we check here... */
#  126|->     if (pVisual->class != glxConvertToXVisualType(config->visualType) ||
#  127|           !(config->drawableType & GLX_WINDOW_BIT)) {
#  128|           client->errorValue = pDraw->id;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glx/glxdricommon.c: scope_hint: In function ‘createModeFromConfig’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glx/glxdricommon.c:142:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘config’
#  140|       config = calloc(1, sizeof *config);
#  141|   
#  142|->     config->driConfig = driConfig;
#  143|   
#  144|       i = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def89]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/vfb/InitOutput.c: scope_hint: In function ‘vfbInstallColormap.part.0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/vfb/InitOutput.c:416:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ppix’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/vfb/InitOutput.c:43: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/vfb/InitOutput.c:411:16: note: in expansion of macro ‘xallocarray’
#  414|   
#  415|           for (i = 0; i < entries; i++)
#  416|->             ppix[i] = i;
#  417|           /* XXX truecolor */
#  418|           QueryColors(pmap, entries, ppix, prgb, serverClient);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-drm-lease.c: scope_hint: In function ‘xwl_screen_add_drm_lease_device’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-drm-lease.c:458:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘device_data’
#  456|       struct xwl_drm_lease_device *device_data = malloc(sizeof(struct xwl_drm_lease_device));
#  457|   
#  458|->     device_data->drm_lease_device = lease_device;
#  459|       device_data->xwl_screen = xwl_screen;
#  460|       device_data->drm_read_only_fd = -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-glamor-gbm.c: scope_hint: In function ‘xwl_dri3_create_syncobj’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-glamor-gbm.c:1176:12: warning[-Wanalyzer-malloc-leak]: leak of ‘syncobj’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-glamor-gbm.c:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘xwl_dri3_create_syncobj’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-glamor-gbm.c: scope_hint: In function ‘xwl_dri3_create_syncobj’
# 1174|       syncobj->base.signaled_eventfd = xwl_dri3_syncobj_signaled_eventfd;
# 1175|       syncobj->base.submitted_eventfd = xwl_dri3_syncobj_submitted_eventfd;
# 1176|->     return &syncobj->base;
# 1177|   
# 1178|   fail:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-input.c: scope_hint: In function ‘xwl_pointer_warp_emulator_lock’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-input.c:3294:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘warp_emulator’
# 3292|   xwl_pointer_warp_emulator_lock(struct xwl_pointer_warp_emulator *warp_emulator)
# 3293|   {
# 3294|->     struct xwl_seat *xwl_seat = warp_emulator->xwl_seat;
# 3295|       struct xwl_screen *xwl_screen = xwl_seat->xwl_screen;
# 3296|       struct zwp_pointer_constraints_v1 *pointer_constraints =

Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-input.c:3295:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xwl_seat’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-input.c: scope_hint: In function ‘xwl_pointer_warp_emulator_lock’
# 3293|   {
# 3294|       struct xwl_seat *xwl_seat = warp_emulator->xwl_seat;
# 3295|->     struct xwl_screen *xwl_screen = xwl_seat->xwl_screen;
# 3296|       struct zwp_pointer_constraints_v1 *pointer_constraints =
# 3297|           xwl_screen->pointer_constraints;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-input.c: scope_hint: In function ‘xwl_seat_create_pointer_warp_emulator’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-input.c:3421:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*xwl_seat.pointer_warp_emulator’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-input.c: scope_hint: In function ‘xwl_seat_create_pointer_warp_emulator’
# 3419|       xwl_seat->pointer_warp_emulator =
# 3420|           xwl_pointer_warp_emulator_create(xwl_seat);
# 3421|-> }
# 3422|   
# 3423|   static Bool

Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-screen.c: scope_hint: In function ‘xwl_cursor_warped_to’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-screen.c:307:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xwl_seat’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-screen.c:34: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘xwl_cursor_warped_to’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-screen.c: scope_hint: In function ‘xwl_cursor_warped_to’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-screen.c: scope_hint: In function ‘xwl_cursor_warped_to’
#  305|   
#  306|       xwl_window = xwl_window_from_window(window);
#  307|->     if (!xwl_window && xwl_seat->focus_window) {
#  308|           focus = xwl_seat->focus_window->toplevel;
#  309|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-screen.c: scope_hint: In function ‘registry_global.part.0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-screen.c:520:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘queued’
#  518|           if (xwl_screen->screen->root == NULL) {
#  519|               struct xwl_queued_drm_lease_device *queued = malloc(sizeof(struct xwl_queued_drm_lease_device));
#  520|->             queued->id = id;
#  521|               xorg_list_append(&queued->link, &xwl_screen->queued_drm_lease_devices);
#  522|           } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-xtest.c: scope_hint: In function ‘setup_ei’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-xtest.c:361:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xwl_ei_client’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-xtest.c:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘setup_ei’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/hw/xwayland/xwayland-xtest.c: scope_hint: In function ‘setup_ei’
#  359|   
#  360|       xwl_ei_client = calloc(1, sizeof *xwl_ei_client);
#  361|->     xwl_ei_client->cmdline = xstrdup(cmdname);
#  362|       if (!xwl_ei_client) {
#  363|           error_ei("OOM, cannot setup EI\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c: scope_hint: In function ‘ProcRRGetCrtcGamma’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:73:19: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1686:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1686:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1687:5: note: in expansion of macro ‘VERIFY_RR_CRTC’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1687:5: note: in expansion of macro ‘VERIFY_RR_CRTC’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1686:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
#   71|       do {                                                                \
#   72|           if ((sizeof(req) >> 2) != client->req_len)                      \
#   73|->             return(BadLength);                                          \
#   74|       } while (0)
#   75|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:151: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compint.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c:48: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c: scope_hint: In function ‘PanoramiXCompositeNameWindowPixmap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:73:19: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c:712:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c:712:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c:720:5: note: in expansion of macro ‘LEGAL_NEW_RESOURCE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c:720:5: note: in expansion of macro ‘LEGAL_NEW_RESOURCE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiXsrv.h:9: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c:592: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c:729:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c:743:14: note: in expansion of macro ‘GetCompWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c:743:14: note: in expansion of macro ‘GetCompWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘PanoramiXCompositeNameWindowPixmap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c:743:14: note: in expansion of macro ‘GetCompWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/composite/compext.c:712:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
#   71|       do {                                                                \
#   72|           if ((sizeof(req) >> 2) != client->req_len)                      \
#   73|->             return(BadLength);                                          \
#   74|       } while (0)
#   75|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c: scope_hint: In function ‘ProcListProperties’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:73:19: warning[-Wanalyzer-malloc-leak]: leak of ‘pAtoms’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:584:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:584:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:589:18: note: in expansion of macro ‘wUserProps’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:589:18: note: in expansion of macro ‘wUserProps’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/window.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:593:18: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:593:18: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:599:22: note: in expansion of macro ‘wUserProps’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:599:22: note: in expansion of macro ‘wUserProps’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/property.c:584:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
#   71|       do {                                                                \
#   72|           if ((sizeof(req) >> 2) != client->req_len)                      \
#   73|->             return(BadLength);                                          \
#   74|       } while (0)
#   75|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:151: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:37: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c: scope_hint: In function ‘ProcShapeGetRectangles’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:73:19: warning[-Wanalyzer-malloc-leak]: leak of ‘rects’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:951:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:1194:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:35: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:1195:5: note: in expansion of macro ‘swapl’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:951:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:197:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:963:18: note: in expansion of macro ‘wInputShape’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c: scope_hint: In function ‘ProcShapeGetRectangles’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:1000:17: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/shape.c:951:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
#   71|       do {                                                                \
#   72|           if ((sizeof(req) >> 2) != client->req_len)                      \
#   73|->             return(BadLength);                                          \
#   74|       } while (0)
#   75|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/list.h:135:16: warning[-Wanalyzer-malloc-leak]: leak of ‘AllocBarrierDevice()’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/xibarriers.c: scope_hint: In function ‘CreatePointerBarrierClient’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/xibarriers.c:569:10: note: in expansion of macro ‘GetBarrierScreen’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/xibarriers.c:569:10: note: in expansion of macro ‘GetBarrierScreen’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/list.h:387:30: note: in definition of macro ‘nt_list_for_each_entry’
#  133|       entry->next = next;
#  134|       entry->prev = prev;
#  135|->     prev->next = entry;
#  136|   }
#  137|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def103]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/input.h:58: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/extnsionst.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/registry_priv.h:8: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:15: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c: scope_hint: In function ‘DestroyFragments’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/list.h:325:10: warning[-Wanalyzer-infinite-loop]: infinite loop
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:139:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:139:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:139:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c: scope_hint: In function ‘DestroyFragments’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:139:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xext/xres.c:139:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
#  323|            pos = __container_of((head)->next, pos, member),		\
#  324|   	 tmp = __container_of(pos->member.next, pos, member);		\
#  325|-> 	 &pos->member != (head);					\
#  326|   	 pos = tmp, tmp = __container_of(pos->member.next, tmp, member))
#  327|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/input.h:58: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c: scope_hint: In function ‘RetrieveTouchDeliveryData’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/list.h:387:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:1390:13: note: in expansion of macro ‘nt_list_for_each_entry’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/list.h:387:23: note: in definition of macro ‘nt_list_for_each_entry’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:1391:36: note: in expansion of macro ‘wOtherInputMasks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:1390:13: note: in expansion of macro ‘nt_list_for_each_entry’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/exevents.c:1390:13: note: in expansion of macro ‘nt_list_for_each_entry’
#  385|    */
#  386|   #define nt_list_for_each_entry(_entry, _list, _member)			\
#  387|-> 	for (_entry = _list; _entry; _entry = (_entry)->_member)
#  388|   
#  389|   /**

Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/input.h:58: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/eventconvert.h:31: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/gestures.c:30: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/gestures.c: scope_hint: In function ‘GestureAddRegularListener’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/list.h:387:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘inputMasks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/gestures.c:242:9: note: in expansion of macro ‘nt_list_for_each_entry’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/gestures.c:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/gestures.c:239:18: note: in expansion of macro ‘wOtherInputMasks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/gestures.c:239:18: note: in expansion of macro ‘wOtherInputMasks’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/gestures.c:242:9: note: in expansion of macro ‘nt_list_for_each_entry’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/dix/gestures.c:242:9: note: in expansion of macro ‘nt_list_for_each_entry’
#  385|    */
#  386|   #define nt_list_for_each_entry(_entry, _list, _member)			\
#  387|-> 	for (_entry = _list; _entry; _entry = (_entry)->_member)
#  388|   
#  389|   /**

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/glyph.c:31: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/glyph.c: scope_hint: In function ‘ResizeGlyphHash’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:107:14: warning[-Wanalyzer-malloc-leak]: leak of ‘newHash.table’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/glyph.c:411:16: note: in expansion of macro ‘TRUE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/glyph.c: scope_hint: In function ‘ResizeGlyphHash’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/glyph.c:411:16: note: in expansion of macro ‘TRUE’
#  105|   
#  106|   #ifndef TRUE
#  107|-> #define TRUE 1
#  108|   #define FALSE 0
#  109|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_compositerects.c:30: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_compositerects.c: scope_hint: In function ‘_pixman_region_init_clipped_rectangles’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:108:15: warning[-Wanalyzer-malloc-leak]: leak of ‘boxes’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_compositerects.c:62:20: note: in expansion of macro ‘FALSE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_compositerects.c:60:17: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_compositerects.c:60:17: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/glamor/glamor_compositerects.c:62:20: note: in expansion of macro ‘FALSE’
#  106|   #ifndef TRUE
#  107|   #define TRUE 1
#  108|-> #define FALSE 0
#  109|   #endif
#  110|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def108]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/input.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/inputstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getfctl.c:57: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getfctl.c: scope_hint: In function ‘CopySwapKbdFeedback’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:357:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*k2.led_values’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getfctl.c:108:9: note: in expansion of macro ‘swapl’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getfctl.c:292:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getfctl.c:104:9: note: in expansion of macro ‘swaps’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/Xi/getfctl.c:108:9: note: in expansion of macro ‘swapl’
#  355|   		if (sizeof(*(x)) != 4) \
#  356|   			wrong_size(); \
#  357|-> 		*(x) = bswap_32(*(x)); \
#  358|   	} while (0)
#  359|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:64: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:528:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:529:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:530:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
#  435|   
#  436|   #define BUG_RETURN_VAL(cond, val) \
#  437|->         do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return (val); } } while(0)
#  438|   
#  439|   #define BUG_RETURN_VAL_MSG(cond, val, ...) \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:64: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:528:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:529:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:530:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
#  435|   
#  436|   #define BUG_RETURN_VAL(cond, val) \
#  437|->         do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return (val); } } while(0)
#  438|   
#  439|   #define BUG_RETURN_VAL_MSG(cond, val, ...) \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:64: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.options’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:528:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:529:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:530:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
#  435|   
#  436|   #define BUG_RETURN_VAL(cond, val) \
#  437|->         do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return (val); } } while(0)
#  438|   
#  439|   #define BUG_RETURN_VAL_MSG(cond, val, ...) \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:42: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c: scope_hint: In function ‘InitKeyboardDeviceStructInternal’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:64: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:528:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:529:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:530:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
#  435|   
#  436|   #define BUG_RETURN_VAL(cond, val) \
#  437|->         do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return (val); } } while(0)
#  438|   
#  439|   #define BUG_RETURN_VAL_MSG(cond, val, ...) \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:64: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.variant’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:528:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:529:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:530:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
#  435|   
#  436|   #define BUG_RETURN_VAL(cond, val) \
#  437|->         do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return (val); } } while(0)
#  438|   
#  439|   #define BUG_RETURN_VAL_MSG(cond, val, ...) \

Error: GCC_ANALYZER_WARNING (CWE-126): [#def114]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h:74:18: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c: scope_hint: In function ‘fbOverlayCopyWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c: scope_hint: In function ‘fbOverlayCopyWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c: scope_hint: In function ‘fbOverlayCopyWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h:74:18: note: read of 8 bytes from after the end of ‘layerRgn’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h:74:18: note: valid subscripts for ‘layerRgn’ are ‘[0]’ to ‘[1]’
#   72|   RegionNil(RegionPtr reg)
#   73|   {
#   74|->     return ((reg)->data && !(reg)->data->numRects);
#   75|   }
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def115]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h:165:16: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h:165:16: note: read of 8 bytes from after the end of ‘layerRgn’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h:165:16: note: valid subscripts for ‘layerRgn’ are ‘[0]’ to ‘[1]’
#  163|   RegionUninit(RegionPtr _pReg)
#  164|   {
#  165|->     if ((_pReg)->data && (_pReg)->data->size) {
#  166|           free((_pReg)->data);
#  167|           (_pReg)->data = NULL;

Error: GCC_ANALYZER_WARNING (CWE-590): [#def116]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:30: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h:166:9: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘&RegionEmptyData’ which points to memory not on the heap
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:42: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damagestr.h:102:32: note: in expansion of macro ‘damageGetGCPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:364:5: note: in expansion of macro ‘damageGCPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:1418:5: note: in expansion of macro ‘DAMAGE_GC_OP_PROLOGUE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damagestr.h:102:32: note: in expansion of macro ‘damageGetGCPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:364:5: note: in expansion of macro ‘damageGCPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:1418:5: note: in expansion of macro ‘DAMAGE_GC_OP_PROLOGUE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damagestr.h:87:36: note: in expansion of macro ‘damageGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:138:5: note: in expansion of macro ‘damageScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damagestr.h:87:36: note: in expansion of macro ‘damageGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:138:5: note: in expansion of macro ‘damageScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:117:27: note: in expansion of macro ‘getDrawableDamage’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:139:5: note: in expansion of macro ‘drawableDamage’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:110:12: note: in expansion of macro ‘getPixmapDamageRef’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:110:12: note: in expansion of macro ‘getPixmapDamageRef’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:117:27: note: in expansion of macro ‘getDrawableDamage’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c:139:5: note: in expansion of macro ‘drawableDamage’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/miext/damage/damage.c: scope_hint: In function ‘RegionUninit’
#  164|   {
#  165|       if ((_pReg)->data && (_pReg)->data->size) {
#  166|->         free((_pReg)->data);
#  167|           (_pReg)->data = NULL;
#  168|       }

Error: GCC_ANALYZER_WARNING (CWE-121): [#def117]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h:167:23: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h:167:23: note: write of 8 bytes to beyond the end of ‘layerRgn’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/regionstr.h:167:23: note: valid subscripts for ‘layerRgn’ are ‘[0]’ to ‘[1]’
#  165|       if ((_pReg)->data && (_pReg)->data->size) {
#  166|           free((_pReg)->data);
#  167|->         (_pReg)->data = NULL;
#  168|       }
#  169|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def118]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c: scope_hint: In function ‘miFillWideEllipse’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:814:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*span.lx’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:63: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:402:9: note: in expansion of macro ‘MIWIDEARCSETUP’
#  812|       }
#  813|       for (n = spdata->count1; --n >= 0;) {
#  814|->         pts[0].x = xorg + span->lx;
#  815|           pts[0].y = yorgu;
#  816|           wids[0] = span->lw;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def119]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:834:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*span.lx’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
#  832|       }
#  833|       for (n = spdata->count2; --n >= 0;) {
#  834|->         pts[0].x = xorg + span->lx;
#  835|           pts[0].y = yorgu;
#  836|           wids[0] = span->lw;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def120]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:853:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*span.rw’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
#  851|       }
#  852|       if (spdata->bot) {
#  853|->         if (span->rw <= 0) {
#  854|               pts[0].x = xorg + span->lx;
#  855|               pts[0].y = yorgu;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def121]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c: scope_hint: In function ‘miComputeArcs’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:2157:36: warning[-Wanalyzer-out-of-bounds]: buffer over-read
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:56: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miarc.c:1901:12: note: in expansion of macro ‘xallocarray’
# 2155|               arc->join = arcs[iphase].njoins;
# 2156|               arc->cap = arcs[iphase].ncaps;
# 2157|->             arc->selfJoin = data[i].selfJoin;
# 2158|               prevphase = iphase;
# 2159|           }

Error: GCC_ANALYZER_WARNING (CWE-787): [#def122]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/micmap.c: scope_hint: In function ‘miInitVisuals’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/micmap.c:480:16: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/micmap.c:281:24: note: in expansion of macro ‘_RZ’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/micmap.c:331:19: note: in expansion of macro ‘_RM’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/micmap.c:36: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/micmap.c:461:13: note: in expansion of macro ‘xallocarray’
#  478|           vtype = visuals->visuals;
#  479|           nvtype = visuals->count;
#  480|->         *prefp = visuals->preferredCVC;
#  481|           prefp++;
#  482|           vid = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/micmap.c:503:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vid’
#  501|               visual->ColormapEntries = 1 << d;
#  502|               visual->nplanes = d;
#  503|->             visual->vid = *vid = FakeClientID(0);
#  504|               switch (visual->class) {
#  505|               case PseudoColor:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miexpose.c: scope_hint: In function ‘miPaintWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miexpose.c:553:47: warning[-Wanalyzer-malloc-leak]: leak of ‘prect’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miexpose.c:82: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miexpose.c:538:13: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miexpose.c: scope_hint: In function ‘miPaintWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miexpose.c: scope_hint: In function ‘miPaintWindow’
#  551|       numRects = RegionNumRects(prgn);
#  552|       pbox = RegionRects(prgn);
#  553|->     for (i = numRects; --i >= 0; pbox++, prect++) {
#  554|           prect->x = pbox->x1 - draw_x_off;
#  555|           prect->y = pbox->y1 - draw_y_off;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miexpose.c:563:5: warning[-Wanalyzer-malloc-leak]: leak of ‘prect’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miexpose.c:538:13: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miexpose.c: scope_hint: In function ‘miPaintWindow’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miexpose.c: scope_hint: In function ‘miPaintWindow’
#  561|       free(prect);
#  562|   
#  563|->     FreeScratchGC(pGC);
#  564|   }
#  565|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def126]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miinitext.c: scope_hint: In function ‘InitExtensions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miinitext.c:256:16: warning[-Wanalyzer-use-after-free]: use after ‘reallocarray’ of ‘ext’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miinitext.c: scope_hint: In function ‘InitExtensions’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miinitext.c: scope_hint: In function ‘InitExtensions’
#  254|       for (i = 0; i < numExtensionModules; i++) {
#  255|           ext = &ExtensionModuleList[i];
#  256|->         if (ext->initFunc != NULL &&
#  257|               (ext->disablePtr == NULL || !*ext->disablePtr)) {
#  258|               LogMessageVerb(X_INFO, 3, "Initializing extension %s\n",

Error: GCC_ANALYZER_WARNING (CWE-415): [#def127]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miinitext.c: scope_hint: In function ‘NewExtensionModuleList’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/miinitext.c:277:27: warning[-Wanalyzer-double-free]: double-‘reallocarray’ of ‘save’
#  275|   
#  276|       n = numExtensionModules + size;
#  277|->     ExtensionModuleList = reallocarray(ExtensionModuleList, n,
#  278|                                          sizeof(ExtensionModule));
#  279|       if (ExtensionModuleList == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:646:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pWETE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:137:28: note: in definition of macro ‘max’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:645:25: note: in expansion of macro ‘EVALUATEEDGEWINDING’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:645:25: note: in expansion of macro ‘EVALUATEEDGEWINDING’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:645:25: note: in expansion of macro ‘EVALUATEEDGEWINDING’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:645:25: note: in expansion of macro ‘EVALUATEEDGEWINDING’
#  644|                       while (pWETE != pAET)
#  645|                           EVALUATEEDGEWINDING(pAET, pPrevAET, y, fixWAET);
#  646|->                     pWETE = pWETE->nextWETE;
#  647|                   }
#  648|                   EVALUATEEDGEWINDING(pAET, pPrevAET, y, fixWAET);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:61: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c: scope_hint: In function ‘miFillGeneralPoly’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.h:162:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pAET’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:593:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/window.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/windowstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:56: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:137:28: note: in definition of macro ‘max’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:592:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:592:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:592:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:592:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:593:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/mi/mipoly.c:593:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
#  160|    */
#  161|   #define EVALUATEEDGEEVENODD(pAET, pPrevAET, y) { \
#  162|->    if (pAET->ymax == y) {          /* leaving this edge */ \
#  163|         pPrevAET->next = pAET->next; \
#  164|         pAET = pPrevAET->next; \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/io.c: scope_hint: In function ‘FlushClient’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/io.c:841:16: warning[-Wanalyzer-malloc-leak]: leak of ‘obuf’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/io.c: scope_hint: In function ‘FlushClient’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/io.c:872:16: note: in definition of macro ‘InsertIOV’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/io.c:79: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/osdep.h:73:23: note: in definition of macro ‘ETEST’
#  839|   
#  840|       if (!oco)
#  841|-> 	return 0;
#  842|       written = 0;
#  843|       padsize = padding_for_int32(extraCount);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def131]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/osinit.c: scope_hint: In function ‘OsInit’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/osinit.c:323:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘err’
#  321|       LogInit(NULL, NULL);
#  322|       SmartScheduleInit();
#  323|-> }
#  324|   
#  325|   void

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/osinit.c:323:1: warning[-Wanalyzer-malloc-leak]: leak of ‘err’
#  321|       LogInit(NULL, NULL);
#  322|       SmartScheduleInit();
#  323|-> }
#  324|   
#  325|   void

Error: GCC_ANALYZER_WARNING (CWE-476): [#def133]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/ospoll.c: scope_hint: In function ‘ospoll_create’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/ospoll.c:228:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ospoll’
#  226|       struct ospoll       *ospoll = calloc(1, sizeof (struct ospoll));
#  227|   
#  228|->     ospoll->epoll_fd = epoll_create1(EPOLL_CLOEXEC);
#  229|       if (ospoll->epoll_fd < 0) {
#  230|           free (ospoll);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def134]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/string.c: scope_hint: In function ‘xstrtokenize’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/string.c:55:17: warning[-Wanalyzer-mismatching-deallocation]: ‘list’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’
#   53|           goto error;
#   54|       for (tok = strtok(tmp, separators); tok; tok = strtok(NULL, separators)) {
#   55|->         nlist = reallocarray(list, num + 2, sizeof(*list));
#   56|           if (!nlist)
#   57|               goto error;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/utils.c: scope_hint: In function ‘set_font_authorizations’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/utils.c:1108:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
# 1106|   
# 1107|           p = result;
# 1108|->         *p++ = sizeof(AUTHORIZATION_NAME) >> 8;
# 1109|           *p++ = sizeof(AUTHORIZATION_NAME) & 0xff;
# 1110|           *p++ = (len) >> 8;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def136]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/utils.c: scope_hint: In function ‘Fopen’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/utils.c:1409:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(file,  type)’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/utils.c:69: included_from: Included from here.
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null
# 1407|   
# 1408|       if (seteuid(euid) == -1) {
# 1409|->         fclose(iop);
# 1410|           return NULL;
# 1411|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/xdmcp.c: scope_hint: In function ‘get_mcast_options’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/xdmcp.c:1514:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mcastinfo’
# 1512|   
# 1513|               mcastinfo = malloc(sizeof(struct multicastinfo));
# 1514|->             mcastinfo->next = NULL;
# 1515|               mcastinfo->ai = firstai;
# 1516|               mcastinfo->hops = hopcount;

Error: COMPILER_WARNING (CWE-477): [#def138]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/xsha1.c: scope_hint: In function ‘x_sha1_init’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/xsha1.c:270:5: warning[-Wdeprecated-declarations]: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0
#  270 |     ret = SHA1_Init(ctx);
#      |     ^~~
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/xsha1.c:260: included_from: Included from here.
/usr/include/openssl/sha.h:49:27: note: declared here
#   49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
#      |                           ^~~~~~~~~
#  268|       if (!ctx)
#  269|           return NULL;
#  270|->     ret = SHA1_Init(ctx);
#  271|       if (!ret) {
#  272|           free(ctx);

Error: COMPILER_WARNING (CWE-477): [#def139]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/xsha1.c: scope_hint: In function ‘x_sha1_update’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/xsha1.c:284:5: warning[-Wdeprecated-declarations]: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0
#  284 |     ret = SHA1_Update(sha_ctx, data, size);
#      |     ^~~
/usr/include/openssl/sha.h:50:27: note: declared here
#   50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
#      |                           ^~~~~~~~~~~
#  282|       SHA_CTX *sha_ctx = ctx;
#  283|   
#  284|->     ret = SHA1_Update(sha_ctx, data, size);
#  285|       if (!ret)
#  286|           free(sha_ctx);

Error: COMPILER_WARNING (CWE-477): [#def140]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/xsha1.c: scope_hint: In function ‘x_sha1_final’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/os/xsha1.c:296:5: warning[-Wdeprecated-declarations]: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0
#  296 |     ret = SHA1_Final(result, sha_ctx);
#      |     ^~~
/usr/include/openssl/sha.h:51:27: note: declared here
#   51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
#      |                           ^~~~~~~~~~
#  294|       SHA_CTX *sha_ctx = ctx;
#  295|   
#  296|->     ret = SHA1_Final(result, sha_ctx);
#  297|       free(sha_ctx);
#  298|       return ret;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/present/present_notify.c: scope_hint: In function ‘present_create_notifies’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/present/present_notify.c:83:19: warning[-Wanalyzer-malloc-leak]: leak of ‘notifies’
#   81|           return BadAlloc;
#   82|   
#   83|->     for (i = 0; i < num_notifies; i++) {
#   84|           status = dixLookupWindow(&notifies[i].window, x_notifies[i].window, client, DixGetAttrAccess);
#   85|           if (status != Success)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def142]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c: scope_hint: In function ‘RRCrtcSet’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:750:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outputs’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:24: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1307:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1310:5: note: in expansion of macro ‘VERIFY_RR_CRTC’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1387:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘RRCrtcSet’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1387:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr.h:433:52: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:746:5: note: in expansion of macro ‘rrScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘RRCrtcSet’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr.h:433:52: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:746:5: note: in expansion of macro ‘rrScrPriv’
#  748|       crtcChanged = FALSE;
#  749|       for (o = 0; o < numOutputs; o++) {
#  750|->         if (outputs[o]) {
#  751|               if (rrCheckEmulated(outputs[o]) || (outputs[o]->crtc != crtc)) {
#  752|                   crtcChanged = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def143]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:764:10: warning[-Wanalyzer-null-argument]: use of NULL ‘outputs’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1307:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1310:5: note: in expansion of macro ‘VERIFY_RR_CRTC’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1387:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘RRCrtcSet’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1387:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr.h:433:52: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:746:5: note: in expansion of macro ‘rrScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘RRCrtcSet’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr.h:433:52: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:746:5: note: in expansion of macro ‘rrScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/os.h:56: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr.h:38: included_from: Included from here.
/usr/include/string.h:64:12: note: argument 2 of ‘memcmp’ must be non-null
#  762|           crtc->rotation == rotation &&
#  763|           crtc->numOutputs == numOutputs &&
#  764|->         !memcmp(crtc->outputs, outputs, numOutputs * sizeof(RROutputPtr)) &&
#  765|           !RRCrtcPendingProperties(crtc) && !RRCrtcPendingTransform(crtc) &&
#  766|           !crtcChanged) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def144]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1714:9: warning[-Wanalyzer-null-argument]: use of NULL ‘extra’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1686:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1687:5: note: in expansion of macro ‘VERIFY_RR_CRTC’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrcrtc.c:1687:5: note: in expansion of macro ‘VERIFY_RR_CRTC’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1712|       WriteToClient(client, sizeof(xRRGetCrtcGammaReply), &reply);
# 1713|       if (crtc->gammaSize) {
# 1714|->         memcpy(extra, crtc->gammaRed, len);
# 1715|           client->pSwapReplyFunc = (ReplySwapPtr) CopySwap16Write;
# 1716|           WriteSwappedDataToClient(client, len, extra);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def145]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c: scope_hint: In function ‘RROutputSetCrtcs’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:285:5: warning[-Wanalyzer-null-argument]: use of NULL ‘newCrtcs’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  283|           newCrtcs = NULL;
#  284|       free(output->crtcs);
#  285|->     memcpy(newCrtcs, crtcs, numCrtcs * sizeof(RRCrtcPtr));
#  286|       output->crtcs = newCrtcs;
#  287|       output->numCrtcs = numCrtcs;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:540:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:466:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:467:5: note: in expansion of macro ‘VERIFY_RR_OUTPUT’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:467:5: note: in expansion of macro ‘VERIFY_RR_OUTPUT’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:472:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘ProcRRGetOutputInfo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:472:16: note: in expansion of macro ‘rrGetScrPriv’
#  538|   
#  539|           for (i = 0; i < output->numCrtcs; i++) {
#  540|->             crtcs[i] = output->crtcs[i]->id;
#  541|               if (client->swapped)
#  542|                   swapl(&crtcs[i]);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def147]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:558:5: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:466:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:467:5: note: in expansion of macro ‘VERIFY_RR_OUTPUT’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:467:5: note: in expansion of macro ‘VERIFY_RR_OUTPUT’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:472:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘ProcRRGetOutputInfo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rroutput.c:472:16: note: in expansion of macro ‘rrGetScrPriv’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  556|           }
#  557|       }
#  558|->     memcpy(name, output->name, output->nameLength);
#  559|       if (client->swapped) {
#  560|           swaps(&rep.sequenceNumber);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def148]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproperty.c: scope_hint: In function ‘RRConfigureOutputProperty’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproperty.c:385:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘new_values’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr.h:38: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproperty.c:23: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproperty.c:378:18: note: in expansion of macro ‘xallocarray’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  383|       }
#  384|       if (num_values)
#  385|->         memcpy(new_values, values, num_values * sizeof(INT32));
#  386|   
#  387|       /*

Error: GCC_ANALYZER_WARNING (CWE-688): [#def149]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproviderproperty.c: scope_hint: In function ‘RRConfigureProviderProperty’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproviderproperty.c:360:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘new_values’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr.h:38: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproviderproperty.c:23: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproviderproperty.c:353:18: note: in expansion of macro ‘xallocarray’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  358|       }
#  359|       if (num_values)
#  360|->         memcpy(new_values, values, num_values * sizeof(INT32));
#  361|   
#  362|       /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproviderproperty.c: scope_hint: In function ‘ProcRRListProviderProperties’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproviderproperty.c:419:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘temppAtoms’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproviderproperty.c:396:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproviderproperty.c:398:5: note: in expansion of macro ‘VERIFY_RR_PROVIDER’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrproviderproperty.c:398:5: note: in expansion of macro ‘VERIFY_RR_PROVIDER’
#  417|       temppAtoms = pAtoms;
#  418|       for (prop = provider->properties; prop; prop = prop->next)
#  419|->         *temppAtoms++ = prop->propertyName;
#  420|   
#  421|       WriteToClient(client, sizeof(xRRListProviderPropertiesReply), (char *) &rep);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def151]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrscreen.c: scope_hint: In function ‘ProcRRGetScreenInfo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrscreen.c:848:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘size’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/randrstr_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrscreen.c:23: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrscreen.c:767:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrscreen.c:773:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/privates.h: scope_hint: In function ‘ProcRRGetScreenInfo’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/randr/rrscreen.c:773:16: note: in expansion of macro ‘rrGetScrPriv’
#  846|           for (i = 0; i < pData->nsize; i++) {
#  847|               pSize = &pData->sizes[i];
#  848|->             size->widthInPixels = pSize->width;
#  849|               size->heightInPixels = pSize->height;
#  850|               size->widthInMillimeters = pSize->mmWidth;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def152]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/record/set.c: scope_hint: In function ‘IntervalListCreateSet’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/record/set.c:366:5: warning[-Wanalyzer-null-argument]: use of NULL ‘stackIntervals’ where non-null expected
<built-in>: note: argument 2 of ‘__builtin_memcpy’ must be non-null
#  364|           prls->baseSet.ops = &IntervalListSetOperations;
#  365|       }
#  366|->     memcpy(&prls[1], stackIntervals, nIntervals * sizeof(RecordSetInterval));
#  367|       prls->nIntervals = nIntervals;
#  368|    bailout:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/filter.c: scope_hint: In function ‘SetPicturePictFilter’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/filter.c:348:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_params’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/filter.c:27: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/filter.c:339:30: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/filter.c:339:30: note: in expansion of macro ‘xallocarray’
#  346|       }
#  347|       for (i = 0; i < nparams; i++)
#  348|->         pPicture->filter_params[i] = params[i];
#  349|       pPicture->filter = pFilter->id;
#  350|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/glyph.c: scope_hint: In function ‘AllocateGlyphHash’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/glyph.c:388:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hashSet’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/render/glyph.c: scope_hint: In function ‘AllocateGlyphHash’
#  386|   AllocateGlyphHash(GlyphHashPtr hash, GlyphHashSetPtr hashSet)
#  387|   {
#  388|->     hash->table = calloc(hashSet->size, sizeof(GlyphRefRec));
#  389|       if (!hash->table)
#  390|           return FALSE;

Error: COMPILER_WARNING (CWE-252): [#def155]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/bigreq/request-length.c: scope_hint: In function ‘main’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/bigreq/request-length.c:65:5: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#   65 |     write(fd, &xise_req, sizeof(xise_req));
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   63|   
#   64|       /* Manually write out the bad request.  XCB can't help us here.*/
#   65|->     write(fd, &xise_req, sizeof(xise_req));
#   66|   
#   67|       /* Block until the server has processed our mess and throws an

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/damage/primitives.c: scope_hint: In function ‘compute_expected_damage’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/damage/primitives.c:68:48: warning[-Wanalyzer-malloc-leak]: leak of ‘get_image(setup, *setup.d)’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/damage/primitives.c:37: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/damage/primitives.c:364:5: note: in expansion of macro ‘test’
#   66|       xcb_get_image_cookie_t cookie =
#   67|           xcb_get_image(setup->c, XCB_IMAGE_FORMAT_Z_PIXMAP, drawable,
#   68|->                       0, 0, setup->width, setup->height, ~0);
#   69|       xcb_get_image_reply_t *reply =
#   70|           xcb_get_image_reply(setup->c, cookie, NULL);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def157]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/damage/primitives.c: scope_hint: In function ‘get_image’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/damage/primitives.c:80:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   78|       uint32_t *result = malloc(sizeof(uint32_t) *
#   79|                                 setup->width * setup->height);
#   80|->     memcpy(result, data, len);
#   81|       free(reply);
#   82|   

Error: CPPCHECK_WARNING (CWE-562): [#def158]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/damage/primitives.c:185: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  183|       printf("Testing %s\n", name);
#  184|   
#  185|->     setup->expected = expected;
#  186|       setup->damaged = damaged;
#  187|   

Error: CPPCHECK_WARNING (CWE-562): [#def159]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/damage/primitives.c:186: error[autoVariables]: Address of local auto-variable assigned to a function parameter.
#  184|   
#  185|       setup->expected = expected;
#  186|->     setup->damaged = damaged;
#  187|   
#  188|       /* Create our pixmap for this test and fill it with the

Error: COMPILER_WARNING (CWE-252): [#def160]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/simple-xinit.c: scope_hint: In function ‘handle_sigchld’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/test/simple-xinit.c:71:5: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#   71 |     write(server_displayfd, server_dead, strlen(server_dead));
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69|   handle_sigchld(int sig)
#   70|   {
#   71|->     write(server_displayfd, server_dead, strlen(server_dead));
#   72|   }
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBAlloc.c: scope_hint: In function ‘SrvXkbAllocNames’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBAlloc.c:141:20: warning[-Wanalyzer-malloc-leak]: leak of ‘*type.level_names’
#  139|               if (type->level_names == NULL) {
#  140|                   type->level_names = calloc(type->num_levels, sizeof(Atom));
#  141|->                 if (type->level_names == NULL)
#  142|                       return BadAlloc;
#  143|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBGAlloc.c: scope_hint: In function ‘SrvXkbAddGeomProperty’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBGAlloc.c:557:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.value’
#  555|           if ((prop->name) && (strcmp(name, prop->name) == 0)) {
#  556|               free(prop->value);
#  557|->             prop->value = strdup(value);
#  558|               return prop;
#  559|           }

Error: COMPILER_WARNING: [#def163]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:663:21: warning[-Wuse-after-free]: pointer may be used after ‘reallocarray’
#  663 |                     free(prev_key_sym_map);
#      |                     ^~~~~~~~~~~~~~~~~~~~~~
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:659:41: note: call to ‘reallocarray’ here
#  659 |                 xkb->map->key_sym_map = reallocarray(xkb->map->key_sym_map,
#      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  660 |                                                      maxKC + 1,
#      |                                                      ~~~~~~~~~~
#  661 |                                                      sizeof(XkbSymMapRec));
#      |                                                      ~~~~~~~~~~~~~~~~~~~~~
#  661|                                                        sizeof(XkbSymMapRec));
#  662|                   if (!xkb->map->key_sym_map) {
#  663|->                     free(prev_key_sym_map);
#  664|                       return BadAlloc;
#  665|                   }

Error: COMPILER_WARNING: [#def164]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:684:21: warning[-Wuse-after-free]: pointer may be used after ‘reallocarray’
#  684 |                     free(prev_modmap);
#      |                     ^~~~~~~~~~~~~~~~~
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:680:36: note: call to ‘reallocarray’ here
#  680 |                 xkb->map->modmap = reallocarray(xkb->map->modmap,
#      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  681 |                                                 maxKC + 1,
#      |                                                 ~~~~~~~~~~
#  682 |                                                 sizeof(unsigned char));
#      |                                                 ~~~~~~~~~~~~~~~~~~~~~~
#  682|                                                   sizeof(unsigned char));
#  683|                   if (!xkb->map->modmap) {
#  684|->                     free(prev_modmap);
#  685|                       return BadAlloc;
#  686|                   }

Error: COMPILER_WARNING: [#def165]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:707:21: warning[-Wuse-after-free]: pointer may be used after ‘reallocarray’
#  707 |                     free(prev_behaviors);
#      |                     ^~~~~~~~~~~~~~~~~~~~
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:703:42: note: call to ‘reallocarray’ here
#  703 |                 xkb->server->behaviors = reallocarray(xkb->server->behaviors,
#      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  704 |                                                       maxKC + 1,
#      |                                                       ~~~~~~~~~~
#  705 |                                                       sizeof(XkbBehavior));
#      |                                                       ~~~~~~~~~~~~~~~~~~~~
#  705|                                                         sizeof(XkbBehavior));
#  706|                   if (!xkb->server->behaviors) {
#  707|->                     free(prev_behaviors);
#  708|                       return BadAlloc;
#  709|                   }

Error: COMPILER_WARNING: [#def166]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:729:21: warning[-Wuse-after-free]: pointer may be used after ‘reallocarray’
#  729 |                     free(prev_key_acts);
#      |                     ^~~~~~~~~~~~~~~~~~~
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:725:41: note: call to ‘reallocarray’ here
#  725 |                 xkb->server->key_acts = reallocarray(xkb->server->key_acts,
#      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  726 |                                                      maxKC + 1,
#      |                                                      ~~~~~~~~~~
#  727 |                                                      sizeof(unsigned short));
#      |                                                      ~~~~~~~~~~~~~~~~~~~~~~~
#  727|                                                        sizeof(unsigned short));
#  728|                   if (!xkb->server->key_acts) {
#  729|->                     free(prev_key_acts);
#  730|                       return BadAlloc;
#  731|                   }

Error: COMPILER_WARNING: [#def167]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:751:21: warning[-Wuse-after-free]: pointer may be used after ‘reallocarray’
#  751 |                     free(prev_vmodmap);
#      |                     ^~~~~~~~~~~~~~~~~~
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:747:40: note: call to ‘reallocarray’ here
#  747 |                 xkb->server->vmodmap = reallocarray(xkb->server->vmodmap,
#      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  748 |                                                     maxKC + 1,
#      |                                                     ~~~~~~~~~~
#  749 |                                                     sizeof(unsigned short));
#      |                                                     ~~~~~~~~~~~~~~~~~~~~~~~
#  749|                                                       sizeof(unsigned short));
#  750|                   if (!xkb->server->vmodmap) {
#  751|->                     free(prev_vmodmap);
#  752|                       return BadAlloc;
#  753|                   }

Error: COMPILER_WARNING: [#def168]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:773:17: warning[-Wuse-after-free]: pointer may be used after ‘reallocarray’
#  773 |                 free(prev_keys);
#      |                 ^~~~~~~~~~~~~~~
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/XKBMAlloc.c:770:32: note: call to ‘reallocarray’ here
#  770 |             xkb->names->keys = reallocarray(xkb->names->keys,
#      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  771 |                                             maxKC + 1, sizeof(XkbKeyNameRec));
#      |                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  771|                                               maxKC + 1, sizeof(XkbKeyNameRec));
#  772|               if (!xkb->names->keys) {
#  773|->                 free(prev_keys);
#  774|                   return BadAlloc;
#  775|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/ddxLoad.c: scope_hint: In function ‘XkbDDXLoadKeymapByNames’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/ddxLoad.c:390:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘keybd’
#  388|           (names->geometry == NULL)) {
#  389|           LogMessage(X_ERROR, "XKB: No components provided for device %s\n",
#  390|->                    keybd->name ? keybd->name : "(unnamed keyboard)");
#  391|           return 0;
#  392|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def170]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/maprules.c: scope_hint: In function ‘InputLineAddChar’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/maprules.c:92:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘reallocarray(0, (long unsigned int)*line.sz_line, 2)’ where non-null expected
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/maprules.c:140:21: note: in expansion of macro ‘ADD_CHAR’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/maprules.c:140:21: note: in expansion of macro ‘ADD_CHAR’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/maprules.c:140:21: note: in expansion of macro ‘ADD_CHAR’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/maprules.c:140:21: note: in expansion of macro ‘ADD_CHAR’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/maprules.c:45: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/maprules.c:91:26: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/maprules.c:91:26: note: in expansion of macro ‘xallocarray’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   90|           if (line->line == line->buf) {
#   91|               line->line = xallocarray(line->sz_line, 2);
#   92|->             memcpy(line->line, line->buf, line->sz_line);
#   93|           }
#   94|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def171]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbActions.c: scope_hint: In function ‘_XkbFilterLatchState’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbActions.c:239:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pAction’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbActions.c:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbActions.c:1462:1: note: in expansion of macro ‘XkbLatchGroup’
#  237|           filter->priv = LATCH_KEY_DOWN;
#  238|           filter->filter = _XkbFilterLatchState;
#  239|->         if (pAction->type == XkbSA_LatchMods) {
#  240|               filter->upAction = *pAction;
#  241|               xkbi->setMods = pAction->mods.mask;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbActions.c: scope_hint: In function ‘_XkbNextFreeFilter’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbActions.c:1146:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*((struct _XkbSrvInfo *)xkbi).filters’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbActions.c:1462:1: note: in expansion of macro ‘XkbLatchGroup’
# 1144|       }
# 1145|       for (i = 0; i < xkbi->szFilters; i++) {
# 1146|->         if (!xkbi->filters[i].active) {
# 1147|               xkbi->filters[i].keycode = 0;
# 1148|               return &xkbi->filters[i];

Error: GCC_ANALYZER_WARNING (CWE-688): [#def173]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c: scope_hint: In function ‘_XkbCopyClientMap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c:953:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  951|   
#  952|               }
#  953|->             memcpy(dst->map->syms, src->map->syms,
#  954|                      src->map->size_syms * sizeof(KeySym));
#  955|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def174]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c:971:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  969|                   dst->map->key_sym_map = tmp;
#  970|               }
#  971|->             memcpy(dst->map->key_sym_map, src->map->key_sym_map,
#  972|                      (src->max_key_code + 1) * sizeof(XkbSymMapRec));
#  973|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def175]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c:1147:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1145|                   dst->map->modmap = tmp;
# 1146|               }
# 1147|->             memcpy(dst->map->modmap, src->map->modmap, src->max_key_code + 1);
# 1148|           }
# 1149|           else {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def176]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c: scope_hint: In function ‘_XkbCopyServerMap’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c:1183:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1181|                   dst->server->explicit = tmp;
# 1182|               }
# 1183|->             memcpy(dst->server->explicit, src->server->explicit,
# 1184|                      src->max_key_code + 1);
# 1185|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def177]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c:1199:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1197|                   dst->server->acts = tmp;
# 1198|               }
# 1199|->             memcpy(dst->server->acts, src->server->acts,
# 1200|                      src->server->size_acts * sizeof(XkbAction));
# 1201|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def178]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c:1217:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1215|                   dst->server->key_acts = tmp;
# 1216|               }
# 1217|->             memcpy(dst->server->key_acts, src->server->key_acts,
# 1218|                      (src->max_key_code + 1) * sizeof(unsigned short));
# 1219|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def179]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c:1233:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1231|                   dst->server->behaviors = tmp;
# 1232|               }
# 1233|->             memcpy(dst->server->behaviors, src->server->behaviors,
# 1234|                      (src->max_key_code + 1) * sizeof(XkbBehavior));
# 1235|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def180]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c:1251:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1249|                   dst->server->vmodmap = tmp;
# 1250|               }
# 1251|->             memcpy(dst->server->vmodmap, src->server->vmodmap,
# 1252|                      (src->max_key_code + 1) * sizeof(unsigned short));
# 1253|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def181]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c: scope_hint: In function ‘_XkbCopyNames’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkbUtils.c:1288:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1286|                   dst->names->keys = tmp;
# 1287|               }
# 1288|->             memcpy(dst->names->keys, src->names->keys,
# 1289|                      (src->max_key_code + 1) * sizeof(XkbKeyNameRec));
# 1290|           }

Error: GCC_ANALYZER_WARNING (CWE-823): [#def182]
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkmread.c: scope_hint: In function ‘XkmGetCountedString’
xorg-x11-server-Xwayland-24.1.4-build/xwayland-24.1.4/xkb/xkmread.c:152:20: warning[-Wanalyzer-tainted-offset]: use of attacker-controlled value as offset without upper-bounds checking
#  150|           str[max_len - 1] = '\0';
#  151|       else
#  152|->         str[count] = '\0';
#  153|       count = XkbPaddedSize(nRead) - nRead;
#  154|       if (count > 0)

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-70.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namexorg-x11-server-Xwayland-24.1.4-1.fc42
store-results-to/tmp/tmp9nl3rejk/xorg-x11-server-Xwayland-24.1.4-1.fc42.tar.xz
time-created2024-11-13 03:43:12
time-finished2024-11-13 03:48:02
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmp9nl3rejk/xorg-x11-server-Xwayland-24.1.4-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmp9nl3rejk/xorg-x11-server-Xwayland-24.1.4-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9