xorg-x11-server-Xwayland-24.1.0-2.fc41

List of Defects

Error: CLANG_WARNING: [#def1]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/geext.c:195:10: warning[deadcode.DeadStores]: Although the value stored to 'extEntry' is used in the enclosing expression, the value is never actually read from 'extEntry'
#  193|           FatalError("GEExtensionInit: GE private request failed.\n");
#  194|   
#  195|->     if ((extEntry = AddExtension(GE_NAME,
#  196|                                    0, GENumberErrors,
#  197|                                    ProcGEDispatch, SProcGEDispatch,

Error: CLANG_WARNING: [#def2]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:437:15: warning[deadcode.DeadStores]: Value stored to 'pScreen' during its initialization is never read
#  435|       Bool success = FALSE;
#  436|       ExtensionEntry *extEntry;
#  437|->     ScreenPtr pScreen = screenInfo.screens[0];
#  438|       PanoramiXScreenPtr pScreenPriv;
#  439|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c: scope_hint: In function ‘PanoramiXMaybeAddDepth’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def4]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c: scope_hint: In function ‘PanoramiXConsolidate’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def5]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def6]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def7]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/Xext/panoramiX.c:45: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def8]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:838:5: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  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: CLANG_WARNING: [#def9]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1126:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'src')
# 1124|   
# 1125|       while (bytes--) {
# 1126|->         *dst |= SHIFT_L(*src, shiftL);
# 1127|           *(dst + 1) |= SHIFT_R(*src, shiftR);
# 1128|           dst++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c: scope_hint: In function ‘CopyBits’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1126:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1112:23: note: in definition of macro ‘SHIFT_L’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1170:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1170:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/region.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/window.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:35: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c: scope_hint: In function ‘CopyBits’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def11]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1246:43: warning[core.NullDereference]: Array access (from variable 'ScratchMem') results in a null pointer dereference
# 1244|   
# 1245|                           for (j = h, k = w; j--; k += ScratchPitch)
# 1246|->                             ScratchMem[k] &= mask;
# 1247|                       }
# 1248|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def12]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c: scope_hint: In function ‘XineramaGetImageData’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1253:33: warning[-Wanalyzer-null-argument]: use of NULL ‘ScratchMem’ where non-null expected
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1170:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1170:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def13]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1253:33: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 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): [#def14]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1276:25: warning[-Wanalyzer-null-argument]: use of NULL ‘ScratchMem’ where non-null expected
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1170:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c: scope_hint: In function ‘XineramaGetImageData’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:49: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def15]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.c:1276:25: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 1274|   
# 1275|                       for (j = 0; j < h; j++) {
# 1276|->                         memcpy(data + (pitch * (y + j)) + x,
# 1277|                                  ScratchMem + (ScratchPitch * j), w);
# 1278|                       }

Error: CLANG_WARNING: [#def16]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1114:38: warning[core.NullDereference]: Access to field 'depth' results in a dereference of an undefined pointer value
# 1112|           }
# 1113|   
# 1114|->         pitch = PixmapBytePad(width, drawables[0]->depth);
# 1115|           if (!(data = calloc(height, pitch)))
# 1116|               return BadAlloc;

Error: CLANG_WARNING: [#def17]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1137:13: warning[core.NullDereference]: Access to field 'graphicsExposures' results in a dereference of an undefined pointer value (loaded from variable 'pGC')
# 1135|           free(data);
# 1136|   
# 1137|->         if (pGC->graphicsExposures) {
# 1138|               RegionRec rgn;
# 1139|               int dx, dy;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def18]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXCopyArea’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1137:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pGC’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h:151: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:35: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1061:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:45: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1068:17: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1075:17: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def19]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1246:13: warning[core.NullDereference]: Access to field 'graphicsExposures' results in a dereference of a null pointer (loaded from variable 'pGC')
# 1244|           }
# 1245|   
# 1246|->         if (pGC->graphicsExposures) {
# 1247|               Bool overlap;
# 1248|   

Error: CLANG_WARNING: [#def20]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1358:9: warning[core.NullDereference]: Access to field 'graphicsExposures' results in a dereference of a null pointer (loaded from variable 'pGC')
# 1356|       }
# 1357|   
# 1358|->     if (pGC->graphicsExposures) {
# 1359|           Bool overlap;
# 1360|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def21]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyPoint’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1380:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1387:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/window.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1398:19: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def22]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyLine’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1445:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1452:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1460:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1463:19: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def23]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolySegment’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1510:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1517:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1525:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1532:20: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def24]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyRectangle’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1578:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1585:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1593:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1600:20: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def25]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyArc’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1645:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1652:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1660:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1667:20: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def26]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXFillPoly’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1710:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1717:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1725:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1729:18: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def27]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyFillRectangle’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1776:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1783:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1791:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1798:21: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def28]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c: scope_hint: In function ‘PanoramiXPolyFillArc’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1843:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1850:9: note: in expansion of macro ‘IS_SHARED_PIXMAP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1858:14: note: in expansion of macro ‘IS_ROOT_DRAWABLE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:1865:20: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def29]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:2015:9: warning[core.NullDereference]: Access to field 'pScreen' results in a dereference of an undefined pointer value
# 2013|       }
# 2014|       FOR_NSCREENS_FORWARD(i) {
# 2015|->         drawables[i]->pScreen->SourceValidate(drawables[i], 0, 0,
# 2016|                                                 drawables[i]->width,
# 2017|                                                 drawables[i]->height,

Error: CLANG_WARNING: [#def30]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXprocs.c:2370:20: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 2368|       FOR_NSCREENS_BACKWARD(j) {
# 2369|           stuff->srcCmap = cmap->info[j].id;
# 2370|->         stuff->mid = newCmap->info[j].id;
# 2371|           result = (*SavedProcVector[X_CopyColormapAndFree]) (client);
# 2372|           if (result != Success)

Error: CLANG_WARNING: [#def31]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/saver.c:263:22: warning[core.NullDereference]: Access to field 'resource' results in a dereference of a null pointer (loaded from variable 'pEv')
#  261|               break;
#  262|       if (mask == 0) {
#  263|->         FreeResource(pEv->resource, SaverEventType);
#  264|           *pPrev = pEv->next;
#  265|           free(pEv);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:1004:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rects’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:1194:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:1195:5: note: in expansion of macro ‘swapl’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:951:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:197:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:963:18: note: in expansion of macro ‘wInputShape’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:197:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:963:18: note: in expansion of macro ‘wInputShape’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c: scope_hint: In function ‘ProcShapeGetRectangles’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def33]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shm.c: scope_hint: In function ‘ShmInitScreenPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shm.c:214:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘screen_priv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shm.c:210:37: note: in expansion of macro ‘ShmGetScreenPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shm.c:48: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shm.c: scope_hint: In function ‘ShmInitScreenPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def34]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shm.c:870:9: warning[core.NullDereference]: Access to field 'pScreen' results in a dereference of a null pointer
#  868|       }
#  869|       FOR_NSCREENS_FORWARD(i) {
#  870|->         drawables[i]->pScreen->SourceValidate(drawables[i], 0, 0,
#  871|                                                 drawables[i]->width,
#  872|                                                 drawables[i]->height,

Error: CLANG_WARNING: [#def35]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shm.c:1008:31: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1006|               shmdesc->refcnt++;
# 1007|               pMap->drawable.serialNumber = NEXT_SERIAL_NUMBER;
# 1008|->             pMap->drawable.id = newPix->info[j].id;
# 1009|               if (!AddResource(newPix->info[j].id, RT_PIXMAP, (void *) pMap)) {
# 1010|                   result = BadAlloc;

Error: CLANG_WARNING: [#def36]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c:893:17: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'SyncObject', which is incompatible with sizeof operand type 'SyncCounter'
#  891|       switch (type) {
#  892|       case SYNC_COUNTER:
#  893|->         pSync = malloc(sizeof(SyncCounter));
#  894|           resType = RTCounter;
#  895|           break;

Error: CLANG_WARNING: [#def37]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c:1287:27: warning[core.NullDereference]: Access to field 'counter' results in a dereference of a null pointer (loaded from variable 'walklist')
# 1285|           char *pname_in_reply;
# 1286|   
# 1287|->         walklist->counter = psci->pCounter->sync.id;
# 1288|           walklist->resolution_hi = psci->resolution >> 32;
# 1289|           walklist->resolution_lo = psci->resolution;

Error: CLANG_WARNING: [#def38]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c:1539:17: warning[core.NullDereference]: Access to field 'type' results in a dereference of a null pointer (loaded from field 'pSync')
# 1537|            *  errors before we get here out if they occur
# 1538|            */
# 1539|->         switch (pAwait->trigger.pSync->type) {
# 1540|           case SYNC_COUNTER:
# 1541|               value = ((SyncCounter *) pAwait->trigger.pSync)->value;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def39]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c: scope_hint: In function ‘IdleTimeQueryValue’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c:2650:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c:61: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:428:25: note: in expansion of macro ‘__BUG_WARN_MSG’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c:121:5: note: in expansion of macro ‘BUG_WARN’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:417:20: note: in definition of macro ‘__BUG_WARN_MSG’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c:121:5: note: in expansion of macro ‘BUG_WARN’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def40]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c: scope_hint: In function ‘IdleTimeBlockHandler’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def41]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c:2666:22: warning[deadcode.DeadStores]: Value stored to 'list' during its initialization is never read
# 2664|       int64_t *greater = priv->value_greater;
# 2665|       int64_t idle, old_idle;
# 2666|->     SyncTriggerList *list = counter->sync.pTriglist;
# 2667|       SyncTrigger *trig;
# 2668|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def42]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c: scope_hint: In function ‘IdleTimeWakeupHandler’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def43]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c: scope_hint: In function ‘IdleTimeBracketValues’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def44]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c: scope_hint: In function ‘init_system_idle_counter’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def45]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/sync.c:2826:53: warning[core.NullDereference]: Access to field 'private' results in a dereference of a null pointer (loaded from field 'pSysCounterInfo')
# 2824|           priv->deviceid = deviceid;
# 2825|   
# 2826|->         idle_time_counter->pSysCounterInfo->private = priv;
# 2827|       }
# 2828|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def47]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:96:5: warning[-Wanalyzer-null-argument]: use of NULL ‘VidModeCreateMode()’ where non-null expected
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c: scope_hint: In function ‘ProcVidModeModModeLine’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:188:13: note: in expansion of macro ‘VM_GETPRIV’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:42: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c: scope_hint: In function ‘ProcVidModeModModeLine’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:188:13: note: in expansion of macro ‘VM_GETPRIV’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:1835:9: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:41: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:1836:9: note: in expansion of macro ‘swapl’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:188:13: note: in expansion of macro ‘VM_GETPRIV’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c: scope_hint: In function ‘ProcVidModeModModeLine’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:188:13: note: in expansion of macro ‘VM_GETPRIV’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:753:9: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘ProcVidModeModModeLine’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c: scope_hint: In function ‘ProcVidModeModModeLine’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c: scope_hint: In function ‘ProcVidModeModModeLine’
<built-in>: scope_hint: In function ‘ProcVidModeModModeLine’
<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: CLANG_WARNING: [#def48]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:934:5: warning[deadcode.DeadStores]: Value stored to 'status' is never read
#  932|       pScreen = screenInfo.screens[stuff->screen];
#  933|   
#  934|->     status = MODE_OK;
#  935|   
#  936|       if (stuff->hsyncstart < stuff->hdisplay ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c: scope_hint: In function ‘ProcVidModeGetDotClocks’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:1377:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Clocks’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:1983:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:1984:5: note: in expansion of macro ‘swaps’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c:1333:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘ProcVidModeGetDotClocks’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/vidmode.c: scope_hint: In function ‘ProcVidModeGetDotClocks’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def50]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/Xext/xres.c:1067:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/gc.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:1068:5: note: in expansion of macro ‘swapl’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:1069:5: note: in expansion of macro ‘REQUEST_FIXED_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:959:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:91:16: note: in definition of macro ‘REQUEST_FIXED_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:962:5: note: in expansion of macro ‘REQUEST_FIXED_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h:152: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/resource.h:96:41: note: in expansion of macro ‘RESOURCE_CLIENT_BITS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/resource.h:98:33: note: in expansion of macro ‘RESOURCE_CLIENT_MASK’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/resource.h:100:30: note: in expansion of macro ‘CLIENT_BITS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:918:25: note: in expansion of macro ‘CLIENT_ID’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:139:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def51]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c: scope_hint: In function ‘ProcXResQueryClients.part.0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:233:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘current_clients’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def52]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c: scope_hint: In function ‘SELinuxPopulateItem’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c:322:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘i’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/selection.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c:24: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c: scope_hint: In function ‘SELinuxPopulateItem’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c: scope_hint: In function ‘SELinuxPopulateItem’
#  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): [#def53]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c: scope_hint: In function ‘SELinuxFreeItems’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c:336:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘items’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c: scope_hint: In function ‘SELinuxFreeItems’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c: 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): [#def54]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c: scope_hint: In function ‘SELinuxSendItemsToClient’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c:358:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c: scope_hint: In function ‘SELinuxSendItemsToClient’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_ext.c: scope_hint: In function ‘SELinuxSendItemsToClient’
#  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): [#def55]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_label.c: scope_hint: In function ‘SELinuxAtomToSID’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_label.c:142:18: warning[-Wanalyzer-malloc-leak]: leak of ‘rec’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/callback.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/extnsionst.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/registry_priv.h:8: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def56]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xselinux_label.c:143:20: warning[unix.Malloc]: Potential leak of memory pointed to by 'rec'
#  141|           rec = calloc(1, sizeof(SELinuxAtomRec));
#  142|           if (!rec || !SELinuxArraySet(&arr_atoms, atom, rec))
#  143|->             return BadAlloc;
#  144|       }
#  145|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xtest.c: scope_hint: In function ‘ProcXTestFakeInput’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def58]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def59]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def60]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def61]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvdisp.c:1782:21: warning[core.uninitialized.Branch]: Branch condition evaluates to a garbage value
# 1780|   
# 1781|               FOR_NSCREENS(k) {
# 1782|->                 if (MatchingAdaptors[k] && (MatchingAdaptors[k]->nPorts > j))
# 1783|                       port->info[k].id = MatchingAdaptors[k]->base_id + j;
# 1784|                   else

Error: GCC_ANALYZER_WARNING (CWE-457): [#def62]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvdisp.c: scope_hint: In function ‘XineramifyXv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvdisp.c:33: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvdisp.c: scope_hint: In function ‘XineramifyXv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvdisp.c:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvdisp.c:1770:9: note: in expansion of macro ‘FOR_NSCREENS_FORWARD_SKIP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvdisp.c: scope_hint: In function ‘XineramifyXv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvdisp.c:1770:9: note: in expansion of macro ‘FOR_NSCREENS_FORWARD_SKIP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvdisp.c: scope_hint: In function ‘XineramifyXv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvdisp.c:1770:9: note: in expansion of macro ‘FOR_NSCREENS_FORWARD_SKIP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def63]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvdisp.c:1787:13: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1785|                       port->info[k].id = 0;
# 1786|               }
# 1787|->             AddResource(port->info[0].id, XvXRTPort, port);
# 1788|           }
# 1789|       }

Error: CLANG_WARNING: [#def64]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xvmc.c:565:17: warning[core.NullDereference]: Access to field 'xvimage_ids' results in a dereference of a null pointer (loaded from field 'compatible_subpictures')
#  563|           pImage = NULL;
#  564|           for (j = 0; j < adaptor->num_subpictures; j++) {
#  565|->             if (surface->compatible_subpictures->xvimage_ids[i] ==
#  566|                   adaptor->subpictures[j]->id) {
#  567|                   pImage = adaptor->subpictures[j];

Error: CLANG_WARNING: [#def65]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:492:37: warning[core.NullDereference]: Access to field 'xkbInfo' results in a dereference of a null pointer (loaded from field 'key')
#  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): [#def66]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c: scope_hint: In function ‘DeepCopyKeyboardClasses’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:492:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*to.key’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/input.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/inputstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:85: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:2394:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:2395:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def67]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:525:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  523|               if (!to->focus->trace && to->focus->traceSize)
#  524|                   FatalError("[Xi] no memory for trace.\n");
#  525|->             memcpy(to->focus->trace, from->focus->trace,
#  526|                      from->focus->traceSize * sizeof(WindowPtr));
#  527|               to->focus->sourceid = from->id;

Error: CLANG_WARNING: [#def68]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:1045:37: warning[core.NullDereference]: Access to field 'inputClients' results in a dereference of a null pointer
# 1043|       InputClients *iclient;
# 1044|   
# 1045|->     nt_list_for_each_entry(iclient, wOtherInputMasks(win)->inputClients, next) {
# 1046|           if (rClient(iclient) != client)
# 1047|               continue;

Error: CLANG_WARNING: [#def69]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:1099:5: warning[deadcode.DeadStores]: Value stored to 'err' is never read
# 1097|       if (XaceHook(XACE_RECEIVE_ACCESS, client, win, xi2, 1) != Success)
# 1098|           return FALSE;
# 1099|->     err = TryClientEvents(client, dev, xi2, 1, filter, filter, NullGrab);
# 1100|       free(xi2);
# 1101|   

Error: CLANG_WARNING: [#def70]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:1391:36: warning[core.NullDereference]: Access to field 'inputClients' results in a dereference of a null pointer
# 1389|   
# 1390|               nt_list_for_each_entry(iclients,
# 1391|->                                    wOtherInputMasks(*win)->inputClients, next)
# 1392|                   if (xi2mask_isset(iclients->xi2mask, dev, evtype))
# 1393|                   break;

Error: CLANG_WARNING: [#def71]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:1405:36: warning[core.NullDereference]: Access to field 'inputClients' results in a dereference of a null pointer
# 1403|   
# 1404|               nt_list_for_each_entry(iclients,
# 1405|->                                    wOtherInputMasks(*win)->inputClients, next)
# 1406|                   if (iclients->mask[dev->id] & xi_filter)
# 1407|                   break;

Error: CLANG_WARNING: [#def72]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:1449:13: warning[deadcode.DeadStores]: Value stored to 'xi2mask' is never read
# 1447|           if (grab) {
# 1448|               win = grab->window;
# 1449|->             xi2mask = grab->xi2mask;
# 1450|               client = rClient(grab);
# 1451|           }

Error: CLANG_WARNING: [#def73]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:1450:13: warning[deadcode.DeadStores]: Value stored to 'client' is never read
# 1448|               win = grab->window;
# 1449|               xi2mask = grab->xi2mask;
# 1450|->             client = rClient(grab);
# 1451|           }
# 1452|       }

Error: CLANG_WARNING: [#def74]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:2245:5: warning[deadcode.DeadStores]: Value stored to 'err' is never read
# 2243|       if (XaceHook(XACE_RECEIVE_ACCESS, client, win, xi2, 1) != Success)
# 2244|           return FALSE;
# 2245|->     err = TryClientEvents(client, dev, xi2, 1, filter, filter, NullGrab);
# 2246|       free(xi2);
# 2247|   

Error: CLANG_WARNING: [#def75]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:2293:42: warning[core.NullDereference]: Access to field 'inputClients' results in a dereference of a null pointer
# 2291|           evtype = GetXI2Type(ev->any.type);
# 2292|   
# 2293|->         nt_list_for_each_entry(iclients, wOtherInputMasks(*win)->inputClients, next)
# 2294|               if (xi2mask_isset(iclients->xi2mask, dev, evtype))
# 2295|                   break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c: scope_hint: In function ‘SelectForWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:2682:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:95: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def77]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c: scope_hint: In function ‘MakeInputMasks’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def78]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:2955:26: warning[core.NullDereference]: Array access (via field 'dontPropagateMask') results in a null pointer dereference
# 2953|                   return Success;
# 2954|               if (wOtherInputMasks(pWin))
# 2955|->                 mask &= ~wOtherInputMasks(pWin)->dontPropagateMask[d->id];
# 2956|               if (!mask)
# 2957|                   break;

Error: CLANG_WARNING: [#def79]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:3244:22: warning[core.NullDereference]: Access to field 'resource' results in a dereference of a null pointer (loaded from field 'inputClients')
# 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): [#def80]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c: scope_hint: In function ‘DeviceEventSuppressForWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:3244:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘inputMasks’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def81]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c: scope_hint: In function ‘XISetEventMask’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:3338:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/include/inputstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:3338:18: note: in expansion of macro ‘wOtherInputMasks’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def82]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/exevents.c:3338:18: warning[core.NullDereference]: Access to field 'inputClients' results in a dereference of a null pointer
# 3336|           if (AddExtensionClient(win, client, 0, 0) != Success)
# 3337|               return BadAlloc;
# 3338|->         others = wOtherInputMasks(win)->inputClients;
# 3339|       }
# 3340|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getprop.c: scope_hint: In function ‘ClassFromMask’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getprop.c:163:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getprop.c:57: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getprop.c:102:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getprop.c:58: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getprop.c:116:19: note: in expansion of macro ‘wOtherInputMasks’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getprop.c:116:19: note: in expansion of macro ‘wOtherInputMasks’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/input.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/inputstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def84]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/listdev.c: scope_hint: In function ‘CopySwapDevice’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/listdev.c:171:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dev’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/listdev.c:59: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def85]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xibarriers.c:125:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘pbd’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xibarriers.c:124:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def86]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xibarriers.c:480:18: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'nevents')
#  478|           barrier_events->barrier_event = ev;
#  479|           barrier_events++;
#  480|->         *nevents += 1;
#  481|       }
#  482|   

Error: CLANG_WARNING: [#def87]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xibarriers.c:514:18: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'nevents')
#  512|           barrier_events->barrier_event = ev;
#  513|           barrier_events++;
#  514|->         *nevents += 1;
#  515|   
#  516|           /* If we've left the hit box, this is the

Error: GCC_ANALYZER_WARNING (CWE-476): [#def88]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xibarriers.c: scope_hint: In function ‘add_master_func’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def89]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xichangecursor.c:93:21: warning[core.NullDereference]: Dereference of null pointer
#   91|   
#   92|       if (stuff->cursor == None) {
#   93|->         if (pWin == pWin->drawable.pScreen->root)
#   94|               pCursor = rootCursor;
#   95|           else

Error: CLANG_WARNING: [#def90]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xiquerydevice.c:127:9: warning[deadcode.DeadStores]: Value stored to 'info' is never read
#  125|           if (client->swapped)
#  126|               SwapDeviceInfo(dev, (xXIDeviceInfo *) info);
#  127|->         info += len;
#  128|           rep.num_devices = 1;
#  129|       }

Error: CLANG_WARNING: [#def91]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xiquerydevice.c:546:20: warning[unix.Malloc]: Use of memory allocated with size zero
#  544|       int len = 0, total_len = 0;
#  545|   
#  546|->     info->deviceid = dev->id;
#  547|       info->use = GetDeviceUse(dev, &info->attachment);
#  548|       info->num_classes = 0;

Error: CLANG_WARNING: [#def92]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xiquerydevice.c:619:9: warning[deadcode.DeadStores]: Value stored to 'any' is never read
#  617|           (*nclasses)++;
#  618|           len = ListGestureInfo(dev, (xXIGestureInfo *) any);
#  619|->         any += len;
#  620|           total_len += len;
#  621|       }

Error: CLANG_WARNING: [#def93]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:309:49: warning[core.NullDereference]: Dereference of null pointer
#  307|           }
#  308|   
#  309|->     rc = XaceHook(XACE_RESOURCE_ACCESS, client, cs->pOverlayWin->drawable.id,
#  310|                     RT_WINDOW, cs->pOverlayWin, RT_NONE, NULL, DixGetAttrAccess);
#  311|       if (rc != Success) {

Error: CLANG_WARNING: [#def94]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:755:14: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  753|           }
#  754|   
#  755|->         if (!AddResource(newPix->info[i].id, RT_PIXMAP, (void *) pPixmap))
#  756|               return BadAlloc;
#  757|   

Error: CLANG_WARNING: [#def95]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:756:20: warning[unix.Malloc]: Potential leak of memory pointed to by 'newPix'
#  754|   
#  755|           if (!AddResource(newPix->info[i].id, RT_PIXMAP, (void *) pPixmap))
#  756|->             return BadAlloc;
#  757|   
#  758|           ++pPixmap->refcnt;

Error: CLANG_WARNING: [#def96]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:829:23: warning[core.NullDereference]: Dereference of null pointer
#  827|   
#  828|           rc = XaceHook(XACE_RESOURCE_ACCESS, client,
#  829|->                       cs->pOverlayWin->drawable.id,
#  830|                         RT_WINDOW, cs->pOverlayWin, RT_NONE, NULL,
#  831|                         DixGetAttrAccess);

Error: CLANG_WARNING: [#def97]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:845:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  843|           }
#  844|   
#  845|->         AddResource(overlayWin->info[0].id, XRT_WINDOW, overlayWin);
#  846|       }
#  847|   

Error: CLANG_WARNING: [#def98]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/cursor.c:433:13: warning[core.NullDereference]: Access to field 'refcnt' results in a dereference of a null pointer (loaded from variable 'sourcefont')
#  431|               }
#  432|               pShare->font = sourcefont;
#  433|->             sourcefont->refcnt++;
#  434|               pShare->sourceChar = sourceChar;
#  435|               pShare->maskChar = maskChar;

Error: CLANG_WARNING: [#def99]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/devices.c:405:11: warning[deadcode.DeadStores]: Although the value stored to 'ret' is used in the enclosing expression, the value is never actually read from 'ret'
#  403|       input_lock();
#  404|       if ((*prev != dev) || !dev->inited ||
#  405|->         ((ret = (*dev->deviceProc) (dev, DEVICE_ON)) != Success)) {
#  406|           ErrorF("[dix] couldn't enable device %d\n", dev->id);
#  407|           input_unlock();

Error: CLANG_WARNING: [#def100]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/devices.c:1668:9: warning[deadcode.DeadStores]: Value stored to 'num_axes' is never read
# 1666|                      "Device '%s' has %d touch axes, only using first %d.\n",
# 1667|                      device->name, num_axes, MAX_VALUATORS);
# 1668|->         num_axes = MAX_VALUATORS;
# 1669|       }
# 1670|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/devices.c: scope_hint: In function ‘GetPairedDevice’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/devices.c:2731:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
# 2729|           dev = GetMaster(dev, MASTER_ATTACHED);
# 2730|   
# 2731|->     return dev->spriteInfo? dev->spriteInfo->paired: NULL;
# 2732|   }
# 2733|   

Error: CLANG_WARNING: [#def102]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dispatch.c:375:65: warning[core.NullDereference]: Access to field 'index' results in a dereference of a null pointer (loaded from variable 'best')
#  373|       }
#  374|   #endif
#  375|->     SmartLastIndex[best->smart_priority - SMART_MIN_PRIORITY] = best->index;
#  376|       /*
#  377|        * Set current client pointer

Error: CLANG_WARNING: [#def103]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dispatch.c:3703:5: warning[deadcode.DeadStores]: Value stored to 'numScreens' is never read
# 3701|       }
# 3702|   
# 3703|->     numScreens = screenInfo.numScreens;
# 3704|       lConnectionInfo = ConnectionInfo;
# 3705|       lconnSetupPrefix = &connSetupPrefix;

Error: CLANG_WARNING: [#def104]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:443:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'c'
#  441|       c->non_cachable_font = cached;
#  442|   
#  443|->     (void) doOpenFont(client, c);
#  444|       return Success;
#  445|   }

Error: CLANG_WARNING: [#def105]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:542:9: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#  540|           (*pFont->get_metrics) (pFont, ncols, chars,
#  541|                                  TwoD16Bit, &count, charInfos);
#  542|->         i = 0;
#  543|           for (i = 0; i < (int) count && ninfos < nProtoCCIStructs; i++) {
#  544|               *prCI = *charInfos[i];

Error: CLANG_WARNING: [#def106]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:573:9: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  571|               (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe);
#  572|           }
#  573|->         err = Successful;
#  574|           goto bail;
#  575|       }

Error: CLANG_WARNING: [#def107]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:593:22: warning[unix.Malloc]: Potential leak of memory pointed to by 'resolved'
#  591|   
#  592|               if (err == Suspended) {
#  593|->                 if (!ClientIsAsleep(client))
#  594|                       ClientSleep(client,
#  595|                                   (ClientSleepProcPtr) doListFontsAndAliases, c);

Error: CLANG_WARNING: [#def108]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:674:17: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
#  672|                    * is complete.
#  673|                    */
#  674|->                 memcpy(tmp_pattern, resolved, resolvedlen);
#  675|                   if (c->haveSaved) {
#  676|                       char *tmpname;

Error: CLANG_WARNING: [#def109]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:674:17: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  672|                    * is complete.
#  673|                    */
#  674|->                 memcpy(tmp_pattern, resolved, resolvedlen);
#  675|                   if (c->haveSaved) {
#  676|                       char *tmpname;

Error: CLANG_WARNING: [#def110]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:684:25: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  682|                            &tmpname, &tmpnamelen, c->current.private);
#  683|                       if (--aliascount <= 0) {
#  684|->                         err = BadFontName;
#  685|                           goto ContBadFontName;
#  686|                       }

Error: CLANG_WARNING: [#def111]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:864:9: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  862|               (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe);
#  863|           }
#  864|->         err = Successful;
#  865|           goto bail;
#  866|       }

Error: CLANG_WARNING: [#def112]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:923:21: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  921|                        &numFonts, c->current.private);
#  922|                   if (--aliascount <= 0) {
#  923|->                     err = BadFontName;
#  924|                       goto ContBadFontName;
#  925|                   }

Error: CLANG_WARNING: [#def113]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:930:34: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  928|                   c->saved = c->current;
#  929|                   c->haveSaved = TRUE;
#  930|->                 c->savedNumFonts = numFonts;
#  931|                   free(c->savedName);
#  932|                   c->savedName = malloc(namelen + 1);

Error: CLANG_WARNING: [#def114]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:932:47: warning[core.UndefinedBinaryOperatorResult]: The left operand of '+' is a garbage value
#  930|                   c->savedNumFonts = numFonts;
#  931|                   free(c->savedName);
#  932|->                 c->savedName = malloc(namelen + 1);
#  933|                   if (c->savedName)
#  934|                       memcpy(c->savedName, name, namelen + 1);

Error: CLANG_WARNING: [#def115]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:954:13: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  952|               c->current.list_started = FALSE;
#  953|               c->current.current_fpe++;
#  954|->             err = Successful;
#  955|               if (c->haveSaved) {
#  956|                   if (c->current.max_names == 0 ||

Error: CLANG_WARNING: [#def116]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:972:21: warning[deadcode.DeadStores]: Value stored to 'err' is never read
#  970|                   reply = (xListFontsWithInfoReply *) realloc(c->reply, length);
#  971|                   if (!reply) {
#  972|->                     err = AllocError;
#  973|                       break;
#  974|                   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c: scope_hint: In function ‘doPolyText’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def118]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:1345:9: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
# 1343|   
# 1344|           FreeScratchGC(c->pGC);
# 1345|->         free(c->data);
# 1346|           free(c);
# 1347|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def119]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:1345:15: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*c.data’
# 1343|   
# 1344|           FreeScratchGC(c->pGC);
# 1345|->         free(c->data);
# 1346|           free(c);
# 1347|       }

Error: GCC_ANALYZER_WARNING (CWE-590): [#def120]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def121]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:1444:18: warning[deadcode.DeadStores]: Although the value stored to 'err' is used in the enclosing expression, the value is never actually read from 'err'
# 1442|                   goto bail;
# 1443|               }
# 1444|->             if ((err = CopyGC(c->pGC, pGC, GCFunction | GCPlaneMask |
# 1445|                                 GCForeground | GCBackground | GCFillStyle |
# 1446|                                 GCTile | GCStipple | GCTileStipXOrigin |

Error: GCC_ANALYZER_WARNING (CWE-590): [#def122]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c: scope_hint: In function ‘doImageText’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def123]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:1492:9: warning[unix.Malloc]: Argument to free() is the address of the local variable 'local_closure', which is not memory allocated by malloc()
# 1490|           FreeScratchGC(c->pGC);
# 1491|           free(c->data);
# 1492|->         free(c);
# 1493|       }
# 1494|       return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def124]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c: scope_hint: In function ‘SetFontPath’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:1690:28: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘bad’
# 1688|   
# 1689|           err = SetFontPathElements(npaths, paths, &bad, FALSE);
# 1690|->         client->errorValue = bad;
# 1691|       }
# 1692|       return err;

Error: CLANG_WARNING: [#def125]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:1690:28: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1688|   
# 1689|           err = SetFontPathElements(npaths, paths, &bad, FALSE);
# 1690|->         client->errorValue = bad;
# 1691|       }
# 1692|       return err;

Error: CLANG_WARNING: [#def126]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/dixfonts.c:1776:9: warning[unix.Malloc]: Attempt to free released memory
# 1774|       c = realloc(font_path_string, len);
# 1775|       if (c == NULL) {
# 1776|->         free(font_path_string);
# 1777|           font_path_string = NULL;
# 1778|           return BadAlloc;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def127]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/enterleave.c: scope_hint: In function ‘DeviceFocusEvent’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/enterleave.c:779:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xi2event’
#  777|   
#  778|       xi2event = calloc(1, len);
#  779|->     xi2event->type = GenericEvent;
#  780|       xi2event->extension = IReqCode;
#  781|       xi2event->evtype = type;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def128]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c: scope_hint: In function ‘eventToDeviceEvent’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c:688:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*xi’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c: scope_hint: In function ‘eventToDeviceEvent’
#  686|       *xi = calloc(1, len);
#  687|       xde = (xXIDeviceEvent *) * xi;
#  688|->     xde->type = GenericEvent;
#  689|       xde->extension = IReqCode;
#  690|       xde->evtype = GetXI2Type(ev->type);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def129]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c: scope_hint: In function ‘eventToTouchOwnershipEvent’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c:756:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*xi’
#  754|       *xi = calloc(1, len);
#  755|       xtoe = (xXITouchOwnershipEvent *) * xi;
#  756|->     xtoe->type = GenericEvent;
#  757|       xtoe->extension = IReqCode;
#  758|       xtoe->length = bytes_to_int32(len - sizeof(xEvent));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def130]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c: scope_hint: In function ‘eventToRawEvent’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c:786:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*xi’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c: scope_hint: In function ‘eventToRawEvent’
#  784|       *xi = calloc(1, len);
#  785|       raw = (xXIRawEvent *) * xi;
#  786|->     raw->type = GenericEvent;
#  787|       raw->extension = IReqCode;
#  788|       raw->evtype = GetXI2Type(ev->type);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c: scope_hint: In function ‘eventToBarrierEvent’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c:821:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*xi’
#  819|       *xi = calloc(1, len);
#  820|       barrier = (xXIBarrierEvent*) *xi;
#  821|->     barrier->type = GenericEvent;
#  822|       barrier->extension = IReqCode;
#  823|       barrier->evtype = GetXI2Type(ev->type);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def132]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c: scope_hint: In function ‘eventToGesturePinchEvent’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c:850:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*xi’
#  848|       *xi = calloc(1, len);
#  849|       xpe = (xXIGesturePinchEvent *) * xi;
#  850|->     xpe->type = GenericEvent;
#  851|       xpe->extension = IReqCode;
#  852|       xpe->evtype = GetXI2Type(ev->type);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def133]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c: scope_hint: In function ‘eventToGestureSwipeEvent’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.c:892:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*xi’
#  890|       *xi = calloc(1, len);
#  891|       xde = (xXIGestureSwipeEvent *) * xi;
#  892|->     xde->type = GenericEvent;
#  893|       xde->extension = IReqCode;
#  894|       xde->evtype = GetXI2Type(ev->type);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def134]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/events.c: scope_hint: In function ‘CheckPhysLimits’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/events.c:773:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pScreen’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/eventstr.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.h:33: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/events.c:110: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/events.c:5058:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h:152: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/resource.h:98:27: note: in definition of macro ‘CLIENT_BITS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def135]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/extension.c: scope_hint: In function ‘ProcListExtensions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/extension.c:297:23: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/extnsionst.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/registry_priv.h:8: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/extension.c:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/extension.c:266:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def136]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/extension.c:297:23: warning[unix.Malloc]: Use of memory allocated with size zero
#  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-476): [#def137]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/gc.c: scope_hint: In function ‘CreateScratchGC’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/gc.c:816:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pGC’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/gc.c:66: included_from: Included from here.
#  814|           pGC = (GCPtr) NULL;
#  815|       }
#  816|->     pGC->graphicsExposures = FALSE;
#  817|       return pGC;
#  818|   }

Error: CLANG_WARNING: [#def138]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/gc.c:816:28: warning[core.NullDereference]: Access to field 'graphicsExposures' results in a dereference of a null pointer (loaded from variable 'pGC')
#  814|           pGC = (GCPtr) NULL;
#  815|       }
#  816|->     pGC->graphicsExposures = FALSE;
#  817|       return pGC;
#  818|   }

Error: CLANG_WARNING: [#def139]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/getevents.c:830:9: warning[core.NullDereference]: Dereference of null pointer
#  828|   accelPointer(DeviceIntPtr dev, ValuatorMask *valuators, CARD32 ms)
#  829|   {
#  830|->     if (dev->valuator->accelScheme.AccelSchemeProc)
#  831|           dev->valuator->accelScheme.AccelSchemeProc(dev, valuators, ms);
#  832|   }

Error: CLANG_WARNING: [#def140]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/inpututils.c:789:9: warning[core.NullDereference]: Array access (via field 'map') results in a null pointer dereference
#  787|   
#  788|       if (mouse && mouse->touch && mouse->touch->buttonsDown > 0)
#  789|->         SetBit(event->buttons, mouse->button->map[1]);
#  790|   
#  791|       if (kbd && kbd->key) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/privates.c: scope_hint: In function ‘dixAllocatePrivates’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/privates.c:522:5: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def142]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/privates.c:522:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'p'
#  520|   
#  521|       _dixInitPrivates(privates, p, type);
#  522|->     ++global_keys[type].allocated;
#  523|   
#  524|       return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def143]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c: scope_hint: In function ‘dixChangeWindowProperty’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:283:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data’ where non-null expected
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:275:17: note: in expansion of macro ‘dixAllocateObjectWithPrivates’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  281|               return BadAlloc;
#  282|           }
#  283|->         memcpy(data, value, totalSize);
#  284|           pProp->propertyName = property;
#  285|           pProp->type = type;

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

Error: GCC_ANALYZER_WARNING (CWE-688): [#def145]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:318:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘data’ where non-null expected
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:98:18: note: in expansion of macro ‘wUserProps’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:98:18: note: in expansion of macro ‘wUserProps’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  316|               if (!data && len)
#  317|                   return BadAlloc;
#  318|->             memcpy(data, value, totalSize);
#  319|               pProp->data = data;
#  320|               pProp->size = len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c: scope_hint: In function ‘ProcListProperties’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:597:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘temppAtoms’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:580:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:585:18: note: in expansion of macro ‘wUserProps’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:585:18: note: in expansion of macro ‘wUserProps’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:585:18: note: in expansion of macro ‘wUserProps’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:593:18: note: in expansion of macro ‘wUserProps’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:192:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/property.c:593:18: note: in expansion of macro ‘wUserProps’
#  595|           rc = XaceHookPropertyAccess(client, pWin, &realProp, DixGetAttrAccess);
#  596|           if (rc == Success && realProp == pProp) {
#  597|->             *temppAtoms++ = pProp->propertyName;
#  598|               numProps++;
#  599|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/ptrveloc.c: scope_hint: In function ‘InitPredictableAccelerationScheme’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/ptrveloc.c:149:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  147|       scheme.accelData = schemeData;
#  148|       if (!InitializePredictableAccelerationProperties(dev, vel, schemeData)) {
#  149|->         free(vel);
#  150|           free(schemeData);
#  151|           return FALSE;

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

Error: GCC_ANALYZER_WARNING (CWE-590): [#def149]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/region.c: scope_hint: In function ‘RegionBreak’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/dix/region.c:338:5: note: in expansion of macro ‘xfreeData’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/region.c:82: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/region.c:338:5: note: in expansion of macro ‘xfreeData’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/region.c:338:5: note: in expansion of macro ‘xfreeData’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def150]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/region.c:338:5: warning[unix.Malloc]: Argument to free() is the address of the global variable 'RegionEmptyData', which is not memory allocated by malloc()
#  336|   RegionBreak(RegionPtr pReg)
#  337|   {
#  338|->     xfreeData(pReg);
#  339|       pReg->extents = RegionEmptyBox;
#  340|       pReg->data = &RegionBrokenData;

Error: CLANG_WARNING: [#def151]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/region.c:1310:9: warning[unix.Malloc]: Argument to free() is the address of the global variable 'RegionBrokenData', which is not memory allocated by malloc()
# 1308|    bail:
# 1309|       for (i = 0; i < numRI; i++)
# 1310|->         xfreeData(&ri[i].reg);
# 1311|       free(ri);
# 1312|       return RegionBreak(badreg);

Error: GCC_ANALYZER_WARNING (CWE-131): [#def152]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/swaprep.c: scope_hint: In function ‘CopySwap32Write’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def153]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/swaprep.c: scope_hint: In function ‘CopySwap16Write’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def154]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/window.c: scope_hint: In function ‘ChangeWindowDeviceCursor’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def155]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c: scope_hint: In function ‘dri3_fd_from_pixmap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c:143:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_priv.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘dri3_fd_from_pixmap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c: scope_hint: In function ‘dri3_fd_from_pixmap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c: scope_hint: In function ‘dri3_fd_from_pixmap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c:143:13: note: read of 4 bytes from after the end of ‘fds’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def156]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c: scope_hint: In function ‘cache_formats_and_modifiers’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c:186:8: warning[-Wanalyzer-malloc-leak]: leak of ‘((struct dri3_screen_priv)**screen.devPrivates).formats’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘cache_formats_and_modifiers’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c: scope_hint: In function ‘cache_formats_and_modifiers’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def157]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fbscreen.c:179:59: warning[core.BitwiseShift]: Right operand is negative in left shift
#  177|       rootdepth = 0;
#  178|       if (!fbInitVisuals(&visuals, &depths, &nvisuals, &ndepths, &rootdepth,
#  179|->                        &defaultVisual, ((unsigned long) 1 << (bpp - 1)),
#  180|                          8))
#  181|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c: scope_hint: In function ‘glamor_close_screen’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c:926:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/pixmapstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.h:33: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c:37: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c:908:27: note: in expansion of macro ‘GetPictureScreenIfSet’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_close_screen’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c: scope_hint: In function ‘glamor_close_screen’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c: scope_hint: In function ‘glamor_close_screen’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_close_screen’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c: scope_hint: In function ‘glamor_close_screen’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def159]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c: scope_hint: In function ‘_glamor_fds_from_pixmap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c:1024:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c: scope_hint: In function ‘_glamor_fds_from_pixmap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘_glamor_fds_from_pixmap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c: scope_hint: In function ‘_glamor_fds_from_pixmap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def160]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c: scope_hint: In function ‘glamor_name_from_pixmap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c:1101:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def161]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c:432:59: warning[core.NullDereference]: Access to field 'serial' results in a dereference of a null pointer (loaded from variable 'glyph_atlas')
#  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): [#def162]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c:432:70: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘glyph_atlas’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_composite_glyphs’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def163]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_core.c: scope_hint: In function ‘glamor_get_drawable_location’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_core.c:44:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def164]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_fbo.c:287:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def165]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_fbo.c:355:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'fbo'
#  353|       }
#  354|   
#  355|->     return TRUE;
#  356|   }
#  357|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_exchange_fbos’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_fbo.c:366:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def167]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_fbo.c:367:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_pixmap_exchange_fbos’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_exchange_fbos’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_exchange_fbos’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def168]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c:130:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘__glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def169]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c:235:38: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_compute_clipped_regions_ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def170]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c:365:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘_glamor_compute_clipped_regions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def171]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c:1133:12: warning[core.NullDereference]: Access to field 'transform' results in a dereference of a null pointer (loaded from variable 'mask')
# 1131|   
# 1132|       if (mask_pixmap_priv
# 1133|->         && mask->transform && glamor_pixmap_priv_is_large(mask_pixmap_priv)) {
# 1134|           int mask_transformed_block_width, mask_transformed_block_height;
# 1135|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def172]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c:1175:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘source_pixmap_priv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_largepixmap.c: scope_hint: In function ‘glamor_composite_largepixmap_region’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def173]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_picture.c:333:9: warning[deadcode.DeadStores]: Value stored to 'stride' is never read
#  331|   
#  332|           bits = pixman_image_get_data(converted_image);
#  333|->         stride = pixman_image_get_stride(converted_image);
#  334|       }
#  335|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def174]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_prepare.c: scope_hint: In function ‘glamor_prep_drawable_box’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_prepare.c:44:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def175]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_render.c:35: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_drm_only’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:458:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def176]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c:25: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_is_memory’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:469:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/Xprintf.h:29: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c:23: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def177]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:502:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_has_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def178]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:517:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_composite_glyphs.c: scope_hint: In function ‘glamor_pixmap_fbo_at’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def179]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h:18: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_transform.c:23: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h: scope_hint: In function ‘glamor_pixmap_box_at’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:524:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def180]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:537:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/glamor/glamor_priv.h:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_dash.c: scope_hint: In function ‘glamor_dash_loop’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def181]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_program.c:406:5: warning[unix.Malloc]: Attempt to free released memory
#  404|           prog->prog = 0;
#  405|       }
#  406|->     free(vs_prog_string);
#  407|       free(fs_prog_string);
#  408|       free(version_string);

Error: CLANG_WARNING: [#def182]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_render.c:251:17: warning[deadcode.DeadStores]: Value stored to 'mask_fetch' during its initialization is never read
#  249|       char *source;
#  250|       const char *source_fetch;
#  251|->     const char *mask_fetch = "";
#  252|       const char *in;
#  253|       const char *header;

Error: CLANG_WARNING: [#def183]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_render.c:1077:9: warning[deadcode.DeadStores]: Value stored to 'mask_needs_upload' is never read
# 1075|               goto fail;
# 1076|           }
# 1077|->         mask_needs_upload = FALSE;
# 1078|       }
# 1079|       else {

Error: CLANG_WARNING: [#def184]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_render.c:1111:27: warning[core.NullDereference]: Access to field 'format' results in a dereference of a null pointer (loaded from variable 'mask')
# 1109|        */
# 1110|       if (source_pixmap && source_pixmap == mask_pixmap &&
# 1111|->         source->format != mask->format) {
# 1112|           goto fail;
# 1113|       }

Error: CLANG_WARNING: [#def185]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_render.c:1346:36: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
# 1344|               x_source = rects->x_src + source_x_off;
# 1345|               y_source = rects->y_src + source_y_off;
# 1346|->             x_mask = rects->x_mask + mask_x_off;
# 1347|               y_mask = rects->y_mask + mask_y_off;
# 1348|               width = rects->width;

Error: CLANG_WARNING: [#def186]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_transform.c:127:16: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  125|   
#  126|       if ((depth <= 8) && glamor_priv->formats[8].format == GL_RED)
#  127|->       color[0] = color[3];
#  128|   
#  129|       glUniform4fv(uniform, 1, color);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def187]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:983: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_core.c: scope_hint: In function ‘glamor_validate_gc’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_utils.h:573:64: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_core.c:205:19: note: in expansion of macro ‘GLAMOR_PIXMAP_PRIV_HAS_FBO’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_core.c: scope_hint: In function ‘glamor_validate_gc’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_core.c:205:19: note: in expansion of macro ‘GLAMOR_PIXMAP_PRIV_HAS_FBO’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def188]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:983: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_fbo.c:31: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_utils.h: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_fbo.c: scope_hint: In function ‘glamor_pixmap_attach_fbo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def189]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.c:37: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:983: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_utils.h:673:9: warning[core.CallAndMessage]: Called function pointer is null (null dereference)
#  671|       if (lastGLContext != glamor_priv->ctx.ctx) {
#  672|           lastGLContext = glamor_priv->ctx.ctx;
#  673|->         glamor_priv->ctx.make_current(&glamor_priv->ctx);
#  674|       }
#  675|       glamor_priv->dirty = TRUE;

Error: CLANG_WARNING: [#def190]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:433:5: warning[deadcode.DeadStores]: Value stored to 'gamma' is never read
#  431|       cont = RTFContrast(port_priv->contrast);
#  432|       bright = RTFBrightness(port_priv->brightness);
#  433|->     gamma = (float) port_priv->gamma / 1000.0;
#  434|       uvcosf = RTFSaturation(port_priv->saturation) * cos(RTFHue(port_priv->hue));
#  435|       uvsinf = RTFSaturation(port_priv->saturation) * sin(RTFHue(port_priv->hue));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def191]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:483:53: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_pixmap_priv[1]’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:412:18: note: in expansion of macro ‘REGION_RECTS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:413:16: note: in expansion of macro ‘REGION_NUM_RECTS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
#  481|   
#  482|           glActiveTexture(GL_TEXTURE1);
#  483|->         glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[1]->fbo->tex);
#  484|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
#  485|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def192]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:505:53: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_pixmap_priv[1]’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:412:18: note: in expansion of macro ‘REGION_RECTS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:413:16: note: in expansion of macro ‘REGION_NUM_RECTS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
#  503|   
#  504|           glActiveTexture(GL_TEXTURE1);
#  505|->         glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[1]->fbo->tex);
#  506|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
#  507|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Error: CLANG_WARNING: [#def193]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:525:38: warning[core.NullDereference]: Access to field 'fbo' results in a dereference of a null pointer
#  523|       case FOURCC_RGB565:
#  524|           glActiveTexture(GL_TEXTURE0);
#  525|->         glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[0]->fbo->tex);
#  526|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
#  527|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Error: CLANG_WARNING: [#def194]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:648:5: warning[deadcode.DeadStores]: Value stored to 's2offset' is never read
#  646|       BoxRec full_box, half_box;
#  647|   
#  648|->     s2offset = s3offset = srcPitch2 = 0;
#  649|   
#  650|       if (!glamor_xv_can_reuse_port(port_priv, id, width, height)) {

Error: CLANG_WARNING: [#def195]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:648:16: warning[deadcode.DeadStores]: Although the value stored to 's3offset' is used in the enclosing expression, the value is never actually read from 's3offset'
#  646|       BoxRec full_box, half_box;
#  647|   
#  648|->     s2offset = s3offset = srcPitch2 = 0;
#  649|   
#  650|       if (!glamor_xv_can_reuse_port(port_priv, id, width, height)) {

Error: CLANG_WARNING: [#def196]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:648:27: warning[deadcode.DeadStores]: Although the value stored to 'srcPitch2' is used in the enclosing expression, the value is never actually read from 'srcPitch2'
#  646|       BoxRec full_box, half_box;
#  647|   
#  648|->     s2offset = s3offset = srcPitch2 = 0;
#  649|   
#  650|       if (!glamor_xv_can_reuse_port(port_priv, id, width, height)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def197]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/createcontext.c: scope_hint: In function ‘__glXDisp_CreateContextAttribsARB’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/createcontext.c:174:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  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: CLANG_WARNING: [#def198]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/glxcmds.c:126:9: warning[core.NullDereference]: Access to field 'class' results in a dereference of a null pointer (loaded from variable '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): [#def199]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/glxcmds.c: scope_hint: In function ‘validGlxFBConfigForWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def200]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/glxcmds.c:1001:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  999|           assert(p == GLX_VIS_CONFIG_TOTAL);
# 1000|           if (client->swapped) {
# 1001|->             __GLX_SWAP_INT_ARRAY(buf, p);
# 1002|           }
# 1003|           WriteToClient(client, __GLX_SIZE_CARD32 * p, buf);

Error: CLANG_WARNING: [#def201]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/glxcmds.c:1125:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1123|   
# 1124|           if (client->swapped) {
# 1125|->             __GLX_SWAP_INT_ARRAY(buf, __GLX_FBCONFIG_ATTRIBS_LENGTH);
# 1126|           }
# 1127|           WriteToClient(client, __GLX_SIZE_CARD32 * __GLX_FBCONFIG_ATTRIBS_LENGTH,

Error: CLANG_WARNING: [#def202]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/glxcmds.c:1702:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1700|           __GLX_SWAP_INT(&reply.n);
# 1701|           WriteToClient(client, sz_xGLXQueryContextInfoEXTReply, &reply);
# 1702|->         __GLX_SWAP_INT_ARRAY((int *) sendBuf, length);
# 1703|           WriteToClient(client, length << 2, sendBuf);
# 1704|       }

Error: CLANG_WARNING: [#def203]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/glxcmds.c:1946:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1944|           __GLX_SWAP_INT(&reply.numAttribs);
# 1945|           WriteToClient(client, sz_xGLXGetDrawableAttributesReply, &reply);
# 1946|->         __GLX_SWAP_INT_ARRAY((int *) attributes, length);
# 1947|           WriteToClient(client, length << 2, attributes);
# 1948|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def204]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/glxdricommon.c: scope_hint: In function ‘createModeFromConfig’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def205]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/indirect_dispatch.c:71:5: warning[deadcode.DeadStores]: Value stored to 'pc' is never read
#   69|       __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
#   70|   
#   71|->     pc += __GLX_SINGLE_HDR_SIZE;
#   72|       if (cx != NULL) {
#   73|           glEndList();

Error: CLANG_WARNING: [#def206]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/indirect_dispatch.c:91:19: warning[deadcode.DeadStores]: Value stored to 'lists' during its initialization is never read
#   89|       const GLsizei n = *(GLsizei *) (pc + 0);
#   90|       const GLenum type = *(GLenum *) (pc + 4);
#   91|->     const GLvoid *lists = (const GLvoid *) (pc + 8);
#   92|   
#   93|       lists = (const GLvoid *) (pc + 8);

Error: CLANG_WARNING: [#def207]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/indirect_dispatch.c:1588:5: warning[deadcode.DeadStores]: Value stored to 'pc' is never read
# 1586|       __GLXcontext *const cx = __glXForceCurrent(cl, req->contextTag, &error);
# 1587|   
# 1588|->     pc += __GLX_SINGLE_HDR_SIZE;
# 1589|       if (cx != NULL) {
# 1590|           GLenum retval;

Error: CLANG_WARNING: [#def208]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/indirect_dispatch_swap.c:175:5: warning[deadcode.DeadStores]: Value stored to 'pc' is never read
#  173|           __glXForceCurrent(cl, bswap_CARD32(&req->contextTag), &error);
#  174|   
#  175|->     pc += __GLX_SINGLE_HDR_SIZE;
#  176|       if (cx != NULL) {
#  177|           glEndList();

Error: CLANG_WARNING: [#def209]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/indirect_dispatch_swap.c:1789:5: warning[deadcode.DeadStores]: Value stored to 'pc' is never read
# 1787|           __glXForceCurrent(cl, bswap_CARD32(&req->contextTag), &error);
# 1788|   
# 1789|->     pc += __GLX_SINGLE_HDR_SIZE;
# 1790|       if (cx != NULL) {
# 1791|           GLenum retval;

Error: CLANG_WARNING: [#def210]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/single2.c:174:13: warning[deadcode.DeadStores]: Value stored to 'nitems' is never read
#  172|                ** items in the buffer.
#  173|                */
#  174|->             nitems = 0;
#  175|               i = retval;
#  176|               while (--i >= 0) {

Error: CLANG_WARNING: [#def211]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/single2.c:315:13: warning[unix.Malloc]: Potential leak of memory pointed to by 'combo_string'
#  313|                   combo_string = strcat(combo_string, SEPARATOR);
#  314|               }
#  315|->             p += (n + 1);
#  316|           }
#  317|   

Error: CLANG_WARNING: [#def212]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glx/single2swap.c:185:13: warning[deadcode.DeadStores]: Value stored to 'nitems' is never read
#  183|                ** items in the buffer.
#  184|                */
#  185|->             nitems = 0;
#  186|               i = retval;
#  187|               while (--i >= 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def213]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/vfb/InitOutput.c: scope_hint: In function ‘vfbInstallColormap.part.0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/vfb/InitOutput.c:416:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ppix’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/vfb/InitOutput.c:43: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def214]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-drm-lease.c:165:13: warning[core.NullDereference]: Access to field 'drm_lease_device' results in a dereference of a null pointer (loaded from variable 'lease_device')
#  163|   
#  164|       req = wp_drm_lease_device_v1_create_lease_request(
#  165|->             lease_device->drm_lease_device);
#  166|       lease_private = calloc(1, sizeof(struct xwl_drm_lease));
#  167|       for (i = 0; i < rrLease->numOutputs; ++i) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def215]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-drm-lease.c: scope_hint: In function ‘xwl_screen_add_drm_lease_device’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def216]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-glamor-gbm.c: scope_hint: In function ‘xwl_dri3_create_syncobj’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-glamor-gbm.c:1158:12: warning[-Wanalyzer-malloc-leak]: leak of ‘syncobj’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-glamor-gbm.c:49: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘xwl_dri3_create_syncobj’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-glamor-gbm.c: scope_hint: In function ‘xwl_dri3_create_syncobj’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-glamor-gbm.c: scope_hint: In function ‘xwl_dri3_create_syncobj’
# 1156|       syncobj->base.signaled_eventfd = xwl_dri3_syncobj_signaled_eventfd;
# 1157|       syncobj->base.submitted_eventfd = xwl_dri3_syncobj_submitted_eventfd;
# 1158|->     return &syncobj->base;
# 1159|   
# 1160|   fail:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-input.c: scope_hint: In function ‘xwl_pointer_warp_emulator_lock’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-input.c:3286:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘warp_emulator’
# 3284|   xwl_pointer_warp_emulator_lock(struct xwl_pointer_warp_emulator *warp_emulator)
# 3285|   {
# 3286|->     struct xwl_seat *xwl_seat = warp_emulator->xwl_seat;
# 3287|       struct xwl_screen *xwl_screen = xwl_seat->xwl_screen;
# 3288|       struct zwp_pointer_constraints_v1 *pointer_constraints =

Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-input.c:3287:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xwl_seat’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-input.c: scope_hint: In function ‘xwl_pointer_warp_emulator_lock’
# 3285|   {
# 3286|       struct xwl_seat *xwl_seat = warp_emulator->xwl_seat;
# 3287|->     struct xwl_screen *xwl_screen = xwl_seat->xwl_screen;
# 3288|       struct zwp_pointer_constraints_v1 *pointer_constraints =
# 3289|           xwl_screen->pointer_constraints;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-input.c: scope_hint: In function ‘xwl_seat_create_pointer_warp_emulator’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-input.c:3413:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*xwl_seat.pointer_warp_emulator’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-input.c: scope_hint: In function ‘xwl_seat_create_pointer_warp_emulator’
# 3411|       xwl_seat->pointer_warp_emulator =
# 3412|           xwl_pointer_warp_emulator_create(xwl_seat);
# 3413|-> }
# 3414|   
# 3415|   static Bool

Error: CLANG_WARNING: [#def220]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-output.c:410:13: warning[core.NullDereference]: Array access (via field 'modes') results in a null pointer dereference
#  408|   
#  409|       for (i = 0; i < output->numModes; i++) {
#  410|->         if (output->modes[i]->mode.width == width && output->modes[i]->mode.height == height)
#  411|               return output->modes[i];
#  412|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def221]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-screen.c: scope_hint: In function ‘xwl_cursor_warped_to’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-screen.c:307:32: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xwl_seat’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-screen.c:34: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘xwl_cursor_warped_to’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-screen.c: scope_hint: In function ‘xwl_cursor_warped_to’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-screen.c: scope_hint: In function ‘xwl_cursor_warped_to’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def222]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-screen.c: scope_hint: In function ‘registry_global.part.0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def223]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-window.c:1093:22: warning[unix.Malloc]: Use of memory after it is freed
# 1091|   
# 1092|       xorg_list_for_each_entry(window_output, &xwl_window->xwl_output_list, link) {
# 1093|->         xwl_output = window_output->xwl_output;
# 1094|           if (xwl_output->scale > scale)
# 1095|               scale = xwl_output->scale;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def224]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-xtest.c: scope_hint: In function ‘setup_ei’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-xtest.c:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘setup_ei’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-xtest.c: scope_hint: In function ‘setup_ei’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def225]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-xtest.c:792:21: warning[unix.Malloc]: Use of memory after it is freed
#  790|                       struct xwl_abs_device *abs, *tmp;
#  791|   
#  792|->                     xorg_list_for_each_entry_safe(abs, tmp,
#  793|                           &xwl_ei_client->abs_devices, link) {
#  794|                           if (abs->device != ei_device)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c: scope_hint: In function ‘ProcRRGetCrtcGamma’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:73:19: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1686:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1686:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1687:5: note: in expansion of macro ‘VERIFY_RR_CRTC’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1687:5: note: in expansion of macro ‘VERIFY_RR_CRTC’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def227]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h:151: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compint.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:48: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c: scope_hint: In function ‘PanoramiXCompositeNameWindowPixmap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:73:19: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:712:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:712:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:720:5: note: in expansion of macro ‘LEGAL_NEW_RESOURCE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:720:5: note: in expansion of macro ‘LEGAL_NEW_RESOURCE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiXsrv.h:9: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:592: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:729:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:743:14: note: in expansion of macro ‘GetCompWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:743:14: note: in expansion of macro ‘GetCompWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c: scope_hint: In function ‘PanoramiXCompositeNameWindowPixmap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/composite/compext.c:743:14: note: in expansion of macro ‘GetCompWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def228]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h:151: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:37: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c: scope_hint: In function ‘ProcShapeGetRectangles’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:73:19: warning[-Wanalyzer-malloc-leak]: leak of ‘rects’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:951:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:1194:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:35: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:1195:5: note: in expansion of macro ‘swapl’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:951:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:197:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:963:18: note: in expansion of macro ‘wInputShape’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:197:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:963:18: note: in expansion of macro ‘wInputShape’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c: scope_hint: In function ‘ProcShapeGetRectangles’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/shape.c:1000:17: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def229]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/list.h:135:16: warning[-Wanalyzer-malloc-leak]: leak of ‘AllocBarrierDevice()’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xibarriers.c: scope_hint: In function ‘CreatePointerBarrierClient’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xibarriers.c:569:10: note: in expansion of macro ‘GetBarrierScreen’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xibarriers.c: scope_hint: In function ‘CreatePointerBarrierClient’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/xibarriers.c:569:10: note: in expansion of macro ‘GetBarrierScreen’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def230]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/input.h:58: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/extnsionst.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/registry_priv.h:8: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:15: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c: scope_hint: In function ‘DestroyFragments’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/list.h:325:10: warning[-Wanalyzer-infinite-loop]: infinite loop
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:139:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:139:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:139:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c: scope_hint: In function ‘DestroyFragments’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xext/xres.c:139:5: note: in expansion of macro ‘xorg_list_for_each_entry_safe’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def231]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/input.h:58: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/eventconvert.h:31: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/gestures.c:30: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/gestures.c: scope_hint: In function ‘GestureAddRegularListener’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/list.h:387:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/gestures.c:242:9: note: in expansion of macro ‘nt_list_for_each_entry’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/gestures.c:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/gestures.c:239:18: note: in expansion of macro ‘wOtherInputMasks’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:190:33: note: in expansion of macro ‘wUseDefault’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/gestures.c:239:18: note: in expansion of macro ‘wOtherInputMasks’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dix/gestures.c:242:9: note: in expansion of macro ‘nt_list_for_each_entry’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def232]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/glyph.c:31: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/glyph.c: scope_hint: In function ‘ResizeGlyphHash’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:107:14: warning[-Wanalyzer-malloc-leak]: leak of ‘newHash.table’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/glyph.c:411:16: note: in expansion of macro ‘TRUE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/glyph.c: scope_hint: In function ‘ResizeGlyphHash’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def233]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_compositerects.c:30: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_compositerects.c: scope_hint: In function ‘_pixman_region_init_clipped_rectangles’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:108:15: warning[-Wanalyzer-malloc-leak]: leak of ‘boxes’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_compositerects.c:62:20: note: in expansion of macro ‘FALSE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_compositerects.c:60:17: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_compositerects.c:60:17: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def234]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/input.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/inputstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getfctl.c:57: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getfctl.c: scope_hint: In function ‘CopySwapKbdFeedback’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:357:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*k2.led_values’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getfctl.c:108:9: note: in expansion of macro ‘swapl’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getfctl.c:292:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/Xi/getfctl.c:104:9: note: in expansion of macro ‘swaps’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def235]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:64: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:528:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:529:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:530:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def236]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:42: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c: scope_hint: In function ‘InitKeyboardDeviceStructInternal’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:64: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:528:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:529:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:530:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def237]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:64: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.options’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:528:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:529:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:530:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def238]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:64: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:528:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:529:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:530:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def239]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:64: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.variant’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:527:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:528:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:529:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:437:18: note: in definition of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:530:5: note: in expansion of macro ‘BUG_RETURN_VAL’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def240]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrpointer.c:23: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h:123:21: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'privates')
#  121|   {
#  122|       assert(key->initialized);
#  123|->     return (char *) (*privates) + key->offset;
#  124|   }
#  125|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def241]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/regionstr.h:74:18: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘fbOverlayCopyWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘fbOverlayCopyWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘fbOverlayCopyWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘fbOverlayCopyWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/regionstr.h:74:18: note: read of 8 bytes from after the end of ‘layerRgn’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def242]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/regionstr.h: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/regionstr.h:165:16: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/regionstr.h:165:16: note: read of 8 bytes from after the end of ‘layerRgn’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def243]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miexpose.c:83: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/regionstr.h:165:26: warning[unix.Malloc]: Use of memory after it is freed
#  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): [#def244]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:51: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:30: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/regionstr.h: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/miext/damage/damage.c:42: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damagestr.h:102:32: note: in expansion of macro ‘damageGetGCPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:364:5: note: in expansion of macro ‘damageGCPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:1418:5: note: in expansion of macro ‘DAMAGE_GC_OP_PROLOGUE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damagestr.h:102:32: note: in expansion of macro ‘damageGetGCPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:364:5: note: in expansion of macro ‘damageGCPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:1418:5: note: in expansion of macro ‘DAMAGE_GC_OP_PROLOGUE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damagestr.h:87:36: note: in expansion of macro ‘damageGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:138:5: note: in expansion of macro ‘damageScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damagestr.h:87:36: note: in expansion of macro ‘damageGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:138:5: note: in expansion of macro ‘damageScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:117:27: note: in expansion of macro ‘getDrawableDamage’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:139:5: note: in expansion of macro ‘drawableDamage’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:110:12: note: in expansion of macro ‘getPixmapDamageRef’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:110:12: note: in expansion of macro ‘getPixmapDamageRef’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:117:27: note: in expansion of macro ‘getDrawableDamage’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/miext/damage/damage.c:139:5: note: in expansion of macro ‘drawableDamage’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def245]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/micopy.c:27: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mi.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/region.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/regionstr.h:166:9: warning[unix.Malloc]: Argument to free() is the address of the global variable 'RegionEmptyData', which is not memory allocated by malloc()
#  164|   {
#  165|       if ((_pReg)->data && (_pReg)->data->size) {
#  166|->         free((_pReg)->data);
#  167|           (_pReg)->data = NULL;
#  168|       }

Error: GCC_ANALYZER_WARNING (CWE-121): [#def246]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/regionstr.h:167:23: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c:193:36: note: in expansion of macro ‘fbOverlayGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fboverlay.c: scope_hint: In function ‘RegionUninit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/regionstr.h:167:23: note: write of 8 bytes to beyond the end of ‘layerRgn’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def247]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:395:5: warning[deadcode.DeadStores]: Value stored to 'y' is never read
#  393|       doinner = -lw;
#  394|       slw = parc->width - doinner;
#  395|->     y = parc->height >> 1;
#  396|       dy = parc->height & 1;
#  397|       dx = 1 - dy;

Error: CLANG_WARNING: [#def248]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:814:25: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
#  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): [#def249]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c: scope_hint: In function ‘miFillWideEllipse’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:814:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*span.lx’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:63: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def250]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:834:25: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
#  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): [#def251]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:834:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*span.lx’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def252]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:853:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*span.rw’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:398:5: note: in expansion of macro ‘MIWIDEARCSETUP’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def253]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:868:13: warning[deadcode.DeadStores]: Value stored to 'wids' is never read
#  866|               wids[1] = span->rw;
#  867|               pts += 2;
#  868|->             wids += 2;
#  869|           }
#  870|       }

Error: CLANG_WARNING: [#def254]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:1130:17: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1128|   
# 1129|       ptMin = pts;
# 1130|->     ymin = ymax = (pts++)->y;
# 1131|   
# 1132|       while (--n > 0) {

Error: GCC_ANALYZER_WARNING (CWE-787): [#def255]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c: scope_hint: In function ‘miComputeArcs’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:2157:36: warning[-Wanalyzer-out-of-bounds]: buffer over-read
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:56: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def256]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:2518:5: warning[deadcode.DeadStores]: Value stored to 'x0' is never read
# 2516|       }
# 2517|   
# 2518|->     x0 = xmin;
# 2519|       x1 = xmax;
# 2520|       y0 = ymin;

Error: CLANG_WARNING: [#def257]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:2519:5: warning[deadcode.DeadStores]: Value stored to 'x1' is never read
# 2517|   
# 2518|       x0 = xmin;
# 2519|->     x1 = xmax;
# 2520|       y0 = ymin;
# 2521|       y1 = ymax;

Error: CLANG_WARNING: [#def258]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:2520:5: warning[deadcode.DeadStores]: Value stored to 'y0' is never read
# 2518|       x0 = xmin;
# 2519|       x1 = xmax;
# 2520|->     y0 = ymin;
# 2521|       y1 = ymax;
# 2522|       if (ymin != y1) {

Error: CLANG_WARNING: [#def259]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miarc.c:3431:23: warning[core.BitwiseShift]: Right operand is negative in left shift
# 3429|           mask = sweep[j].mask;
# 3430|           passRight = passLeft = 0;
# 3431|->         if (mask & (1 << rightq)) {
# 3432|               if (sweep[j].a0 == righta)
# 3433|                   passRight = right;

Error: CLANG_WARNING: [#def260]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mibitblt.c:139:16: warning[deadcode.DeadStores]: Although the value stored to 'ppt' is used in the enclosing expression, the value is never actually read from 'ppt'
#  137|       }
#  138|   
#  139|->     pptFirst = ppt = xallocarray(heightSrc, sizeof(DDXPointRec));
#  140|       pwidthFirst = pwidth = xallocarray(heightSrc, sizeof(unsigned int));
#  141|       numRects = RegionNumRects(prgnSrcClip);

Error: CLANG_WARNING: [#def261]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mibitblt.c:140:19: warning[deadcode.DeadStores]: Although the value stored to 'pwidth' is used in the enclosing expression, the value is never actually read from 'pwidth'
#  138|   
#  139|       pptFirst = ppt = xallocarray(heightSrc, sizeof(DDXPointRec));
#  140|->     pwidthFirst = pwidth = xallocarray(heightSrc, sizeof(unsigned int));
#  141|       numRects = RegionNumRects(prgnSrcClip);
#  142|       boxes = RegionRects(prgnSrcClip);

Error: CLANG_WARNING: [#def262]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mibitblt.c:671:1: warning[unix.Malloc]: Potential memory leak
#  669|                             (MiBits *) pDst);
#  670|       }
#  671|-> }
#  672|   
#  673|   /* MIPUTIMAGE -- public entry for the PutImage request

Error: GCC_ANALYZER_WARNING (CWE-787): [#def263]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/micmap.c: scope_hint: In function ‘miInitVisuals’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/micmap.c:480:16: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/micmap.c:281:24: note: in expansion of macro ‘_RZ’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/micmap.c:331:19: note: in expansion of macro ‘_RM’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/micmap.c:36: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def264]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def265]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/micmap.c:503:32: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'vid')
#  501|               visual->ColormapEntries = 1 << d;
#  502|               visual->nplanes = d;
#  503|->             visual->vid = *vid = FakeClientID(0);
#  504|               switch (visual->class) {
#  505|               case PseudoColor:

Error: CLANG_WARNING: [#def266]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/midash.c:78:21: warning[core.DivideZero]: Division by zero
#   76|           totallen += pDash[i];
#   77|       if (totallen <= dist)
#   78|->         dist = dist % totallen;
#   79|       while (dist >= pDash[dashIndex]) {
#   80|           dist -= pDash[dashIndex];

Error: CLANG_WARNING: [#def267]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mieq.c:503:9: warning[core.NullDereference]: Dereference of null pointer
#  501|       else {
#  502|           /* process slave first, then master */
#  503|->         dev->public.processInputProc(event, dev);
#  504|   
#  505|           /* Check for the SD's master in case the device got detached

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miexpose.c: scope_hint: In function ‘miPaintWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miexpose.c:553:47: warning[-Wanalyzer-malloc-leak]: leak of ‘prect’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miexpose.c:82: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miexpose.c:538:13: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miexpose.c: scope_hint: In function ‘miPaintWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def269]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miexpose.c:563:5: warning[-Wanalyzer-malloc-leak]: leak of ‘prect’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miexpose.c:538:13: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miexpose.c: scope_hint: In function ‘miPaintWindow’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miexpose.c: scope_hint: In function ‘miPaintWindow’
#  561|       free(prect);
#  562|   
#  563|->     FreeScratchGC(pGC);
#  564|   }
#  565|   

Error: CLANG_WARNING: [#def270]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mifillarc.c:566:9: warning[deadcode.DeadStores]: Value stored to 'slw' is never read
#  564|       slw = arc->height;
#  565|       if (slice.flip_top || slice.flip_bot)
#  566|->         slw += (arc->height >> 1) + 1;
#  567|       if (pGC->miTranslate) {
#  568|           xorg += pDraw->x;

Error: CLANG_WARNING: [#def271]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mifillarc.c:610:9: warning[deadcode.DeadStores]: Value stored to 'slw' is never read
#  608|       slw = arc->height;
#  609|       if (slice.flip_top || slice.flip_bot)
#  610|->         slw += (arc->height >> 1) + 1;
#  611|       if (pGC->miTranslate) {
#  612|           xorg += pDraw->x;

Error: GCC_ANALYZER_WARNING (CWE-416): [#def272]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miinitext.c: scope_hint: In function ‘InitExtensions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miinitext.c:256:16: warning[-Wanalyzer-use-after-free]: use after ‘reallocarray’ of ‘ext’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miinitext.c: scope_hint: In function ‘InitExtensions’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def273]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miinitext.c: scope_hint: In function ‘NewExtensionModuleList’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def274]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mioverlay.c:1733:10: warning[core.NullDereference]: Access to field 'firstChild' results in a dereference of a null pointer (loaded from variable 'parent')
# 1731|           prevSib->nextSib = pTree;
# 1732|   
# 1733|->     if (!parent->firstChild)
# 1734|           parent->firstChild = parent->lastChild = pTree;
# 1735|       else if (parent->lastChild == prevSib)

Error: CLANG_WARNING: [#def275]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:629:32: warning[core.NullDereference]: Dereference of null pointer
#  627|                       ptsOut->x = pAET->bres.minor;
#  628|                       ptsOut++->y = y;
#  629|->                     *width++ = pAET->nextWETE->bres.minor - pAET->bres.minor;
#  630|                       nPts++;
#  631|   

Error: CLANG_WARNING: [#def276]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:645:45: warning[core.NullDereference]: Access to field 'ymax' results in a dereference of a null pointer (loaded from variable 'pAET')
#  643|                       pWETE = pWETE->nextWETE;
#  644|                       while (pWETE != pAET)
#  645|->                         EVALUATEEDGEWINDING(pAET, pPrevAET, y, fixWAET);
#  646|                       pWETE = pWETE->nextWETE;
#  647|                   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def277]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:646:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pWETE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:137:28: note: in definition of macro ‘max’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:645:25: note: in expansion of macro ‘EVALUATEEDGEWINDING’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:645:25: note: in expansion of macro ‘EVALUATEEDGEWINDING’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:645:25: note: in expansion of macro ‘EVALUATEEDGEWINDING’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def278]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:61: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c: scope_hint: In function ‘miFillGeneralPoly’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.h:162:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pAET’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:593:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/window.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/windowstr.h:50: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:56: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:137:28: note: in definition of macro ‘max’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:592:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:592:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:592:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:592:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/mipoly.c:593:17: note: in expansion of macro ‘EVALUATEEDGEEVENODD’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def279]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/mi/miwideline.c:1401:8: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1399|       Bool left;
# 1400|   
# 1401|->     dx = -face->dy;
# 1402|       dy = face->dx;
# 1403|       xa = face->xa;

Error: CLANG_WARNING: [#def280]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/access.c:932:11: warning[deadcode.DeadStores]: Value stored to 'hostname' during its initialization is never read
#  930|       register HOST *host;
#  931|       char lhostname[120], ohostname[120];
#  932|->     char *hostname = ohostname;
#  933|       char fname[PATH_MAX + 1];
#  934|       int fnamelen;

Error: CLANG_WARNING: [#def281]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/access.c:1079:13: warning[deadcode.DeadStores]: Value stored to 'family' is never read
# 1077|               }
# 1078|   #endif                          /* TCPCONN || STREAMSCONN */
# 1079|->             family = FamilyWild;
# 1080|           }
# 1081|           fclose(fd);

Error: CLANG_WARNING: [#def282]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/access.c:1441:32: warning[core.NullDereference]: Access to field 'errorValue' results in a dereference of a null pointer (loaded from variable 'client')
# 1439|       case FamilyServerInterpreted:
# 1440|           if ((len = CheckAddr(family, pAddr, length)) < 0) {
# 1441|->             client->errorValue = length;
# 1442|               return BadValue;
# 1443|           }

Error: CLANG_WARNING: [#def283]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/access.c:1447:28: warning[core.NullDereference]: Access to field 'errorValue' results in a dereference of a null pointer (loaded from variable 'client')
# 1445|       case FamilyLocal:
# 1446|       default:
# 1447|->         client->errorValue = family;
# 1448|           return BadValue;
# 1449|       }

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

Error: CLANG_WARNING: [#def285]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/log.c:850:29: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value due to array index out of bounds
#  848|           buf[len - 1] = '\n';
#  849|   
#  850|->     newline = (buf[len - 1] == '\n');
#  851|       LogSWrite(verb, buf, len, newline);
#  852|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def286]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/osinit.c: scope_hint: In function ‘OsInit’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def287]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def288]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/ospoll.c: scope_hint: In function ‘ospoll_create’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def289]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/ospoll.c:421:9: warning[deadcode.DeadStores]: Value stored to 'pos' during its initialization is never read
#  419|   ospoll_remove(struct ospoll *ospoll, int fd)
#  420|   {
#  421|->     int pos = ospoll_find(ospoll, fd);
#  422|   
#  423|       pos = ospoll_find(ospoll, fd);

Error: GCC_ANALYZER_WARNING (CWE-762): [#def290]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/string.c: scope_hint: In function ‘xstrtokenize’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def291]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/utils.c: scope_hint: In function ‘set_font_authorizations’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def292]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/utils.c: scope_hint: In function ‘Fopen’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/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): [#def293]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/xdmcp.c: scope_hint: In function ‘get_mcast_options’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def294]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/xsha1.c: scope_hint: In function ‘x_sha1_init’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/xsha1.c:270:5: warning[-Wdeprecated-declarations]: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/xsha1.c:260: included_from: Included from here.
/usr/include/openssl/sha.h:49:27: note: declared here
#  268|       if (!ctx)
#  269|           return NULL;
#  270|->     ret = SHA1_Init(ctx);
#  271|       if (!ret) {
#  272|           free(ctx);

Error: COMPILER_WARNING (CWE-477): [#def295]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/xsha1.c: scope_hint: In function ‘x_sha1_update’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/xsha1.c:284:5: warning[-Wdeprecated-declarations]: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/sha.h:50:27: note: declared here
#  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): [#def296]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/xsha1.c: scope_hint: In function ‘x_sha1_final’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/xsha1.c:296:5: warning[-Wdeprecated-declarations]: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0
/usr/include/openssl/sha.h:51:27: note: declared here
#  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): [#def297]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/present/present_notify.c: scope_hint: In function ‘present_create_notifies’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def298]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/present/present_notify.c:95:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'notifies'
#   93|           added = i;
#   94|       }
#   95|->     return Success;
#   96|   
#   97|   bail:

Error: CLANG_WARNING: [#def299]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randr.c:587:9: warning[deadcode.DeadStores]: Value stored to 'primary' is never read
#  585|       }
#  586|       else {
#  587|->         primary = pScreen;
#  588|           primarysp = pScrPriv;
#  589|       }

Error: CLANG_WARNING: [#def300]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:195:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  193|        * Copy the new list of outputs into the crtc
#  194|        */
#  195|->     memcpy(crtc->outputs, outputs, numOutputs * sizeof(RROutputPtr));
#  196|       /*
#  197|        * Update remaining crtc fields

Error: CLANG_WARNING: [#def301]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:195:5: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  193|        * Copy the new list of outputs into the crtc
#  194|        */
#  195|->     memcpy(crtc->outputs, outputs, numOutputs * sizeof(RROutputPtr));
#  196|       /*
#  197|        * Update remaining crtc fields

Error: GCC_ANALYZER_WARNING (CWE-476): [#def302]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c: scope_hint: In function ‘RRCrtcSet’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:750:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outputs’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:24: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1307:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1310:5: note: in expansion of macro ‘VERIFY_RR_CRTC’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1387:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c: scope_hint: In function ‘RRCrtcSet’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1387:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr.h:433:52: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:746:5: note: in expansion of macro ‘rrScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c: scope_hint: In function ‘RRCrtcSet’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr.h:433:52: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def303]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:764:10: warning[-Wanalyzer-null-argument]: use of NULL ‘outputs’ where non-null expected
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1307:5: note: in expansion of macro ‘REQUEST_AT_LEAST_SIZE’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1310:5: note: in expansion of macro ‘VERIFY_RR_CRTC’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1387:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c: scope_hint: In function ‘RRCrtcSet’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1387:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr.h:433:52: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:746:5: note: in expansion of macro ‘rrScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c: scope_hint: In function ‘RRCrtcSet’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr.h:433:52: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:746:5: note: in expansion of macro ‘rrScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/os.h:56: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def304]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:764:10: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  762|           crtc->rotation == rotation &&
#  763|           crtc->numOutputs == numOutputs &&
#  764|->         !memcmp(crtc->outputs, outputs, numOutputs * sizeof(RROutputPtr)) &&
#  765|           !RRCrtcPendingProperties(crtc) && !RRCrtcPendingTransform(crtc) &&
#  766|           !crtcChanged) {

Error: CLANG_WARNING: [#def305]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1246:24: warning[core.NullDereference]: Array access (from variable 'outputs') results in a null pointer dereference
# 1244|   
# 1245|           for (i = 0; i < crtc->numOutputs; i++) {
# 1246|->             outputs[i] = crtc->outputs[i]->id;
# 1247|               if (client->swapped)
# 1248|                   swapl(&outputs[i]);

Error: CLANG_WARNING: [#def306]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1255:37: warning[core.NullDereference]: Array access (from variable 'possible') results in a null pointer dereference
# 1253|                   for (j = 0; j < pScrPriv->outputs[i]->numCrtcs; j++)
# 1254|                       if (pScrPriv->outputs[i]->crtcs[j] == crtc) {
# 1255|->                         possible[k] = pScrPriv->outputs[i]->id;
# 1256|                           if (client->swapped)
# 1257|                               swapl(&possible[k]);

Error: CLANG_WARNING: [#def307]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1392:9: warning[deadcode.DeadStores]: Value stored to 'time' is never read
# 1390|   
# 1391|       if (!pScrPriv) {
# 1392|->         time = currentTime;
# 1393|           status = RRSetConfigFailed;
# 1394|           goto sendReply;

Error: CLANG_WARNING: [#def308]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1600:9: warning[deadcode.DeadStores]: Value stored to 'time' is never read
# 1598|   
# 1599|       if (!pScrPriv) {
# 1600|->         time = currentTime;
# 1601|           status = RRSetConfigFailed;
# 1602|           goto sendReply;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def309]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1714:9: warning[-Wanalyzer-null-argument]: use of NULL ‘extra’ where non-null expected
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1686:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1687:5: note: in expansion of macro ‘VERIFY_RR_CRTC’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def310]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrcrtc.c:1876:5: warning[deadcode.DeadStores]: Value stored to 'extra' is never read
# 1874|   
# 1875|       transform_encode(client, &reply->currentTransform, &current->transform);
# 1876|->     extra += transform_filter_encode(client, extra,
# 1877|                                        &reply->currentNbytesFilter,
# 1878|                                        &reply->currentNparamsFilter, current);

Error: CLANG_WARNING: [#def311]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrmonitor.c:170:19: warning[unix.Malloc]: Use of memory allocated with size zero
#  168|   RRMonitorSetFromClient(RRMonitorPtr client_monitor, RRMonitorPtr monitor)
#  169|   {
#  170|->     monitor->name = client_monitor->name;
#  171|       monitor->pScreen = client_monitor->pScreen;
#  172|       monitor->numOutputs = client_monitor->numOutputs;

Error: CLANG_WARNING: [#def312]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:153:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  151|           newClones = NULL;
#  152|       free(output->clones);
#  153|->     memcpy(newClones, clones, numClones * sizeof(RROutputPtr));
#  154|       output->clones = newClones;
#  155|       output->numClones = numClones;

Error: CLANG_WARNING: [#def313]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:190:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  188|           free(output->modes);
#  189|       }
#  190|->     memcpy(newModes, modes, numModes * sizeof(RRModePtr));
#  191|       output->modes = newModes;
#  192|       output->numModes = numModes;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def314]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c: scope_hint: In function ‘RROutputSetCrtcs’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def315]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:285:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  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): [#def316]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:540:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:466:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:467:5: note: in expansion of macro ‘VERIFY_RR_OUTPUT’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:467:5: note: in expansion of macro ‘VERIFY_RR_OUTPUT’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:472:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c: scope_hint: In function ‘ProcRRGetOutputInfo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def317]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:540:22: warning[core.NullDereference]: Array access (from variable 'crtcs') results in a null pointer dereference
#  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: CLANG_WARNING: [#def318]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:546:26: warning[core.NullDereference]: Array access (from variable 'modes') results in a null pointer dereference
#  544|           for (i = 0; i < output->numModes + output->numUserModes; i++) {
#  545|               if (i < output->numModes)
#  546|->                 modes[i] = output->modes[i]->mode.id;
#  547|               else
#  548|                   modes[i] = output->userModes[i - output->numModes]->mode.id;

Error: CLANG_WARNING: [#def319]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:548:26: warning[core.NullDereference]: Array access (from variable 'modes') results in a null pointer dereference
#  546|                   modes[i] = output->modes[i]->mode.id;
#  547|               else
#  548|->                 modes[i] = output->userModes[i - output->numModes]->mode.id;
#  549|               if (client->swapped)
#  550|                   swapl(&modes[i]);

Error: CLANG_WARNING: [#def320]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:553:23: warning[core.NullDereference]: Array access (from variable 'clones') results in a null pointer dereference
#  551|           }
#  552|           for (i = 0; i < output->numClones; i++) {
#  553|->             clones[i] = output->clones[i]->id;
#  554|               if (client->swapped)
#  555|                   swapl(&clones[i]);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def321]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:558:5: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:466:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:467:5: note: in expansion of macro ‘VERIFY_RR_OUTPUT’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:467:5: note: in expansion of macro ‘VERIFY_RR_OUTPUT’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:472:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c: scope_hint: In function ‘ProcRRGetOutputInfo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def322]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rroutput.c:558:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  556|           }
#  557|       }
#  558|->     memcpy(name, output->name, output->nameLength);
#  559|       if (client->swapped) {
#  560|           swaps(&rep.sequenceNumber);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def323]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrproperty.c: scope_hint: In function ‘RRConfigureOutputProperty’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr.h:38: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrproperty.c:23: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def324]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrprovider.c:113:9: warning[core.NullDereference]: Array access (from variable 'providers') results in a null pointer dereference
#  111|   
#  112|           providers = (RRProvider *)extra;
#  113|->         ADD_PROVIDER(pScreen);
#  114|           xorg_list_for_each_entry(iter, &pScreen->secondary_list, secondary_head) {
#  115|               ADD_PROVIDER(iter);

Error: CLANG_WARNING: [#def325]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrprovider.c:115:13: warning[core.NullDereference]: Array access (from variable 'providers') results in a null pointer dereference
#  113|           ADD_PROVIDER(pScreen);
#  114|           xorg_list_for_each_entry(iter, &pScreen->secondary_list, secondary_head) {
#  115|->             ADD_PROVIDER(iter);
#  116|           }
#  117|       }

Error: CLANG_WARNING: [#def326]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrprovider.c:201:18: warning[core.NullDereference]: Array access (from variable 'crtcs') results in a null pointer dereference
#  199|   
#  200|       for (i = 0; i < pScrPriv->numCrtcs; i++) {
#  201|->         crtcs[i] = pScrPriv->crtcs[i]->id;
#  202|           if (client->swapped)
#  203|               swapl(&crtcs[i]);

Error: CLANG_WARNING: [#def327]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrprovider.c:207:20: warning[core.NullDereference]: Array access (from variable 'outputs') results in a null pointer dereference
#  205|   
#  206|       for (i = 0; i < pScrPriv->numOutputs; i++) {
#  207|->         outputs[i] = pScrPriv->outputs[i]->id;
#  208|           if (client->swapped)
#  209|               swapl(&outputs[i]);

Error: CLANG_WARNING: [#def328]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrprovider.c:214:22: warning[core.NullDereference]: Array access (from variable 'providers') results in a null pointer dereference
#  212|       i = 0;
#  213|       if (provider->offload_sink) {
#  214|->         providers[i] = provider->offload_sink->id;
#  215|           if (client->swapped)
#  216|               swapl(&providers[i]);

Error: CLANG_WARNING: [#def329]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrprovider.c:223:22: warning[core.NullDereference]: Array access (from variable 'providers') results in a null pointer dereference
#  221|       }
#  222|       if (provider->output_source) {
#  223|->         providers[i] = provider->output_source->id;
#  224|           if (client->swapped)
#  225|               swapl(&providers[i]);

Error: CLANG_WARNING: [#def330]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrprovider.c:234:22: warning[core.NullDereference]: Array access (from variable 'providers') results in a null pointer dereference
#  232|               continue;
#  233|           pScrProvPriv = rrGetScrPriv(provscreen);
#  234|->         providers[i] = pScrProvPriv->provider->id;
#  235|           if (client->swapped)
#  236|               swapl(&providers[i]);

Error: CLANG_WARNING: [#def331]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrprovider.c:247:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  245|       }
#  246|   
#  247|->     memcpy(name, provider->name, rep.nameLength);
#  248|       if (client->swapped) {
#  249|                 swaps(&rep.sequenceNumber);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def332]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrproviderproperty.c: scope_hint: In function ‘RRConfigureProviderProperty’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr.h:38: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrproviderproperty.c:23: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def333]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrproviderproperty.c: scope_hint: In function ‘ProcRRListProviderProperties’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrproviderproperty.c:419:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘temppAtoms’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrproviderproperty.c:396:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrproviderproperty.c:398:5: note: in expansion of macro ‘VERIFY_RR_PROVIDER’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def334]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:449:18: warning[core.NullDereference]: Array access (from variable 'crtcs') results in a null pointer dereference
#  447|           has_primary = 1;
#  448|           primary_crtc = pScrPriv->primaryOutput->crtc;
#  449|->         crtcs[0] = pScrPriv->primaryOutput->crtc->id;
#  450|           if (client->swapped)
#  451|               swapl(&crtcs[0]);

Error: CLANG_WARNING: [#def335]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:454:5: warning[core.NullDereference]: Array access (from variable 'crtcs') results in a null pointer dereference
#  452|           crtc_count = 1;
#  453|       }
#  454|->     update_arrays(pScreen, pScrPriv, primary_crtc, has_primary);
#  455|   
#  456|       xorg_list_for_each_entry(iter, &pScreen->secondary_list, secondary_head) {

Error: CLANG_WARNING: [#def336]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:454:5: warning[core.NullDereference]: Array access (from variable 'modeinfos') results in a null pointer dereference
#  452|           crtc_count = 1;
#  453|       }
#  454|->     update_arrays(pScreen, pScrPriv, primary_crtc, has_primary);
#  455|   
#  456|       xorg_list_for_each_entry(iter, &pScreen->secondary_list, secondary_head) {

Error: CLANG_WARNING: [#def337]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:454:5: warning[core.NullDereference]: Array access (from variable 'outputs') results in a null pointer dereference
#  452|           crtc_count = 1;
#  453|       }
#  454|->     update_arrays(pScreen, pScrPriv, primary_crtc, has_primary);
#  455|   
#  456|       xorg_list_for_each_entry(iter, &pScreen->secondary_list, secondary_head) {

Error: CLANG_WARNING: [#def338]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:462:9: warning[core.NullDereference]: Array access (from variable 'crtcs') results in a null pointer dereference
#  460|           pScrPriv = rrGetScrPriv(iter);
#  461|   
#  462|->         update_arrays(iter, pScrPriv, primary_crtc, has_primary);
#  463|       }
#  464|   

Error: CLANG_WARNING: [#def339]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:462:9: warning[core.NullDereference]: Array access (from variable 'modeinfos') results in a null pointer dereference
#  460|           pScrPriv = rrGetScrPriv(iter);
#  461|   
#  462|->         update_arrays(iter, pScrPriv, primary_crtc, has_primary);
#  463|       }
#  464|   

Error: CLANG_WARNING: [#def340]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:462:9: warning[core.NullDereference]: Array access (from variable 'outputs') results in a null pointer dereference
#  460|           pScrPriv = rrGetScrPriv(iter);
#  461|   
#  462|->         update_arrays(iter, pScrPriv, primary_crtc, has_primary);
#  463|       }
#  464|   

Error: CLANG_WARNING: [#def341]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:577:22: warning[core.NullDereference]: Array access (from variable 'crtcs') results in a null pointer dereference
#  575|           if (pScrPriv->primaryOutput && pScrPriv->primaryOutput->crtc) {
#  576|               has_primary = 1;
#  577|->             crtcs[0] = pScrPriv->primaryOutput->crtc->id;
#  578|               if (client->swapped)
#  579|                   swapl(&crtcs[0]);

Error: CLANG_WARNING: [#def342]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:588:36: warning[core.NullDereference]: Array access (from variable 'crtcs') results in a null pointer dereference
#  586|                   continue;
#  587|               }
#  588|->             crtcs[i + has_primary] = pScrPriv->crtcs[i]->id;
#  589|               if (client->swapped)
#  590|                   swapl(&crtcs[i + has_primary]);

Error: CLANG_WARNING: [#def343]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:594:24: warning[core.NullDereference]: Array access (from variable 'outputs') results in a null pointer dereference
#  592|   
#  593|           for (i = 0; i < pScrPriv->numOutputs; i++) {
#  594|->             outputs[i] = pScrPriv->outputs[i]->id;
#  595|               if (client->swapped)
#  596|                   swapl(&outputs[i]);

Error: CLANG_WARNING: [#def344]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:602:26: warning[core.NullDereference]: Array access (from variable 'modeinfos') results in a null pointer dereference
#  600|               RRModePtr mode = modes[i];
#  601|   
#  602|->             modeinfos[i] = mode->mode;
#  603|               if (client->swapped) {
#  604|                   swapl(&modeinfos[i].id);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def345]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c: scope_hint: In function ‘ProcRRGetScreenInfo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:848:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘size’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/randrstr_priv.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:23: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:767:5: note: in expansion of macro ‘REQUEST_SIZE_MATCH’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:773:16: note: in expansion of macro ‘rrGetScrPriv’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/dix.h:54: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c: scope_hint: In function ‘ProcRRGetScreenInfo’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def346]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:848:33: warning[core.NullDereference]: Access to field 'widthInPixels' results in a dereference of a null pointer (loaded from variable 'size')
#  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: CLANG_WARNING: [#def347]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:946:9: warning[deadcode.DeadStores]: Value stored to 'time' is never read
#  944|   
#  945|       if (!pScrPriv) {
#  946|->         time = currentTime;
#  947|           status = RRSetConfigFailed;
#  948|           goto sendReply;

Error: CLANG_WARNING: [#def348]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/randr/rrscreen.c:955:9: warning[deadcode.DeadStores]: Value stored to 'time' is never read
#  953|       output = RRFirstOutput(pScreen);
#  954|       if (!output) {
#  955|->         time = currentTime;
#  956|           status = RRSetConfigFailed;
#  957|           goto sendReply;

Error: CLANG_WARNING: [#def349]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/record/record.c:890:25: warning[core.NullDereference]: Access to field 'requestVector' results in a dereference of a null pointer (loaded from variable 'pClient')
#  888|   
#  889|                       for (j = interval.first; j <= interval.last; j++)
#  890|->                         pClient->requestVector[j] = RecordARequest;
#  891|                   }
#  892|               }

Error: CLANG_WARNING: [#def350]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/record/record.c:2215:43: warning[core.NullDereference]: Dereference of null pointer
# 2213|               if (pri->nRanges == 0)
# 2214|                   RecordAllocRanges(pri, 1);
# 2215|->             pri->pRanges[0].clientStarted = pRCAP->clientStarted;
# 2216|               pri->pRanges[0].clientDied = pRCAP->clientDied;
# 2217|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def351]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/record/set.c: scope_hint: In function ‘IntervalListCreateSet’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def352]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/record/set.c:366:5: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  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): [#def353]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/filter.c: scope_hint: In function ‘SetPicturePictFilter’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/filter.c:348:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_params’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/filter.c:27: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/filter.c:339:30: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def354]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/glyph.c:130:21: warning[core.DivideZero]: Division by zero
#  128|   
#  129|       table = hash->table;
#  130|->     elt = signature % tableSize;
#  131|       step = 0;
#  132|       del = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def355]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/glyph.c: scope_hint: In function ‘AllocateGlyphHash’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/glyph.c:388:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hashSet’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def356]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/miindex.c:99:12: warning[deadcode.DeadStores]: Although the value stored to 'gray' is used in the enclosing expression, the value is never actually read from 'gray'
#   97|        * Compute size of cube and gray ramps
#   98|        */
#   99|->     cube = gray = 0;
#  100|       switch (policy) {
#  101|       case PictureCmapPolicyAll:

Error: CLANG_WARNING: [#def357]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/miindex.c:157:59: warning[core.DivideZero]: Division by zero
#  155|       for (g = 0; g < gray; g++) {
#  156|           pixel = 0;
#  157|->         red = green = blue = (g * 65535 + (gray - 1) / 2) / (gray - 1);
#  158|           if (AllocColor(pColormap, &red, &green, &blue, &pixel, 0) != Success)
#  159|               return FALSE;

Error: CLANG_WARNING: [#def358]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/picture.c:260:9: warning[deadcode.DeadStores]: Value stored to 'format' is never read
#  258|           pDepth = &pScreen->allowedDepths[d];
#  259|           bpp = BitsPerPixel(pDepth->depth);
#  260|->         format = 0;
#  261|           switch (bpp) {
#  262|           case 16:

Error: CLANG_WARNING: [#def359]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/picture.c:1012:24: warning[core.NullDereference]: Access to field 'myNum' results in a dereference of a null pointer (loaded from variable 'screen')
# 1010|           if (err != Success)
# 1011|               return err;
# 1012|->         id = res->info[screen->myNum].id;
# 1013|       }
# 1014|   #endif

Error: CLANG_WARNING: [#def360]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/render.c:1021:5: warning[deadcode.DeadStores]: Value stored to 'err' is never read
# 1019|       }
# 1020|   
# 1021|->     err = BadAlloc;
# 1022|       nglyphs = stuff->nglyphs;
# 1023|       if (nglyphs > UINT32_MAX / sizeof(GlyphNewRec))

Error: CLANG_WARNING: [#def361]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/render.c:1626:26: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>>' is a garbage value
# 1624|       cm.yhot = stuff->y;
# 1625|       rc = AllocARGBCursor(srcbits, mskbits, argbbits, &cm,
# 1626|->                          GetColor(twocolor[0], 16),
# 1627|                            GetColor(twocolor[0], 8),
# 1628|                            GetColor(twocolor[0], 0),

Error: CLANG_WARNING: [#def362]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/render.c:1629:26: warning[core.UndefinedBinaryOperatorResult]: The left operand of '>>' is a garbage value
# 1627|                            GetColor(twocolor[0], 8),
# 1628|                            GetColor(twocolor[0], 0),
# 1629|->                          GetColor(twocolor[1], 16),
# 1630|                            GetColor(twocolor[1], 8),
# 1631|                            GetColor(twocolor[1], 0),

Error: CLANG_WARNING: [#def363]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/render/render.c:3259:20: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3257|   
# 3258|       FOR_NSCREENS_BACKWARD(j) {
# 3259|->         stuff->pid = newPict->info[j].id;
# 3260|           result =
# 3261|               (*PanoramiXSaveRenderVector[X_RenderCreateConicalGradient])

Error: COMPILER_WARNING (CWE-252): [#def364]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/test/bigreq/request-length.c: scope_hint: In function ‘main’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def365]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/test/damage/primitives.c: scope_hint: In function ‘compute_expected_damage’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/test/damage/primitives.c:68:48: warning[-Wanalyzer-malloc-leak]: leak of ‘get_image(setup, *setup.d)’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/test/damage/primitives.c:37: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def366]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/test/damage/primitives.c: scope_hint: In function ‘get_image’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def367]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def368]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CPPCHECK_WARNING: [#def369]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/test/simple-xinit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-252): [#def370]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/test/simple-xinit.c: scope_hint: In function ‘handle_sigchld’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CPPCHECK_WARNING: [#def371]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/test/sync/sync.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/XKBAlloc.c: scope_hint: In function ‘SrvXkbAllocNames’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def373]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/XKBGAlloc.c: scope_hint: In function ‘SrvXkbAddGeomProperty’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: [#def374]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/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: [#def375]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/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: [#def376]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/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: [#def377]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/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: [#def378]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/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: [#def379]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/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): [#def380]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/ddxLoad.c: scope_hint: In function ‘XkbDDXLoadKeymapByNames’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def381]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/maprules.c: scope_hint: In function ‘InputLineAddChar’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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.0-build/xwayland-24.1.0/xkb/maprules.c:140:21: note: in expansion of macro ‘ADD_CHAR’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/maprules.c:140:21: note: in expansion of macro ‘ADD_CHAR’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/maprules.c:140:21: note: in expansion of macro ‘ADD_CHAR’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/maprules.c:140:21: note: in expansion of macro ‘ADD_CHAR’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/misc.h:119: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/maprules.c:45: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/maprules.c:91:26: note: in expansion of macro ‘xallocarray’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def382]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/maprules.c:166:25: warning[deadcode.DeadStores]: Value stored to 'inComment' is never read
#  164|                           DebugF("Line containing '!' ignored\n");
#  165|                           line->num_line = 0;
#  166|->                         inComment = 0;
#  167|                           break;
#  168|                       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def383]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbActions.c: scope_hint: In function ‘_XkbFilterLatchState’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbActions.c:239:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pAction’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbActions.c:40: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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): [#def384]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbActions.c: scope_hint: In function ‘_XkbNextFreeFilter’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbActions.c:1146:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*((struct _XkbSrvInfo *)xkbi).filters’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def385]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:542:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'rmlvo_dflts.layout'
#  540|       dev->key = calloc(1, sizeof(*dev->key));
#  541|       if (!dev->key) {
#  542|->         ErrorF("XKB: Failed to allocate key class\n");
#  543|           return FALSE;
#  544|       }

Error: CLANG_WARNING: [#def386]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:542:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'rmlvo_dflts.model'
#  540|       dev->key = calloc(1, sizeof(*dev->key));
#  541|       if (!dev->key) {
#  542|->         ErrorF("XKB: Failed to allocate key class\n");
#  543|           return FALSE;
#  544|       }

Error: CLANG_WARNING: [#def387]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:542:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'rmlvo_dflts.options'
#  540|       dev->key = calloc(1, sizeof(*dev->key));
#  541|       if (!dev->key) {
#  542|->         ErrorF("XKB: Failed to allocate key class\n");
#  543|           return FALSE;
#  544|       }

Error: CLANG_WARNING: [#def388]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:542:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'rmlvo_dflts.rules'
#  540|       dev->key = calloc(1, sizeof(*dev->key));
#  541|       if (!dev->key) {
#  542|->         ErrorF("XKB: Failed to allocate key class\n");
#  543|           return FALSE;
#  544|       }

Error: CLANG_WARNING: [#def389]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbInit.c:542:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'rmlvo_dflts.variant'
#  540|       dev->key = calloc(1, sizeof(*dev->key));
#  541|       if (!dev->key) {
#  542|->         ErrorF("XKB: Failed to allocate key class\n");
#  543|           return FALSE;
#  544|       }

Error: CLANG_WARNING: [#def390]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbLEDs.c:390:9: warning[deadcode.DeadStores]: Value stored to 'affect' is never read
#  388|       if (side_affected) {
#  389|           XkbUpdateLedAutoState(dev, sli, side_affected, &ed, &changes, cause);
#  390|->         affect |= side_affected;
#  391|       }
#  392|       if (changes.state_changes || changes.ctrls.enabled_ctrls_changes)

Error: CLANG_WARNING: [#def391]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbLEDs.c:506:11: warning[core.NullDereference]: Access to field 'desc' results in a dereference of a null pointer (loaded from field 'xkbInfo')
#  504|       sli->mapsPresent &= ~which;
#  505|   
#  506|->     xkb = dev->key->xkbInfo->desc;
#  507|       for (i = 0, bit = 1, map = sli->maps; i < XkbNumIndicators;
#  508|            i++, bit <<= 1, map++) {

Error: CLANG_WARNING: [#def392]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbLEDs.c:506:11: warning[core.NullDereference]: Access to field 'xkbInfo' results in a dereference of a null pointer (loaded from field 'key')
#  504|       sli->mapsPresent &= ~which;
#  505|   
#  506|->     xkb = dev->key->xkbInfo->desc;
#  507|       for (i = 0, bit = 1, map = sli->maps; i < XkbNumIndicators;
#  508|            i++, bit <<= 1, map++) {

Error: CLANG_WARNING: [#def393]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbLEDs.c:649:17: warning[core.NullDereference]: Array access (via field 'names') results in a null pointer dereference
#  647|           sli->namesPresent = 0;
#  648|           for (i = 0, bit = 1; i < XkbNumIndicators; i++, bit <<= 1) {
#  649|->             if (sli->names[i] != None)
#  650|                   sli->namesPresent |= bit;
#  651|           }

Error: CLANG_WARNING: [#def394]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c:75:9: warning[deadcode.DeadStores]: Value stored to 'rc' during its initialization is never read
#   73|                       Mask access_mode, int *xkb_err)
#   74|   {
#   75|->     int rc = XkbKeyboardErrorCode;
#   76|   
#   77|       if (id == XkbUseCoreKbd)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def395]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c: scope_hint: In function ‘_XkbCopyClientMap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def396]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c:953:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  951|   
#  952|               }
#  953|->             memcpy(dst->map->syms, src->map->syms,
#  954|                      src->map->size_syms * sizeof(KeySym));
#  955|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def397]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def398]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c:971:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  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): [#def399]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def400]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c:1147:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 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): [#def401]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c: scope_hint: In function ‘_XkbCopyServerMap’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def402]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c:1183:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 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): [#def403]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def404]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c:1199:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 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): [#def405]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def406]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c:1217:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 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): [#def407]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def408]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c:1233:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 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): [#def409]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def410]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c:1251:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 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): [#def411]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c: scope_hint: In function ‘_XkbCopyNames’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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: CLANG_WARNING: [#def412]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c:1288:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1286|                   dst->names->keys = tmp;
# 1287|               }
# 1288|->             memcpy(dst->names->keys, src->names->keys,
# 1289|                      (src->max_key_code + 1) * sizeof(XkbKeyNameRec));
# 1290|           }

Error: CLANG_WARNING: [#def413]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbUtils.c:2110:10: warning[deadcode.DeadStores]: Value stored to 'nG' is never read
# 2108|       *dst->ctrls = *src->ctrls;
# 2109|   
# 2110|->     for (nG = nTG = 0, i = dst->min_key_code; i <= dst->max_key_code; i++) {
# 2111|           nG = XkbKeyNumGroups(dst, i);
# 2112|           if (nG >= XkbNumKbdGroups) {

Error: CLANG_WARNING: [#def414]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbfmisc.c:290:13: warning[deadcode.DeadStores]: Value stored to 'wantNames' is never read
#  288|               names->geometry = Xstrdup(tmp);
#  289|               complete |= XkmGeometryMask;
#  290|->             wantNames &= ~XkmGeometryMask;
#  291|           }
#  292|       }

Error: CLANG_WARNING: [#def415]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkbout.c:749:31: warning[core.NullDereference]: Access to field 'top' results in a dereference of a null pointer (loaded from variable 'row')
#  747|           fprintf(file, "        row {\n");
#  748|           fprintf(file, "            top=  %s;\n",
#  749|->                 XkbGeomFPText(row->top, XkbXKBFile));
#  750|           fprintf(file, "            left= %s;\n",
#  751|                   XkbGeomFPText(row->left, XkbXKBFile));

Error: GCC_ANALYZER_WARNING (CWE-823): [#def416]
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/xkb/xkmread.c: scope_hint: In function ‘XkmGetCountedString’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/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-clang18.1.7
analyzer-version-cppcheck2.14.2
analyzer-version-gcc14.1.1
analyzer-version-gcc-analyzer14.1.1
analyzer-version-shellcheck0.10.0
enabled-pluginsclang, cppcheck, gcc, shellcheck
exit-code0
hostip-172-16-1-140.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namexorg-x11-server-Xwayland-24.1.0-2.fc41
store-results-to/tmp/tmptp9mmjza/xorg-x11-server-Xwayland-24.1.0-2.fc41.tar.xz
time-created2024-07-03 19:44:42
time-finished2024-07-03 19:49:46
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmptp9mmjza/xorg-x11-server-Xwayland-24.1.0-2.fc41.tar.xz' '--gcc-analyze' '/tmp/tmptp9mmjza/xorg-x11-server-Xwayland-24.1.0-2.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9