xorg-x11-server-1.20.14-36.fc41

List of Defects

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def3]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c: scope_hint: In function 'PanoramiXMaybeAddDepth'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:752:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'PanoramiXDepths'
#  750|       PanoramiXDepths = reallocarray(PanoramiXDepths,
#  751|                                      PanoramiXNumDepths, sizeof(DepthRec));
#  752|->     PanoramiXDepths[j].depth = pDepth->depth;
#  753|       PanoramiXDepths[j].numVids = 0;
#  754|       PanoramiXDepths[j].vids = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c: scope_hint: In function ‘PanoramiXMaybeAddDepth’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:752:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘PanoramiXDepths’
#  750|       PanoramiXDepths = reallocarray(PanoramiXDepths,
#  751|                                      PanoramiXNumDepths, sizeof(DepthRec));
#  752|->     PanoramiXDepths[j].depth = pDepth->depth;
#  753|       PanoramiXDepths[j].numVids = 0;
#  754|       PanoramiXDepths[j].vids = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c: scope_hint: In function 'PanoramiXConsolidate'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:824:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'root'
#  822|   
#  823|       root = malloc(sizeof(PanoramiXRes));
#  824|->     root->type = XRT_WINDOW;
#  825|       defmap = malloc(sizeof(PanoramiXRes));
#  826|       defmap->type = XRT_COLORMAP;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c: scope_hint: In function ‘PanoramiXConsolidate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:824:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘root’
#  822|   
#  823|       root = malloc(sizeof(PanoramiXRes));
#  824|->     root->type = XRT_WINDOW;
#  825|       defmap = malloc(sizeof(PanoramiXRes));
#  826|       defmap->type = XRT_COLORMAP;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:826:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'defmap'
#  824|       root->type = XRT_WINDOW;
#  825|       defmap = malloc(sizeof(PanoramiXRes));
#  826|->     defmap->type = XRT_COLORMAP;
#  827|       saver = malloc(sizeof(PanoramiXRes));
#  828|       saver->type = XRT_WINDOW;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def8]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:826:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘defmap’
#  824|       root->type = XRT_WINDOW;
#  825|       defmap = malloc(sizeof(PanoramiXRes));
#  826|->     defmap->type = XRT_COLORMAP;
#  827|       saver = malloc(sizeof(PanoramiXRes));
#  828|       saver->type = XRT_WINDOW;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:828:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'saver'
#  826|       defmap->type = XRT_COLORMAP;
#  827|       saver = malloc(sizeof(PanoramiXRes));
#  828|->     saver->type = XRT_WINDOW;
#  829|   
#  830|       FOR_NSCREENS(i) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:828:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘saver’
#  826|       defmap->type = XRT_COLORMAP;
#  827|       saver = malloc(sizeof(PanoramiXRes));
#  828|->     saver->type = XRT_WINDOW;
#  829|   
#  830|       FOR_NSCREENS(i) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def11]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:842:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*root.info[0].id'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:49: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro 'FOR_NSCREENS_FORWARD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:830:5: note: in expansion of macro 'FOR_NSCREENS'
#  840|       }
#  841|   
#  842|->     AddResource(root->info[0].id, XRT_WINDOW, root);
#  843|       AddResource(saver->info[0].id, XRT_WINDOW, saver);
#  844|       AddResource(defmap->info[0].id, XRT_COLORMAP, defmap);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def12]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:842:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*root.info[0].id’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:49: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:830:5: note: in expansion of macro ‘FOR_NSCREENS’
#  840|       }
#  841|   
#  842|->     AddResource(root->info[0].id, XRT_WINDOW, root);
#  843|       AddResource(saver->info[0].id, XRT_WINDOW, saver);
#  844|       AddResource(defmap->info[0].id, XRT_COLORMAP, defmap);

Error: CLANG_WARNING: [#def13]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:842:5: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
#  840|       }
#  841|   
#  842|->     AddResource(root->info[0].id, XRT_WINDOW, root);
#  843|       AddResource(saver->info[0].id, XRT_WINDOW, saver);
#  844|       AddResource(defmap->info[0].id, XRT_COLORMAP, defmap);

Error: CLANG_WARNING: [#def14]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1130:17: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'src')
# 1128|   
# 1129|       while (bytes--) {
# 1130|->         *dst |= SHIFT_L(*src, shiftL);
# 1131|           *(dst + 1) |= SHIFT_R(*src, shiftR);
# 1132|           dst++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c: scope_hint: In function 'CopyBits'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1130:25: warning[-Wanalyzer-null-dereference]: dereference of NULL 'src'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1116:23: note: in definition of macro 'SHIFT_L'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro 'FOR_NSCREENS_FORWARD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1174:5: note: in expansion of macro 'FOR_NSCREENS'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro 'FOR_NSCREENS_FORWARD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1174:5: note: in expansion of macro 'FOR_NSCREENS'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/region.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/window.h:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:52: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:39: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c: scope_hint: In function 'CopyBits'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1116:23: note: in definition of macro 'SHIFT_L'
# 1128|   
# 1129|       while (bytes--) {
# 1130|->         *dst |= SHIFT_L(*src, shiftL);
# 1131|           *(dst + 1) |= SHIFT_R(*src, shiftR);
# 1132|           dst++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c: scope_hint: In function ‘CopyBits’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1130:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1116:23: note: in definition of macro ‘SHIFT_L’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1174:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1174:5: note: in expansion of macro ‘FOR_NSCREENS’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/region.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/window.h:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:52: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:39: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c: scope_hint: In function ‘CopyBits’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1116:23: note: in definition of macro ‘SHIFT_L’
# 1128|   
# 1129|       while (bytes--) {
# 1130|->         *dst |= SHIFT_L(*src, shiftL);
# 1131|           *(dst + 1) |= SHIFT_R(*src, shiftR);
# 1132|           dst++;

Error: CLANG_WARNING: [#def17]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1250:43: warning[core.NullDereference]: Array access (from variable 'ScratchMem') results in a null pointer dereference
# 1248|   
# 1249|                           for (j = h, k = w; j--; k += ScratchPitch)
# 1250|->                             ScratchMem[k] &= mask;
# 1251|                       }
# 1252|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def18]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c: scope_hint: In function 'XineramaGetImageData'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1257:33: warning[-Wanalyzer-null-argument]: use of NULL 'ScratchMem' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro 'FOR_NSCREENS_FORWARD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1174:5: note: in expansion of macro 'FOR_NSCREENS'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro 'FOR_NSCREENS_FORWARD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1174:5: note: in expansion of macro 'FOR_NSCREENS'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c: scope_hint: In function 'XineramaGetImageData'
<built-in>: note: argument 2 of '__builtin_memcpy' must be non-null
# 1255|                           if (w) {
# 1256|                               if (!shift)
# 1257|->                                 memcpy(data + index, ScratchMem + index2, w);
# 1258|                               else
# 1259|                                   CopyBits(data + index, shift,

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

Error: CLANG_WARNING: [#def20]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1257:33: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 1255|                           if (w) {
# 1256|                               if (!shift)
# 1257|->                                 memcpy(data + index, ScratchMem + index2, w);
# 1258|                               else
# 1259|                                   CopyBits(data + index, shift,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def21]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1280:25: warning[-Wanalyzer-null-argument]: use of NULL 'ScratchMem' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro 'FOR_NSCREENS_FORWARD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1174:5: note: in expansion of macro 'FOR_NSCREENS'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c: scope_hint: In function 'XineramaGetImageData'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1274:25: note: in expansion of macro 'BitsPerPixel'
<built-in>: note: argument 2 of '__builtin_memcpy' must be non-null
# 1278|   
# 1279|                       for (j = 0; j < h; j++) {
# 1280|->                         memcpy(data + (pitch * (y + j)) + x,
# 1281|                                  ScratchMem + (ScratchPitch * j), w);
# 1282|                       }

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

Error: CLANG_WARNING: [#def23]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.c:1280:25: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 1278|   
# 1279|                       for (j = 0; j < h; j++) {
# 1280|->                         memcpy(data + (pitch * (y + j)) + x,
# 1281|                                  ScratchMem + (ScratchPitch * j), w);
# 1282|                       }

Error: CLANG_WARNING: [#def24]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def25]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def26]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c: scope_hint: In function 'PanoramiXCopyArea'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1137:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'pGC'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h:150: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:35: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1061:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:45: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1068:17: note: in expansion of macro 'IS_SHARED_PIXMAP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1075:17: note: in expansion of macro 'IS_SHARED_PIXMAP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def27]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def28]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def29]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c: scope_hint: In function 'PanoramiXPolyPoint'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1399:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'origPts' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1380:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1387:9: note: in expansion of macro 'IS_SHARED_PIXMAP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/window.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1398:19: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def30]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c: scope_hint: In function 'PanoramiXPolyLine'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1464:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'origPts' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1445:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1452:9: note: in expansion of macro 'IS_SHARED_PIXMAP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1460:14: note: in expansion of macro 'IS_ROOT_DRAWABLE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1463:19: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def31]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c: scope_hint: In function 'PanoramiXPolySegment'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1533:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'origSegs' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1510:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1517:9: note: in expansion of macro 'IS_SHARED_PIXMAP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1525:14: note: in expansion of macro 'IS_ROOT_DRAWABLE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1532:20: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def32]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c: scope_hint: In function 'PanoramiXPolyRectangle'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1601:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'origRecs' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1578:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1585:9: note: in expansion of macro 'IS_SHARED_PIXMAP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1593:14: note: in expansion of macro 'IS_ROOT_DRAWABLE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1600:20: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def33]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c: scope_hint: In function 'PanoramiXPolyArc'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1668:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'origArcs' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1645:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1652:9: note: in expansion of macro 'IS_SHARED_PIXMAP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1660:14: note: in expansion of macro 'IS_ROOT_DRAWABLE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1667:20: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def34]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c: scope_hint: In function 'PanoramiXFillPoly'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1730:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'locPts' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1710:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1717:9: note: in expansion of macro 'IS_SHARED_PIXMAP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1725:14: note: in expansion of macro 'IS_ROOT_DRAWABLE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1729:18: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def35]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c: scope_hint: In function 'PanoramiXPolyFillRectangle'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1799:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'origRects' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1776:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1783:9: note: in expansion of macro 'IS_SHARED_PIXMAP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1791:14: note: in expansion of macro 'IS_ROOT_DRAWABLE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1798:21: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def36]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c: scope_hint: In function 'PanoramiXPolyFillArc'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1866:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'origArcs' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1843:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1850:9: note: in expansion of macro 'IS_SHARED_PIXMAP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1858:14: note: in expansion of macro 'IS_ROOT_DRAWABLE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXprocs.c:1865:20: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def37]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def38]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def39]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def40]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:1004:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'rects'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:1194:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:1195:5: note: in expansion of macro 'swapl'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:951:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:199:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:963:18: note: in expansion of macro 'wInputShape'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:199:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:963:18: note: in expansion of macro 'wInputShape'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c: scope_hint: In function 'ProcShapeGetRectangles'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def41]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shm.c: scope_hint: In function 'ShmInitScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shm.c:214:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'screen_priv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shm.c:210:37: note: in expansion of macro 'ShmGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:54: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shm.c:48: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shm.c: scope_hint: In function 'ShmInitScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def42]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def43]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def44]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c:892:17: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'SyncObject', which is incompatible with sizeof operand type 'SyncCounter'
#  890|       switch (type) {
#  891|       case SYNC_COUNTER:
#  892|->         pSync = malloc(sizeof(SyncCounter));
#  893|           resType = RTCounter;
#  894|           break;

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c: scope_hint: In function 'IdleTimeQueryValue'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c:2648:18: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c:61: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:430:25: note: in expansion of macro '__BUG_WARN_MSG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c:120:5: note: in expansion of macro 'BUG_WARN'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:419:20: note: in definition of macro '__BUG_WARN_MSG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c:120:5: note: in expansion of macro 'BUG_WARN'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c:120:15: note: in expansion of macro 'IsSystemCounter'
# 2646|           SyncCounter *counter = pCounter;
# 2647|           IdleCounterPriv *priv = SysCounterGetPrivate(counter);
# 2648|->         deviceid = priv->deviceid;
# 2649|       }
# 2650|       else

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

Error: CLANG_WARNING: [#def49]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c:2664:22: warning[deadcode.DeadStores]: Value stored to 'list' during its initialization is never read
# 2662|       int64_t *greater = priv->value_greater;
# 2663|       int64_t idle, old_idle;
# 2664|->     SyncTriggerList *list = counter->sync.pTriglist;
# 2665|       SyncTrigger *trig;
# 2666|   

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c: scope_hint: In function 'init_system_idle_counter'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c:2821:48: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'priv'
# 2819|           IdleCounterPriv *priv = malloc(sizeof(IdleCounterPriv));
# 2820|   
# 2821|->         priv->value_less = priv->value_greater = NULL;
# 2822|           priv->deviceid = deviceid;
# 2823|   

Error: CLANG_WARNING: [#def53]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c:2824:53: warning[core.NullDereference]: Access to field 'private' results in a dereference of a null pointer (loaded from field 'pSysCounterInfo')
# 2822|           priv->deviceid = deviceid;
# 2823|   
# 2824|->         idle_time_counter->pSysCounterInfo->private = priv;
# 2825|       }
# 2826|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/sync.c:2827:12: warning[-Wanalyzer-malloc-leak]: leak of 'priv'
# 2825|       }
# 2826|   
# 2827|->     return idle_time_counter;
# 2828|   }
# 2829|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def55]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:96:5: warning[-Wanalyzer-null-argument]: use of NULL 'VidModeCreateMode()' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c: scope_hint: In function 'ProcVidModeModModeLine'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:188:13: note: in expansion of macro 'VM_GETPRIV'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:54: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:42: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c: scope_hint: In function 'ProcVidModeModModeLine'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:188:13: note: in expansion of macro 'VM_GETPRIV'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:1835:9: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:1836:9: note: in expansion of macro 'swapl'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:188:13: note: in expansion of macro 'VM_GETPRIV'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c: scope_hint: In function 'ProcVidModeModModeLine'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:188:13: note: in expansion of macro 'VM_GETPRIV'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:753:9: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'ProcVidModeModModeLine'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c: scope_hint: In function 'ProcVidModeModModeLine'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def56]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def57]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c: scope_hint: In function 'ProcVidModeGetDotClocks'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:1377:30: warning[-Wanalyzer-null-dereference]: dereference of NULL 'Clocks'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:1983:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:1984:5: note: in expansion of macro 'swaps'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c:1333:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'ProcVidModeGetDotClocks'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/vidmode.c: scope_hint: In function 'ProcVidModeGetDotClocks'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def58]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:139:9: warning[-Wanalyzer-free-of-non-heap]: 'free' of 'it' which points to memory on the stack
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:1065:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:14: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:1066:5: note: in expansion of macro 'swapl'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:1067:5: note: in expansion of macro 'REQUEST_FIXED_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:957:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:83:12: note: in definition of macro 'REQUEST_FIXED_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:960:5: note: in expansion of macro 'REQUEST_FIXED_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h:151: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:54: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/resource.h:96:41: note: in expansion of macro 'RESOURCE_CLIENT_BITS'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/resource.h:98:33: note: in expansion of macro 'RESOURCE_CLIENT_MASK'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/resource.h:100:30: note: in expansion of macro 'CLIENT_BITS'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:916:25: note: in expansion of macro 'CLIENT_ID'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:137:5: note: in expansion of macro 'xorg_list_for_each_entry_safe'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c: scope_hint: In function 'DestroyFragments'
#  137|       xorg_list_for_each_entry_safe(it, tmp, frags, l) {
#  138|           xorg_list_del(&it->l);
#  139|->         free(it);
#  140|       }
#  141|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c: scope_hint: In function 'ProcXResQueryClients.part.0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:231:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'current_clients'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:226:23: note: in expansion of macro 'xallocarray'
#  229|       for (i = 0; i < currentMaxClients; i++) {
#  230|           if (clients[i]) {
#  231|->             current_clients[num_clients] = i;
#  232|               num_clients++;
#  233|           }

Error: COMPILER_WARNING (CWE-477): [#def60]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:40:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#   38|   
#   39|   typedef struct {
#   40|->     security_context_t octx;
#   41|       security_context_t dctx;
#   42|       CARD32 octx_len;

Error: COMPILER_WARNING (CWE-477): [#def61]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:41:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#   39|   typedef struct {
#   40|       security_context_t octx;
#   41|->     security_context_t dctx;
#   42|       CARD32 octx_len;
#   43|       CARD32 dctx_len;

Error: COMPILER_WARNING (CWE-477): [#def62]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:53:1: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#   51|   static security_context_t
#   52|   SELinuxCopyContext(char *ptr, unsigned len)
#   53|-> {
#   54|       security_context_t copy = malloc(len + 1);
#   55|   

Error: COMPILER_WARNING (CWE-477): [#def63]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c: scope_hint: In function 'SELinuxCopyContext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:54:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#   52|   SELinuxCopyContext(char *ptr, unsigned len)
#   53|   {
#   54|->     security_context_t copy = malloc(len + 1);
#   55|   
#   56|       if (!copy)

Error: COMPILER_WARNING (CWE-477): [#def64]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c: scope_hint: In function 'SELinuxSendContextReply'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:87:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#   85|   {
#   86|       SELinuxGetContextReply rep;
#   87|->     security_context_t ctx = NULL;
#   88|       int len = 0;
#   89|   

Error: COMPILER_WARNING (CWE-477): [#def65]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c: scope_hint: In function 'ProcSELinuxSetCreateContext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:120:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  118|       PrivateRec **privPtr = &client->devPrivates;
#  119|       security_id_t *pSid;
#  120|->     security_context_t ctx = NULL;
#  121|       char *ptr;
#  122|       int rc;

Error: COMPILER_WARNING (CWE-477): [#def66]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c: scope_hint: In function 'ProcSELinuxSetDeviceContext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:168:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  166|   ProcSELinuxSetDeviceContext(ClientPtr client)
#  167|   {
#  168|->     security_context_t ctx;
#  169|       security_id_t sid;
#  170|       DeviceIntPtr dev;

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c: scope_hint: In function 'SELinuxFreeItems'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:333:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'items'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c: scope_hint: In function 'SELinuxFreeItems'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c: scope_hint: In function 'SELinuxFreeItems'
#  331|   
#  332|       for (k = 0; k < count; k++) {
#  333|->         freecon(items[k].octx);
#  334|           freecon(items[k].dctx);
#  335|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c: scope_hint: In function 'SELinuxSendItemsToClient'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:355:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'buf'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c: scope_hint: In function 'SELinuxSendItemsToClient'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c: scope_hint: In function 'SELinuxSendItemsToClient'
#  353|       /* Fill in the buffer */
#  354|       for (k = 0; k < count; k++) {
#  355|->         buf[pos] = items[k].id;
#  356|           if (client->swapped)
#  357|               swapl(buf + pos);

Error: COMPILER_WARNING (CWE-563): [#def70]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c: scope_hint: In function 'SELinuxExtensionInit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:692:21: warning[-Wunused-but-set-variable]: variable 'extEntry' set but not used
#  692 |     ExtensionEntry *extEntry;
#      |                     ^~~~~~~~
#  690|   SELinuxExtensionInit(void)
#  691|   {
#  692|->     ExtensionEntry *extEntry;
#  693|   
#  694|       /* Check SELinux mode on system, configuration file, and boolean */

Error: CLANG_WARNING: [#def71]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:713:5: warning[deadcode.DeadStores]: Value stored to 'extEntry' is never read
#  711|   
#  712|       /* Add extension to server */
#  713|->     extEntry = AddExtension(SELINUX_EXTENSION_NAME,
#  714|                               SELinuxNumberEvents, SELinuxNumberErrors,
#  715|                               ProcSELinuxDispatch, SProcSELinuxDispatch,

Error: COMPILER_WARNING (CWE-477): [#def72]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_hooks.c: scope_hint: In function 'SELinuxLabelClient'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_hooks.c:117:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  117 |     security_context_t ctx;
#      |     ^~~~~~~~~~~~~~~~~~
#  115|       SELinuxSubjectRec *subj;
#  116|       SELinuxObjectRec *obj;
#  117|->     security_context_t ctx;
#  118|   
#  119|       subj = dixLookupPrivate(&client->devPrivates, subjectKey);

Error: COMPILER_WARNING (CWE-477): [#def73]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_hooks.c: scope_hint: In function 'SELinuxLabelInitial'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_hooks.c:172:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  172 |     security_context_t ctx;
#      |     ^~~~~~~~~~~~~~~~~~
#  170|       SELinuxSubjectRec *subj;
#  171|       SELinuxObjectRec *obj;
#  172|->     security_context_t ctx;
#  173|       void *unused;
#  174|   

Error: COMPILER_WARNING (CWE-477): [#def74]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_hooks.c: scope_hint: In function 'SELinuxResourceState'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_hooks.c:776:9: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  776 |         security_context_t ctx;
#      |         ^~~~~~~~~~~~~~~~~~
#  774|   
#  775|       if (subj->sid) {
#  776|->         security_context_t ctx;
#  777|           int rc = avc_sid_to_context_raw(subj->sid, &ctx);
#  778|   

Error: COMPILER_WARNING (CWE-477): [#def75]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_hooks.c:794:9: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  794 |         security_context_t ctx;
#      |         ^~~~~~~~~~~~~~~~~~
#  792|   
#  793|       if (obj->sid) {
#  794|->         security_context_t ctx;
#  795|           int rc = avc_sid_to_context_raw(obj->sid, &ctx);
#  796|   

Error: COMPILER_WARNING (CWE-477): [#def76]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_hooks.c: scope_hint: In function 'SELinuxFlaskInit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_hooks.c:850:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  850 |     security_context_t ctx;
#      |     ^~~~~~~~~~~~~~~~~~
#  848|   {
#  849|       struct selinux_opt avc_option = { AVC_OPT_SETENFORCE, (char *) 0 };
#  850|->     security_context_t ctx;
#  851|       int ret = TRUE;
#  852|   

Error: COMPILER_WARNING (CWE-477): [#def77]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c: scope_hint: In function 'SELinuxAtomToSIDLookup'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c:100:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  100 |     security_context_t ctx;
#      |     ^~~~~~~~~~~~~~~~~~
#   98|   {
#   99|       const char *name = NameForAtom(atom);
#  100|->     security_context_t ctx;
#  101|       int rc = Success;
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c: scope_hint: In function 'SELinuxAtomToSID'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c:141:18: warning[-Wanalyzer-malloc-leak]: leak of 'rec'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:77: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/resource.h:49: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/registry.h:20: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c:26: included_from: Included from here.
#  139|       if (!rec) {
#  140|           rec = calloc(1, sizeof(SELinuxAtomRec));
#  141|->         if (!rec || !SELinuxArraySet(&arr_atoms, atom, rec))
#  142|               return BadAlloc;
#  143|       }

Error: CLANG_WARNING: [#def79]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c:142:20: warning[unix.Malloc]: Potential leak of memory pointed to by 'rec'
#  140|           rec = calloc(1, sizeof(SELinuxAtomRec));
#  141|           if (!rec || !SELinuxArraySet(&arr_atoms, atom, rec))
#  142|->             return BadAlloc;
#  143|       }
#  144|   

Error: COMPILER_WARNING (CWE-477): [#def80]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c: scope_hint: In function 'SELinuxEventToSID'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c:258:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  258 |     security_context_t ctx;
#      |     ^~~~~~~~~~~~~~~~~~
#  256|       const char *name = LookupEventName(type);
#  257|       security_id_t sid;
#  258|->     security_context_t ctx;
#  259|   
#  260|       type &= 127;

Error: COMPILER_WARNING (CWE-477): [#def81]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c: scope_hint: In function 'SELinuxExtensionToSID'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c:294:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  294 |     security_context_t ctx;
#      |     ^~~~~~~~~~~~~~~~~~
#  292|   SELinuxExtensionToSID(const char *name, security_id_t * sid_rtn)
#  293|   {
#  294|->     security_context_t ctx;
#  295|   
#  296|       /* Look in the mappings of extension names to contexts */

Error: COMPILER_WARNING (CWE-477): [#def82]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c: scope_hint: At top level
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c:352:1: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  352 | {
#      | ^
#  350|   security_context_t
#  351|   SELinuxDefaultClientLabel(void)
#  352|-> {
#  353|       security_context_t ctx;
#  354|   

Error: COMPILER_WARNING (CWE-477): [#def83]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c: scope_hint: In function 'SELinuxDefaultClientLabel'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_label.c:353:5: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  353 |     security_context_t ctx;
#      |     ^~~~~~~~~~~~~~~~~~
#  351|   SELinuxDefaultClientLabel(void)
#  352|   {
#  353|->     security_context_t ctx;
#  354|   
#  355|       if (selabel_lookup_raw(label_hnd, &ctx, "remote", SELABEL_X_CLIENT) < 0)

Error: COMPILER_WARNING (CWE-477): [#def84]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinux_ext.c:30: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xselinuxint.h:102:1: warning[-Wdeprecated-declarations]: 'security_context_t' is deprecated
#  100|   security_class_t SELinuxTypeToClass(RESTYPE type);
#  101|   
#  102|-> security_context_t SELinuxDefaultClientLabel(void);
#  103|   
#  104|   void

Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xtest.c: scope_hint: In function 'ProcXTestFakeInput'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xtest.c:355:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'dev'
#  353|       case KeyPress:
#  354|       case KeyRelease:
#  355|->         if (!dev->key)
#  356|               return BadDevice;
#  357|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xtest.c:367:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'dev'
#  365|           break;
#  366|       case MotionNotify:
#  367|->         if (!dev->valuator)
#  368|               return BadDevice;
#  369|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xtest.c:398:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'dev'
#  396|       case ButtonPress:
#  397|       case ButtonRelease:
#  398|->         if (!dev->button)
#  399|               return BadDevice;
#  400|   

Error: CLANG_WARNING: [#def88]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def89]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xvdisp.c: scope_hint: In function 'XineramifyXv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xvdisp.c:1787:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*port.info[0].id'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xvdisp.c:33: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xvdisp.c: scope_hint: In function 'XineramifyXv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xvdisp.c:52: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xvdisp.c:1770:9: note: in expansion of macro 'FOR_NSCREENS_FORWARD_SKIP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xvdisp.c: scope_hint: In function 'XineramifyXv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xvdisp.c:1770:9: note: in expansion of macro 'FOR_NSCREENS_FORWARD_SKIP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xvdisp.c: scope_hint: In function 'XineramifyXv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xvdisp.c:1770:9: note: in expansion of macro 'FOR_NSCREENS_FORWARD_SKIP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro 'FOR_NSCREENS_FORWARD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def90]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def91]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def92]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:446:37: warning[core.NullDereference]: Access to field 'xkbInfo' results in a dereference of a null pointer (loaded from field 'key')
#  444|                   continue;
#  445|               if (k->xkb_sli->flags & XkbSLI_IsDefault) {
#  446|->                 k->xkb_sli->names = to->key->xkbInfo->desc->names->indicators;
#  447|                   k->xkb_sli->maps = to->key->xkbInfo->desc->indicators->maps;
#  448|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c: scope_hint: In function 'DeepCopyKeyboardClasses'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:446:44: warning[-Wanalyzer-null-dereference]: dereference of NULL '*to.key'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/input.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/inputstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:85: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:2140:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:2141:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:2142:5: note: in expansion of macro 'BUG_RETURN_VAL'
#  444|                   continue;
#  445|               if (k->xkb_sli->flags & XkbSLI_IsDefault) {
#  446|->                 k->xkb_sli->names = to->key->xkbInfo->desc->names->indicators;
#  447|                   k->xkb_sli->maps = to->key->xkbInfo->desc->indicators->maps;
#  448|               }

Error: CLANG_WARNING: [#def94]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:479:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  477|               if (!to->focus->trace && to->focus->traceSize)
#  478|                   FatalError("[Xi] no memory for trace.\n");
#  479|->             memcpy(to->focus->trace, from->focus->trace,
#  480|                      from->focus->traceSize * sizeof(WindowPtr));
#  481|               to->focus->sourceid = from->id;

Error: CLANG_WARNING: [#def95]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:981:37: warning[core.NullDereference]: Access to field 'inputClients' results in a dereference of a null pointer
#  979|       InputClients *iclient;
#  980|   
#  981|->     nt_list_for_each_entry(iclient, wOtherInputMasks(win)->inputClients, next) {
#  982|           if (rClient(iclient) != client)
#  983|               continue;

Error: CLANG_WARNING: [#def96]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:1035:5: warning[deadcode.DeadStores]: Value stored to 'err' is never read
# 1033|       if (XaceHook(XACE_RECEIVE_ACCESS, client, win, xi2, 1) != Success)
# 1034|           return FALSE;
# 1035|->     err = TryClientEvents(client, dev, xi2, 1, filter, filter, NullGrab);
# 1036|       free(xi2);
# 1037|   

Error: CLANG_WARNING: [#def97]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:1335:36: warning[core.NullDereference]: Access to field 'inputClients' results in a dereference of a null pointer
# 1333|   
# 1334|               nt_list_for_each_entry(iclients,
# 1335|->                                    wOtherInputMasks(*win)->inputClients, next)
# 1336|                   if (xi2mask_isset(iclients->xi2mask, dev, evtype))
# 1337|                   break;

Error: CLANG_WARNING: [#def98]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:1349:36: warning[core.NullDereference]: Access to field 'inputClients' results in a dereference of a null pointer
# 1347|   
# 1348|               nt_list_for_each_entry(iclients,
# 1349|->                                    wOtherInputMasks(*win)->inputClients, next)
# 1350|                   if (iclients->mask[dev->id] & xi_filter)
# 1351|                   break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c: scope_hint: In function 'SelectForWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:2428:21: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:92: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:192:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:2428:23: note: in expansion of macro 'wOtherInputMasks'
# 2426|               }
# 2427|           }
# 2428|->         for (others = wOtherInputMasks(pWin)->inputClients; others;
# 2429|                others = others->next) {
# 2430|               if (SameClient(others, client)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c: scope_hint: In function 'MakeInputMasks'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:2516:32: warning[-Wanalyzer-malloc-leak]: leak of 'imasks'
# 2514|           return FALSE;
# 2515|       }
# 2516|->     pWin->optional->inputMasks = imasks;
# 2517|       return TRUE;
# 2518|   }

Error: CLANG_WARNING: [#def101]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:2695:26: warning[core.NullDereference]: Array access (via field 'dontPropagateMask') results in a null pointer dereference
# 2693|                   return Success;
# 2694|               if (wOtherInputMasks(pWin))
# 2695|->                 mask &= ~wOtherInputMasks(pWin)->dontPropagateMask[d->id];
# 2696|               if (!mask)
# 2697|                   break;

Error: CLANG_WARNING: [#def102]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:2984:22: warning[core.NullDereference]: Access to field 'resource' results in a dereference of a null pointer (loaded from field 'inputClients')
# 2982|       RecalculateDeviceDeliverableEvents(pWin);
# 2983|       if (ShouldFreeInputMasks(pWin, FALSE))
# 2984|->         FreeResource(inputMasks->inputClients->resource, RT_NONE);
# 2985|       return Success;
# 2986|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c: scope_hint: In function 'DeviceEventSuppressForWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:2984:32: warning[-Wanalyzer-null-dereference]: dereference of NULL 'inputMasks'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:192:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:2979:22: note: in expansion of macro 'wOtherInputMasks'
# 2982|       RecalculateDeviceDeliverableEvents(pWin);
# 2983|       if (ShouldFreeInputMasks(pWin, FALSE))
# 2984|->         FreeResource(inputMasks->inputClients->resource, RT_NONE);
# 2985|       return Success;
# 2986|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c: scope_hint: In function 'XISetEventMask'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:3078:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c: scope_hint: In function 'XISetEventMask'
/usr/include/X11/extensions/XI2proto.h:61: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/inputstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:192:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:3078:18: note: in expansion of macro 'wOtherInputMasks'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:192:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:3078:18: note: in expansion of macro 'wOtherInputMasks'
# 3076|           if (AddExtensionClient(win, client, 0, 0) != Success)
# 3077|               return BadAlloc;
# 3078|->         others = wOtherInputMasks(win)->inputClients;
# 3079|       }
# 3080|   

Error: CLANG_WARNING: [#def105]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/exevents.c:3078:18: warning[core.NullDereference]: Access to field 'inputClients' results in a dereference of a null pointer
# 3076|           if (AddExtensionClient(win, client, 0, 0) != Success)
# 3077|               return BadAlloc;
# 3078|->         others = wOtherInputMasks(win)->inputClients;
# 3079|       }
# 3080|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/getprop.c: scope_hint: In function 'ClassFromMask'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/getprop.c:163:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'buf'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/getprop.c:57: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/getprop.c:102:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/getprop.c:58: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:192:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/getprop.c:116:19: note: in expansion of macro 'wOtherInputMasks'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:192:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/getprop.c:116:19: note: in expansion of macro 'wOtherInputMasks'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/input.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/inputstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def107]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/listdev.c: scope_hint: In function 'CopySwapDevice'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/listdev.c:171:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'dev'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/inputstr.h:55: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/listdev.c:59: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def108]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xibarriers.c:125:9: warning[-Wanalyzer-double-free]: double-'free' of 'pbd'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xibarriers.c:124:5: note: in expansion of macro 'xorg_list_for_each_entry_safe'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def109]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def110]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def111]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xibarriers.c: scope_hint: In function 'add_master_func'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def112]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: COMPILER_WARNING: [#def113]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xichangehierarchy.c:61:32: warning[-Warray-parameter=]: argument 1 of type 'int[256]' with mismatched bound
#   61 | XISendDeviceHierarchyEvent(int flags[MAXDEVICES])
#      |                            ~~~~^~~~~~~~~~~~~~~~~
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xichangehierarchy.c:54: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xichangehierarchy.h:42:37: note: previously declared as 'int[]'
#   42 | void XISendDeviceHierarchyEvent(int flags[]);
#      |                                 ~~~~^~~~~~~
#   59|    */
#   60|   void
#   61|-> XISendDeviceHierarchyEvent(int flags[MAXDEVICES])
#   62|   {
#   63|       xXIHierarchyEvent *ev;

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

Error: CLANG_WARNING: [#def115]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xiquerydevice.c:500:20: warning[unix.Malloc]: Use of memory allocated with size zero
#  498|       int len = 0, total_len = 0;
#  499|   
#  500|->     info->deviceid = dev->id;
#  501|       info->use = GetDeviceUse(dev, &info->attachment);
#  502|       info->num_classes = 0;

Error: CLANG_WARNING: [#def116]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xiquerydevice.c:566:9: warning[deadcode.DeadStores]: Value stored to 'any' is never read
#  564|           (*nclasses)++;
#  565|           len = ListTouchInfo(dev, (xXITouchInfo *) any);
#  566|->         any += len;
#  567|           total_len += len;
#  568|       }

Error: CLANG_WARNING: [#def117]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def118]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def119]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def120]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def121]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def122]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/config/udev.c:214:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'attrs.vendor'
#  212|   
#  213|       set = udev_device_get_properties_list_entry(udev_device);
#  214|->     udev_list_entry_foreach(entry, set) {
#  215|           key = udev_list_entry_get_name(entry);
#  216|           if (!key)

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

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

Error: CLANG_WARNING: [#def125]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/devices.c:1661:9: warning[deadcode.DeadStores]: Value stored to 'num_axes' is never read
# 1659|                      "Device '%s' has %d touch axes, only using first %d.\n",
# 1660|                      device->name, num_axes, MAX_VALUATORS);
# 1661|->         num_axes = MAX_VALUATORS;
# 1662|       }
# 1663|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/devices.c: scope_hint: In function 'GetPairedDevice'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/devices.c:2694:15: warning[-Wanalyzer-null-dereference]: dereference of NULL 'dev'
# 2692|           dev = GetMaster(dev, MASTER_ATTACHED);
# 2693|   
# 2694|->     return dev->spriteInfo? dev->spriteInfo->paired: NULL;
# 2695|   }
# 2696|   

Error: CLANG_WARNING: [#def127]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/dispatch.c:357:65: warning[core.NullDereference]: Access to field 'index' results in a dereference of a null pointer (loaded from variable 'best')
#  355|       }
#  356|   #endif
#  357|->     SmartLastIndex[best->smart_priority - SMART_MIN_PRIORITY] = best->index;
#  358|       /*
#  359|        * Set current client pointer

Error: CLANG_WARNING: [#def128]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/dispatch.c:3631:5: warning[deadcode.DeadStores]: Value stored to 'numScreens' is never read
# 3629|       }
# 3630|   
# 3631|->     numScreens = screenInfo.numScreens;
# 3632|       lConnectionInfo = ConnectionInfo;
# 3633|       lconnSetupPrefix = &connSetupPrefix;

Error: CLANG_WARNING: [#def129]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def130]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def131]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def132]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def133]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/dixfonts.c:674:17: warning[core.CallAndMessage]: 3rd function call argument is an uninitialized value
#  672|                    * is complete.
#  673|                    */
#  674|->                 memmove(tmp_pattern, resolved, resolvedlen);
#  675|                   if (c->haveSaved) {
#  676|                       char *tmpname;

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

Error: CLANG_WARNING: [#def135]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def136]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def137]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def138]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def139]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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|                       memmove(c->savedName, name, namelen + 1);

Error: CLANG_WARNING: [#def140]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def141]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def142]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/dixfonts.c: scope_hint: In function 'doPolyText'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def143]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def144]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def145]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def146]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def147]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/dixfonts.c: scope_hint: In function 'doImageText'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def148]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def149]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/dixfonts.c: scope_hint: In function 'SetFontPath'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def150]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def151]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def152]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/enterleave.c: scope_hint: In function 'DeviceFocusEvent'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/enterleave.c:777:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xi2event'
#  775|   
#  776|       xi2event = calloc(1, len);
#  777|->     xi2event->type = GenericEvent;
#  778|       xi2event->extension = IReqCode;
#  779|       xi2event->evtype = type;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def153]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/eventconvert.c: scope_hint: In function 'eventToDeviceEvent'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/eventconvert.c:665:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*xi'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/eventconvert.c: scope_hint: In function 'eventToDeviceEvent'
#  663|       *xi = calloc(1, len);
#  664|       xde = (xXIDeviceEvent *) * xi;
#  665|->     xde->type = GenericEvent;
#  666|       xde->extension = IReqCode;
#  667|       xde->evtype = GetXI2Type(ev->type);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/eventconvert.c: scope_hint: In function 'eventToTouchOwnershipEvent'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/eventconvert.c:733:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*xi'
#  731|       *xi = calloc(1, len);
#  732|       xtoe = (xXITouchOwnershipEvent *) * xi;
#  733|->     xtoe->type = GenericEvent;
#  734|       xtoe->extension = IReqCode;
#  735|       xtoe->length = bytes_to_int32(len - sizeof(xEvent));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/eventconvert.c: scope_hint: In function 'eventToRawEvent'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/eventconvert.c:763:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*xi'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/eventconvert.c: scope_hint: In function 'eventToRawEvent'
#  761|       *xi = calloc(1, len);
#  762|       raw = (xXIRawEvent *) * xi;
#  763|->     raw->type = GenericEvent;
#  764|       raw->extension = IReqCode;
#  765|       raw->evtype = GetXI2Type(ev->type);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def156]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/eventconvert.c: scope_hint: In function 'eventToBarrierEvent'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/eventconvert.c:798:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*xi'
#  796|       *xi = calloc(1, len);
#  797|       barrier = (xXIBarrierEvent*) *xi;
#  798|->     barrier->type = GenericEvent;
#  799|       barrier->extension = IReqCode;
#  800|       barrier->evtype = GetXI2Type(ev->type);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/events.c: scope_hint: In function 'CheckPhysLimits'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/events.c:757:14: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pScreen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h:150: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/events.c:112: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/events.c:4946:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/events.c:110: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/resource.h:98:27: note: in definition of macro 'CLIENT_BITS'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/events.c:4968:10: note: in expansion of macro 'SameClient'
#  755|               if (pScreen != pSprite->hotPhys.pScreen)
#  756|                   pSprite->hotPhys = new;
#  757|->             (*pScreen->SetCursorPosition)
#  758|                   (pDev, pScreen, new.x, new.y, generateEvents);
#  759|           }

Error: GCC_ANALYZER_WARNING (CWE-122): [#def158]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/extension.c: scope_hint: In function 'ProcListExtensions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/extension.c:295:23: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/extension.c:54: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/extension.c:264:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/extension.c:295:23: note: write of 1 byte to beyond the end of the region
#  293|                   continue;
#  294|   
#  295|->             *bufptr++ = len = strlen(extensions[i]->name);
#  296|               memmove(bufptr, extensions[i]->name, len);
#  297|               bufptr += len;

Error: CLANG_WARNING: [#def159]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/extension.c:295:23: warning[unix.Malloc]: Use of memory allocated with size zero
#  293|                   continue;
#  294|   
#  295|->             *bufptr++ = len = strlen(extensions[i]->name);
#  296|               memmove(bufptr, extensions[i]->name, len);
#  297|               bufptr += len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/gc.c: scope_hint: In function 'CreateScratchGC'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/gc.c:814:28: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pGC'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/gc.c:66: included_from: Included from here.
#  812|           pGC = (GCPtr) NULL;
#  813|       }
#  814|->     pGC->graphicsExposures = FALSE;
#  815|       return pGC;
#  816|   }

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

Error: CLANG_WARNING: [#def162]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def163]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/inpututils.c:780:9: warning[core.NullDereference]: Array access (via field 'map') results in a null pointer dereference
#  778|   
#  779|       if (mouse && mouse->touch && mouse->touch->buttonsDown > 0)
#  780|->         SetBit(event->buttons, mouse->button->map[1]);
#  781|   
#  782|       if (kbd && kbd->key) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def164]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/privates.c: scope_hint: In function '_dixInitPrivates'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/privates.c:450:5: warning[-Wanalyzer-null-argument]: use of NULL 'addr' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:171: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/window.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/privates.c:56: included_from: Included from here.
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
#  448|           addr = 0;
#  449|       *privates = addr;
#  450|->     memset(addr, '\0', global_keys[type].offset);
#  451|   }
#  452|   

Error: CLANG_WARNING: [#def165]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/privates.c:450:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  448|           addr = 0;
#  449|       *privates = addr;
#  450|->     memset(addr, '\0', global_keys[type].offset);
#  451|   }
#  452|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def166]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/privates.c: scope_hint: In function '_dixInitScreenPrivates'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/privates.c:683:5: warning[-Wanalyzer-null-argument]: use of NULL 'addr' where non-null expected
<built-in>: note: argument 1 of '__builtin_memset' must be non-null
#  681|           addr = 0;
#  682|       *privates = addr;
#  683|->     memset(addr, '\0', privates_size);
#  684|   }
#  685|   

Error: CLANG_WARNING: [#def167]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/privates.c:683:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  681|           addr = 0;
#  682|       *privates = addr;
#  683|->     memset(addr, '\0', privates_size);
#  684|   }
#  685|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def168]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c: scope_hint: In function 'dixChangeWindowProperty'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:283:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'data' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def169]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:297:37: warning[-Wanalyzer-null-dereference]: dereference of NULL '*pWin.optional'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h:150: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:213:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:231:5: note: in expansion of macro 'REQUEST_FIXED_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:194:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:98:18: note: in expansion of macro 'wUserProps'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def170]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:318:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'data' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:194:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:98:18: note: in expansion of macro 'wUserProps'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:194:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def171]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c: scope_hint: In function 'ProcListProperties'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:597:27: warning[-Wanalyzer-null-dereference]: dereference of NULL 'temppAtoms'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:580:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:194:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:585:18: note: in expansion of macro 'wUserProps'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:194:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:585:18: note: in expansion of macro 'wUserProps'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:194:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:585:18: note: in expansion of macro 'wUserProps'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:194:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/property.c:593:18: note: in expansion of macro 'wUserProps'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:194:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def172]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/ptrveloc.c: scope_hint: In function 'InitPredictableAccelerationScheme'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/ptrveloc.c:146:9: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
#  144|       scheme.accelData = schemeData;
#  145|       if (!InitializePredictableAccelerationProperties(dev, vel, schemeData)) {
#  146|->         free(vel);
#  147|           free(schemeData);
#  148|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/ptrveloc.c:151:32: warning[-Wanalyzer-malloc-leak]: leak of 'schemeData'
#  149|       }
#  150|       /* all fine, assign scheme to device */
#  151|->     dev->valuator->accelScheme = scheme;
#  152|       return TRUE;
#  153|   }

Error: GCC_ANALYZER_WARNING (CWE-590): [#def174]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/region.c: scope_hint: In function 'RegionBreak'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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-1.20.14-build/xorg-server-1.20.14/dix/region.c:338:5: note: in expansion of macro 'xfreeData'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/region.c:82: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/region.c:338:5: note: in expansion of macro 'xfreeData'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/region.c:338:5: note: in expansion of macro 'xfreeData'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def175]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def176]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/region.c:1309:9: warning[unix.Malloc]: Argument to free() is the address of the global variable 'RegionBrokenData', which is not memory allocated by malloc()
# 1307|    bail:
# 1308|       for (i = 0; i < numRI; i++)
# 1309|->         xfreeData(&ri[i].reg);
# 1310|       free(ri);
# 1311|       return RegionBreak(badreg);

Error: GCC_ANALYZER_WARNING (CWE-131): [#def177]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/swaprep.c: scope_hint: In function 'CopySwap32Write'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def178]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/swaprep.c: scope_hint: In function 'CopySwap16Write'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def179]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/window.c: scope_hint: In function 'ChangeWindowDeviceCursor'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/window.c:3513:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'pNewNode'
# 3511|   
# 3512|           pNewNode = malloc(sizeof(DevCursNodeRec));
# 3513|->         pNewNode->dev = pDev;
# 3514|           pNewNode->next = pWin->optional->deviceCursors;
# 3515|           pWin->optional->deviceCursors = pNewNode;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def180]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dri3/dri3_screen.c: scope_hint: In function 'dri3_fd_from_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dri3/dri3_screen.c:147:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dri3/dri3_priv.h:27: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'dri3_fd_from_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dri3/dri3_screen.c: scope_hint: In function 'dri3_fd_from_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dri3/dri3_screen.c: scope_hint: In function 'dri3_fd_from_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dri3/dri3_screen.c:147:13: note: read of 4 bytes from after the end of 'fds'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dri3/dri3_screen.c:147:13: note: valid subscripts for 'fds' are '[0]' to '[3]'
#                                                 └───────────────────────┘
#                                                             ^
#  145|           int i;
#  146|           for (i = 0; i < num_fds; i++)
#  147|->             close(fds[i]);
#  148|           return -1;
#  149|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dri3/dri3_screen.c: scope_hint: In function 'cache_formats_and_modifiers'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dri3/dri3_screen.c:190:8: warning[-Wanalyzer-malloc-leak]: leak of '((struct dri3_screen_priv)**screen.devPrivates).formats'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'cache_formats_and_modifiers'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dri3/dri3_screen.c: scope_hint: In function 'cache_formats_and_modifiers'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dri3/dri3_screen.c: scope_hint: In function 'cache_formats_and_modifiers'
#  188|   
#  189|       ds->formats = calloc(num_formats, sizeof(dri3_dmabuf_format_rec));
#  190|->     if (!ds->formats)
#  191|           return BadAlloc;
#  192|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.c: scope_hint: In function 'exaCloseScreen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.c:745:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.c:37: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:222:63: note: in expansion of macro 'ExaGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.c:742:5: note: in expansion of macro 'ExaScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.h:34: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:33: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:171: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.c: scope_hint: In function 'exaCloseScreen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:222:63: note: in expansion of macro 'ExaGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.c:742:5: note: in expansion of macro 'ExaScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/pixmapstr.h:55: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.h:35: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.c:743:27: note: in expansion of macro 'GetPictureScreenIfSet'
#  743|       PictureScreenPtr ps = GetPictureScreenIfSet(pScreen);
#  744|   
#  745|->     if (ps->Glyphs == exaGlyphs)
#  746|           exaGlyphsFini(pScreen);
#  747|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def183]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.c: scope_hint: In function 'exaDriverInit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.c:1024:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.c:878:10: note: in expansion of macro 'GetPictureScreenIfSet'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.c: scope_hint: In function 'exaDriverInit'
# 1022|       }
# 1023|   
# 1024|->     if (ps->Glyphs == exaGlyphs)
# 1025|           exaGlyphsInit(pScreen);
# 1026|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def184]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c: scope_hint: In function 'exaPolyPoint.part.0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:631:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'prect'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.h:34: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:33: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:33: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:629:13: note: in expansion of macro 'xallocarray'
#  629|       prect = xallocarray(npt, sizeof(xRectangle));
#  630|       for (i = 0; i < npt; i++) {
#  631|->         prect[i].x = ppt[i].x;
#  632|           prect[i].y = ppt[i].y;
#  633|           if (i > 0 && mode == CoordModePrevious) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def185]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c: scope_hint: In function 'exaPolylines'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:691:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'prect'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:222:63: note: in expansion of macro 'ExaGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:653:5: note: in expansion of macro 'ExaScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:171: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c: scope_hint: In function 'exaPolylines'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:222:63: note: in expansion of macro 'ExaGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:653:5: note: in expansion of macro 'ExaScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/os.h:87:52: note: in definition of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:670:13: note: in expansion of macro 'xallocarray'
#  689|   
#  690|           if (x1 < x2) {
#  691|->             prect[i].x = x1;
#  692|               prect[i].width = x2 - x1 + 1;
#  693|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def186]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:695:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'prect'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:222:63: note: in expansion of macro 'ExaGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:653:5: note: in expansion of macro 'ExaScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c: scope_hint: In function 'exaPolylines'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:222:63: note: in expansion of macro 'ExaGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:653:5: note: in expansion of macro 'ExaScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/os.h:87:52: note: in definition of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:670:13: note: in expansion of macro 'xallocarray'
#  693|           }
#  694|           else {
#  695|->             prect[i].x = x2;
#  696|               prect[i].width = x1 - x2 + 1;
#  697|           }

Error: COMPILER_WARNING: [#def187]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c: scope_hint: In function 'exaPolySegment'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:741:13: warning[-Walloc-size-larger-than=]: argument 2 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807
#  741 |     prect = xallocarray(nseg, sizeof(xRectangle));
#      |             ^
/usr/include/stdlib.h:701:14: note: in a call to allocation function 'reallocarray' declared here
#  701 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
#      |              ^
#  739|       }
#  740|   
#  741|->     prect = xallocarray(nseg, sizeof(xRectangle));
#  742|       for (i = 0; i < nseg; i++) {
#  743|           if (pSeg[i].x1 < pSeg[i].x2) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def188]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c: scope_hint: In function 'exaPolySegment'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:744:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'prect'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:222:63: note: in expansion of macro 'ExaGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:722:5: note: in expansion of macro 'ExaScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c: scope_hint: In function 'exaPolySegment'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:222:63: note: in expansion of macro 'ExaGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:722:5: note: in expansion of macro 'ExaScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:741:13: note: in expansion of macro 'xallocarray'
#  742|       for (i = 0; i < nseg; i++) {
#  743|           if (pSeg[i].x1 < pSeg[i].x2) {
#  744|->             prect[i].x = pSeg[i].x1;
#  745|               prect[i].width = pSeg[i].x2 - pSeg[i].x1 + 1;
#  746|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def189]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:748:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'prect'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:222:63: note: in expansion of macro 'ExaGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:722:5: note: in expansion of macro 'ExaScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c: scope_hint: In function 'exaPolySegment'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:222:63: note: in expansion of macro 'ExaGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:722:5: note: in expansion of macro 'ExaScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:741:13: note: in expansion of macro 'xallocarray'
#  746|           }
#  747|           else {
#  748|->             prect[i].x = pSeg[i].x2;
#  749|               prect[i].width = pSeg[i].x1 - pSeg[i].x2 + 1;
#  750|           }

Error: CLANG_WARNING: [#def190]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_render.c:760:17: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
#  758|       yMask = yMask + mask_off_y - yDst - dst_off_y;
#  759|   
#  760|->     xSrc = xSrc + src_off_x - xDst - dst_off_x;
#  761|       ySrc = ySrc + src_off_y - yDst - dst_off_y;
#  762|   

Error: CLANG_WARNING: [#def191]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fbarc.c:127:17: warning[deadcode.DeadStores]: Value stored to 'wrapped' is never read
#  125|               if (wrapped) {
#  126|                   fbFinishAccess(pDrawable);
#  127|->                 wrapped = 0;
#  128|               }
#  129|   #endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def192]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_create_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c:230:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c:37: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_create_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_create_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_create_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:907: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c:218:14: note: in expansion of macro 'glamor_check_pixmap_fbo_depth'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_create_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_create_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_utils.h: scope_hint: In function 'glamor_create_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_create_pixmap'
#  228|       screen->ModifyPixmapHeader(pixmap, w, h, 0, 0, pitch, NULL);
#  229|   
#  230|->     pixmap_priv->type = GLAMOR_TEXTURE_ONLY;
#  231|   
#  232|       if (usage == GLAMOR_CREATE_PIXMAP_NO_TEXTURE) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def193]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_init'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c:715:44: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/pixmapstr.h:55: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.h:33: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c:457:27: note: in expansion of macro 'GetPictureScreenIfSet'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_init'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_init'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_init'
/usr/include/epoxy/gl.h:89: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:40: included_from: Included from here.
#  713|       screen->BitmapToRegion = glamor_bitmap_to_region;
#  714|   
#  715|->     glamor_priv->saved_procs.composite = ps->Composite;
#  716|       ps->Composite = glamor_composite;
#  717|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def194]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_close_screen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c:788:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c:771:27: note: in expansion of macro 'GetPictureScreenIfSet'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_close_screen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_close_screen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_close_screen'
#  786|       screen->BlockHandler = glamor_priv->saved_procs.block_handler;
#  787|   
#  788|->     ps->Composite = glamor_priv->saved_procs.composite;
#  789|       ps->Trapezoids = glamor_priv->saved_procs.trapezoids;
#  790|       ps->Triangles = glamor_priv->saved_procs.triangles;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def195]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function '_glamor_fds_from_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c:860:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function '_glamor_fds_from_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function '_glamor_fds_from_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function '_glamor_fds_from_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function '_glamor_fds_from_pixmap'
#  858|       if (!glamor_priv->dri3_enabled)
#  859|           return 0;
#  860|->     switch (pixmap_priv->type) {
#  861|       case GLAMOR_TEXTURE_DRM:
#  862|       case GLAMOR_TEXTURE_ONLY:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def196]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_name_from_pixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c:937:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.c: scope_hint: In function 'glamor_name_from_pixmap'
#  935|       glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap);
#  936|   
#  937|->     switch (pixmap_priv->type) {
#  938|       case GLAMOR_TEXTURE_DRM:
#  939|       case GLAMOR_TEXTURE_ONLY:

Error: CLANG_WARNING: [#def197]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c:420:59: warning[core.NullDereference]: Access to field 'serial' results in a dereference of a null pointer (loaded from variable 'glyph_atlas')
#  418|                       /* Glyph not cached in current atlas?
#  419|                        */
#  420|->                     if (_X_UNLIKELY(glyph_priv->serial != glyph_atlas->serial)) {
#  421|                           if (!glamor_glyph_can_add(glyph_atlas, glyph_atlas_dim, glyph_draw)) {
#  422|                               if (glyphs_queued) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def198]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_composite_glyphs'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c:420:70: warning[-Wanalyzer-null-dereference]: dereference of NULL 'glyph_atlas'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_composite_glyphs'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h: scope_hint: In function 'glamor_composite_glyphs'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_composite_glyphs'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_composite_glyphs'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_composite_glyphs'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_composite_glyphs'
#  418|                       /* Glyph not cached in current atlas?
#  419|                        */
#  420|->                     if (_X_UNLIKELY(glyph_priv->serial != glyph_atlas->serial)) {
#  421|                           if (!glamor_glyph_can_add(glyph_atlas, glyph_atlas_dim, glyph_draw)) {
#  422|                               if (glyphs_queued) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def199]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_core.c: scope_hint: In function 'glamor_get_drawable_location'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_core.c:44:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: CLANG_WARNING: [#def200]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c:302:14: warning[unix.Malloc]: Use of memory after it is freed
#  300|           glamor_get_modifiers(screen, format, &num_modifiers, &modifiers);
#  301|   
#  302|->         bo = gbm_bo_create_with_modifiers(glamor_egl->gbm, width, height,
#  303|                                             format, modifiers, num_modifiers);
#  304|           if (bo)

Error: GCC_ANALYZER_WARNING (CWE-415): [#def201]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c: scope_hint: In function 'glamor_make_pixmap_exportable'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c:306:9: warning[-Wanalyzer-double-free]: double-'free' of 'modifiers'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86str.h:39: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86.h:44: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c:37: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_make_pixmap_exportable'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c: scope_hint: In function 'glamor_make_pixmap_exportable'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c: scope_hint: In function 'glamor_make_pixmap_exportable'
/usr/include/epoxy/egl.h:46: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.h:33: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c:45: included_from: Included from here.
#  304|           if (bo)
#  305|               used_modifiers = TRUE;
#  306|->         free(modifiers);
#  307|       }
#  308|   #endif

Error: GCC_ANALYZER_WARNING (CWE-476): [#def202]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c: scope_hint: In function 'glamor_gbm_bo_from_pixmap_internal'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c:369:21: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c: scope_hint: In function 'glamor_gbm_bo_from_pixmap_internal'
#  367|           glamor_get_pixmap_private(pixmap);
#  368|   
#  369|->     if (!pixmap_priv->image)
#  370|           return NULL;
#  371|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def203]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c: scope_hint: In function 'glamor_egl_exchange_buffers'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c:747:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c: scope_hint: In function 'glamor_egl_exchange_buffers'
#  745|       glamor_pixmap_exchange_fbos(front, back);
#  746|   
#  747|->     temp_img = back_priv->image;
#  748|       temp_mod = back_priv->used_modifiers;
#  749|       back_priv->image = front_priv->image;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def204]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c:749:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c: scope_hint: In function 'glamor_egl_exchange_buffers'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_egl_exchange_buffers'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c: scope_hint: In function 'glamor_egl_exchange_buffers'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_egl.c: scope_hint: In function 'glamor_egl_exchange_buffers'
#  747|       temp_img = back_priv->image;
#  748|       temp_mod = back_priv->used_modifiers;
#  749|->     back_priv->image = front_priv->image;
#  750|       back_priv->used_modifiers = front_priv->used_modifiers;
#  751|       front_priv->image = temp_img;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def205]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c:278:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c: scope_hint: In function 'glamor_pixmap_attach_fbo'
#  276|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#  277|   
#  278|->     if (pixmap_priv->fbo)
#  279|           return;
#  280|   

Error: CLANG_WARNING: [#def206]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c:346:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'fbo'
#  344|       }
#  345|   
#  346|->     return TRUE;
#  347|   }
#  348|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def207]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c: scope_hint: In function 'glamor_pixmap_exchange_fbos'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c:357:14: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c: scope_hint: In function 'glamor_pixmap_exchange_fbos'
#  355|       front_priv = glamor_get_pixmap_private(front);
#  356|       back_priv = glamor_get_pixmap_private(back);
#  357|->     temp_fbo = front_priv->fbo;
#  358|       front_priv->fbo = back_priv->fbo;
#  359|       back_priv->fbo = temp_fbo;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def208]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c:358:32: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_pixmap_exchange_fbos'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c: scope_hint: In function 'glamor_pixmap_exchange_fbos'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c: scope_hint: In function 'glamor_pixmap_exchange_fbos'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c: scope_hint: In function 'glamor_pixmap_exchange_fbos'
#  356|       back_priv = glamor_get_pixmap_private(back);
#  357|       temp_fbo = front_priv->fbo;
#  358|->     front_priv->fbo = back_priv->fbo;
#  359|       back_priv->fbo = temp_fbo;
#  360|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def209]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c:130:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '__glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def210]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c:235:38: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_compute_clipped_regions_ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def211]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '_glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c:365:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '_glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function '_glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '_glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '_glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '_glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function '_glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '_glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function '_glamor_compute_clipped_regions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def212]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def213]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c:1175:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'source_pixmap_priv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_largepixmap.c: scope_hint: In function 'glamor_composite_largepixmap_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def214]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_picture.c:335:9: warning[deadcode.DeadStores]: Value stored to 'stride' is never read
#  333|   
#  334|           bits = pixman_image_get_data(converted_image);
#  335|->         stride = pixman_image_get_stride(converted_image);
#  336|       }
#  337|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def215]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_render.c:35: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h: scope_hint: In function 'glamor_pixmap_drm_only'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:404:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h: scope_hint: In function 'glamor_pixmap_drm_only'
#  402|       glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
#  403|   
#  404|->     return priv->type == GLAMOR_DRM_ONLY;
#  405|   }
#  406|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def216]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c:25: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h: scope_hint: In function 'glamor_pixmap_is_memory'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:415:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/Xprintf.h:29: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c:23: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h: scope_hint: In function 'glamor_pixmap_is_memory'
#  413|       glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
#  414|   
#  415|->     return priv->type == GLAMOR_MEMORY;
#  416|   }
#  417|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h: scope_hint: In function 'glamor_pixmap_has_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:448:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_pixmap_has_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h: scope_hint: In function 'glamor_pixmap_has_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_pixmap_has_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_pixmap_has_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_pixmap_has_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_pixmap_has_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h: scope_hint: In function 'glamor_pixmap_has_fbo'
#  446|       glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
#  447|   
#  448|->     return priv->gl_fbo == GLAMOR_FBO_NORMAL;
#  449|   }
#  450|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def218]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h: scope_hint: In function 'glamor_pixmap_fbo_at'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:463:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'priv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_pixmap_fbo_at'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h: scope_hint: In function 'glamor_pixmap_fbo_at'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_pixmap_fbo_at'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_pixmap_fbo_at'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_pixmap_fbo_at'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_pixmap_fbo_at'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_pixmap_fbo_at'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_composite_glyphs.c: scope_hint: In function 'glamor_pixmap_fbo_at'
#  461|   glamor_pixmap_fbo_at(glamor_pixmap_private *priv, int box)
#  462|   {
#  463|->     assert(box < priv->block_wcnt * priv->block_hcnt);
#  464|       return priv->fbo_array[box];
#  465|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def219]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:171: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_transform.c:23: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h: scope_hint: In function 'glamor_pixmap_box_at'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:470:22: warning[-Wanalyzer-null-dereference]: dereference of NULL 'priv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_transform.c: scope_hint: In function 'glamor_pixmap_box_at'
#  468|   glamor_pixmap_box_at(glamor_pixmap_private *priv, int box)
#  469|   {
#  470|->     assert(box < priv->block_wcnt * priv->block_hcnt);
#  471|       return &priv->box_array[box];
#  472|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def220]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:483:16: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_dash.c: scope_hint: In function 'glamor_dash_loop'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_dash.c:213:5: note: in expansion of macro 'glamor_pixmap_loop'
#  481|   glamor_pixmap_hcnt(glamor_pixmap_private *priv)
#  482|   {
#  483|->     return priv->block_hcnt;
#  484|   }
#  485|   

Error: CLANG_WARNING: [#def221]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_render.c:229:17: warning[deadcode.DeadStores]: Value stored to 'mask_fetch' during its initialization is never read
#  227|       char *source;
#  228|       const char *source_fetch;
#  229|->     const char *mask_fetch = "";
#  230|       const char *in;
#  231|       const char *header;

Error: CLANG_WARNING: [#def222]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_render.c:981:9: warning[deadcode.DeadStores]: Value stored to 'mask_needs_upload' is never read
#  979|               goto fail;
#  980|           }
#  981|->         mask_needs_upload = FALSE;
#  982|       }
#  983|       else {

Error: CLANG_WARNING: [#def223]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_render.c:1015:27: warning[core.NullDereference]: Access to field 'format' results in a dereference of a null pointer (loaded from variable 'mask')
# 1013|        */
# 1014|       if (source_pixmap && source_pixmap == mask_pixmap &&
# 1015|->         source->format != mask->format) {
# 1016|           goto fail;
# 1017|       }

Error: CLANG_WARNING: [#def224]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_render.c:1241:36: warning[core.UndefinedBinaryOperatorResult]: The right operand of '+' is a garbage value
# 1239|               x_source = rects->x_src + source_x_off;
# 1240|               y_source = rects->y_src + source_y_off;
# 1241|->             x_mask = rects->x_mask + mask_x_off;
# 1242|               y_mask = rects->y_mask + mask_y_off;
# 1243|               width = rects->width;

Error: CLANG_WARNING: [#def225]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_transform.c:150:13: warning[deadcode.DeadStores]: Value stored to 'pixel' is never read
#  148|           switch (gc->alu) {
#  149|           case GXclear:
#  150|->             pixel = 0;
#  151|               break;
#  152|           case GXcopyInverted:

Error: CLANG_WARNING: [#def226]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_transform.c:153:13: warning[deadcode.DeadStores]: Value stored to 'pixel' is never read
#  151|               break;
#  152|           case GXcopyInverted:
#  153|->             pixel = ~pixel;
#  154|               break;
#  155|           case GXset:

Error: CLANG_WARNING: [#def227]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_transform.c:156:13: warning[deadcode.DeadStores]: Value stored to 'pixel' is never read
#  154|               break;
#  155|           case GXset:
#  156|->             pixel = ~0 & gc->planemask;
#  157|               break;
#  158|           default:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def228]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:907: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_core.c: scope_hint: In function 'glamor_validate_gc'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_utils.h:582:64: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_core.c:204:19: note: in expansion of macro 'GLAMOR_PIXMAP_PRIV_HAS_FBO'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_core.c: scope_hint: In function 'glamor_validate_gc'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_core.c:204:19: note: in expansion of macro 'GLAMOR_PIXMAP_PRIV_HAS_FBO'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_core.c:204:19: note: in expansion of macro 'GLAMOR_PIXMAP_PRIV_HAS_FBO'
#  580|   						|| _depth_ == 32)
#  581|   
#  582|-> #define GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv)    (pixmap_priv->gl_fbo == GLAMOR_FBO_NORMAL)
#  583|   
#  584|   /**

Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:907: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c:31: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_utils.h: scope_hint: In function 'glamor_pixmap_attach_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_utils.h:730:42: warning[-Wanalyzer-malloc-leak]: leak of 'glamor_create_fbo(glamor_get_screen_private(*pixmap.drawable.pScreen), (int)*pixmap.drawable.width, (int)*pixmap.drawable.height,  format,  flag)'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_pixmap_attach_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c: scope_hint: In function 'glamor_pixmap_attach_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c: scope_hint: In function 'glamor_pixmap_attach_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_pixmap_attach_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c: scope_hint: In function 'glamor_pixmap_attach_fbo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_fbo.c: scope_hint: In function 'glamor_pixmap_attach_fbo'
#  728|   glamor_make_current(glamor_screen_private *glamor_priv)
#  729|   {
#  730|->     if (lastGLContext != glamor_priv->ctx.ctx) {
#  731|           lastGLContext = glamor_priv->ctx.ctx;
#  732|           glamor_priv->ctx.make_current(&glamor_priv->ctx);

Error: CLANG_WARNING: [#def230]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c:271:5: warning[deadcode.DeadStores]: Value stored to 'gamma' is never read
#  269|       cont = RTFContrast(port_priv->contrast);
#  270|       bright = RTFBrightness(port_priv->brightness);
#  271|->     gamma = (float) port_priv->gamma / 1000.0;
#  272|       uvcosf = RTFSaturation(port_priv->saturation) * cos(RTFHue(port_priv->hue));
#  273|       uvsinf = RTFSaturation(port_priv->saturation) * sin(RTFHue(port_priv->hue));

Error: CLANG_WARNING: [#def231]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c:309:34: warning[core.NullDereference]: Access to field 'fbo' results in a dereference of an undefined pointer value
#  307|   
#  308|       glActiveTexture(GL_TEXTURE0);
#  309|->     glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[0]->fbo->tex);
#  310|       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
#  311|       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Error: CLANG_WARNING: [#def232]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c:316:34: warning[core.NullDereference]: Access to field 'fbo' results in a dereference of an undefined pointer value
#  314|   
#  315|       glActiveTexture(GL_TEXTURE1);
#  316|->     glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[1]->fbo->tex);
#  317|       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
#  318|       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def233]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c: scope_hint: In function 'glamor_xv_render'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c:316:49: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'src_pixmap_priv[1]'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_priv.h:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'glamor_xv_render'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c: scope_hint: In function 'glamor_xv_render'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c: scope_hint: In function 'glamor_xv_render'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c:251:16: note: in expansion of macro 'REGION_NUM_RECTS'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c: scope_hint: In function 'glamor_xv_render'
#  314|   
#  315|       glActiveTexture(GL_TEXTURE1);
#  316|->     glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[1]->fbo->tex);
#  317|       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
#  318|       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Error: CLANG_WARNING: [#def234]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c:323:34: warning[core.NullDereference]: Access to field 'fbo' results in a dereference of an undefined pointer value
#  321|   
#  322|       glActiveTexture(GL_TEXTURE2);
#  323|->     glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[2]->fbo->tex);
#  324|       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
#  325|       glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Error: CLANG_WARNING: [#def235]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c:425:5: warning[deadcode.DeadStores]: Value stored to 's2offset' is never read
#  423|       BoxRec full_box, half_box;
#  424|   
#  425|->     s2offset = s3offset = srcPitch2 = 0;
#  426|   
#  427|       if (!port_priv->src_pix[0] ||

Error: CLANG_WARNING: [#def236]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c:425:16: warning[deadcode.DeadStores]: Although the value stored to 's3offset' is used in the enclosing expression, the value is never actually read from 's3offset'
#  423|       BoxRec full_box, half_box;
#  424|   
#  425|->     s2offset = s3offset = srcPitch2 = 0;
#  426|   
#  427|       if (!port_priv->src_pix[0] ||

Error: CLANG_WARNING: [#def237]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glamor/glamor_xv.c:425:27: warning[deadcode.DeadStores]: Although the value stored to 'srcPitch2' is used in the enclosing expression, the value is never actually read from 'srcPitch2'
#  423|       BoxRec full_box, half_box;
#  424|   
#  425|->     s2offset = s3offset = srcPitch2 = 0;
#  426|   
#  427|       if (!port_priv->src_pix[0] ||

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

Error: CLANG_WARNING: [#def239]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def240]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glx/glxcmds.c: scope_hint: In function 'validGlxFBConfigForWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def241]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glx/glxcmds.c:988:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  986|           assert(p == GLX_VIS_CONFIG_TOTAL);
#  987|           if (client->swapped) {
#  988|->             __GLX_SWAP_INT_ARRAY(buf, p);
#  989|           }
#  990|           WriteToClient(client, __GLX_SIZE_CARD32 * p, buf);

Error: CLANG_WARNING: [#def242]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glx/glxcmds.c:1112:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1110|   
# 1111|           if (client->swapped) {
# 1112|->             __GLX_SWAP_INT_ARRAY(buf, __GLX_FBCONFIG_ATTRIBS_LENGTH);
# 1113|           }
# 1114|           WriteToClient(client, __GLX_SIZE_CARD32 * __GLX_FBCONFIG_ATTRIBS_LENGTH,

Error: CLANG_WARNING: [#def243]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glx/glxcmds.c:1689:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1687|           __GLX_SWAP_INT(&reply.n);
# 1688|           WriteToClient(client, sz_xGLXQueryContextInfoEXTReply, &reply);
# 1689|->         __GLX_SWAP_INT_ARRAY((int *) sendBuf, length);
# 1690|           WriteToClient(client, length << 2, sendBuf);
# 1691|       }

Error: CLANG_WARNING: [#def244]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glx/glxcmds.c:1925:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1923|           __GLX_SWAP_INT(&reply.numAttribs);
# 1924|           WriteToClient(client, sz_xGLXGetDrawableAttributesReply, &reply);
# 1925|->         __GLX_SWAP_INT_ARRAY((int *) attributes, length);
# 1926|           WriteToClient(client, length << 2, attributes);
# 1927|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def245]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glx/glxdricommon.c: scope_hint: In function 'createModeFromConfig'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glx/glxdricommon.c:132:23: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'config'
#  130|       config = calloc(1, sizeof *config);
#  131|   
#  132|->     config->driConfig = driConfig;
#  133|   
#  134|       i = 0;

Error: CLANG_WARNING: [#def246]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def247]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def248]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: COMPILER_WARNING (CWE-1164): [#def249]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glx/indirect_dispatch_swap.c:85:1: warning[-Wunused-function]: 'bswap_CARD64' defined but not used
#   85 | bswap_CARD64(const void *src)
#      | ^~~~~~~~~~~~
#   83|   
#   84|   static GLsync
#   85|-> bswap_CARD64(const void *src)
#   86|   {
#   87|       union {

Error: CLANG_WARNING: [#def250]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glx/indirect_dispatch_swap.c:187:5: warning[deadcode.DeadStores]: Value stored to 'pc' is never read
#  185|           __glXForceCurrent(cl, bswap_CARD32(&req->contextTag), &error);
#  186|   
#  187|->     pc += __GLX_SINGLE_HDR_SIZE;
#  188|       if (cx != NULL) {
#  189|           glEndList();

Error: CLANG_WARNING: [#def251]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/glx/indirect_dispatch_swap.c:1801:5: warning[deadcode.DeadStores]: Value stored to 'pc' is never read
# 1799|           __glXForceCurrent(cl, bswap_CARD32(&req->contextTag), &error);
# 1800|   
# 1801|->     pc += __GLX_SINGLE_HDR_SIZE;
# 1802|       if (cx != NULL) {
# 1803|           GLenum retval;

Error: CLANG_WARNING: [#def252]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def253]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def254]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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-688): [#def255]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxcompat.c: scope_hint: In function ‘dmxVDLDisplayEntry’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxcompat.c:104:10: warning[-Wanalyzer-null-argument]: use of NULL ‘pt’ where non-null expected
/usr/include/features.h:511: included_from: Included from here.
/usr/include/bits/libc-header-start.h:33: included_from: Included from here.
/usr/include/stdint.h:26: included_from: Included from here.
/usr/lib/gcc/x86_64-redhat-linux/14/include/stdint.h:9: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:81: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/os.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxcompat.c:45: included_from: Included from here.
/usr/include/stdlib.h:215:17: note: argument 1 of ‘strtol’ must be non-null
#  102|       *len = strlen(name);
#  103|   
#  104|->     *x = strtol(pt, &end, 10);
#  105|       *y = strtol(end, &end, 10);
#  106|       *xorig = strtol(end, &end, 10);

Error: COMPILER_WARNING (CWE-1041): [#def256]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxconfig.c:75:26: warning[-Wredundant-decls]: redundant redeclaration of ‘dmxConfigEntry’
#   75 | extern DMXConfigEntryPtr dmxConfigEntry;
#      |                          ^~~~~~~~~~~~~~
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxconfig.c:45: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxparse.h:201:26: note: previous declaration of ‘dmxConfigEntry’ with type ‘DMXConfigEntryPtr’ {aka ‘struct _DMXConfigEntry *’}
#  201 | extern DMXConfigEntryPtr dmxConfigEntry;
#      |                          ^~~~~~~~~~~~~~
#   73|   } DMXConfigCmd, *DMXConfigCmdPtr;
#   74|   
#   75|-> extern DMXConfigEntryPtr dmxConfigEntry;
#   76|   static DMXConfigCmd dmxConfigCmd;
#   77|   

Error: CLANG_WARNING: [#def257]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxconfig.c:307:39: warning[core.DivideZero]: Division by zero
#  305|           }
#  306|           else {                  /* Tile top to bottom, then left to right */
#  307|->             if (!((dmxNumScreens - 1) % w->ywall)) {
#  308|                   dmxScreen->where = PosRightOf;
#  309|                   dmxScreen->whereRefScreen = edge;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def258]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxconfig.c: scope_hint: In function ‘dmxConfigCopyFromOption’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxconfig.c:348:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘argv’
#  346|           }
#  347|       }
#  348|->     argv[0] = NULL;
#  349|       ProcessCommandLine(argc + 1, argv);
#  350|       free(argv);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def259]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxconfig.c:348:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘argv’
#  346|           }
#  347|       }
#  348|->     argv[0] = NULL;
#  349|       ProcessCommandLine(argc + 1, argv);
#  350|       free(argv);

Error: CLANG_WARNING: [#def260]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxconfig.c:348:13: warning[core.NullDereference]: Array access (from variable 'argv') results in a null pointer dereference
#  346|           }
#  347|       }
#  348|->     argv[0] = NULL;
#  349|       ProcessCommandLine(argc + 1, argv);
#  350|       free(argv);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def261]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxparse.c:625:18: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dmxConfigAlloc(32)’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxparse.c: scope_hint: In function ‘dmxConfigEntryVirtual’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxparse.c: scope_hint: In function ‘dmxConfigEntryVirtual’
#  623|       DMXConfigEntryPtr pEntry = dmxConfigAlloc(sizeof(*pEntry));
#  624|   
#  625|->     pEntry->type = type;
#  626|       switch (type) {
#  627|       case dmxConfigComment:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c: scope_hint: In function ‘yyparse’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:501:21: warning[-Wanalyzer-malloc-leak]: leak of ‘yyptr’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:99:40: note: in definition of macro ‘YY_CAST’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:487:25: note: in expansion of macro ‘YYMALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1129:20: note: in expansion of macro ‘YYSTACK_ALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1177:7: note: in expansion of macro ‘YYDPRINTF’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1199:17: note: in expansion of macro ‘YYTRANSLATE’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1223:3: note: in expansion of macro ‘YY_SYMBOL_PRINT’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:99:40: note: in definition of macro ‘YY_CAST’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:487:25: note: in expansion of macro ‘YYMALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1129:20: note: in expansion of macro ‘YYSTACK_ALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:546:9: note: in expansion of macro ‘YYCOPY’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1132:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1177:7: note: in expansion of macro ‘YYDPRINTF’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1223:3: note: in expansion of macro ‘YY_SYMBOL_PRINT’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1088:3: note: in expansion of macro ‘YY_STACK_PRINT’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:99:40: note: in definition of macro ‘YY_CAST’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:487:25: note: in expansion of macro ‘YYMALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1129:20: note: in expansion of macro ‘YYSTACK_ALLOC’
#  499|   #  endif
#  500|   #  ifndef YYMALLOC
#  501|-> #   define YYMALLOC malloc
#  502|   #   if ! defined malloc && ! defined EXIT_SUCCESS
#  503|   void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def263]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:561:7: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘yyss’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:546:9: note: in expansion of macro ‘YYCOPY’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1132:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:546:9: note: in expansion of macro ‘YYCOPY’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1132:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:546:9: note: in expansion of macro ‘YYCOPY’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/parser.c:1132:9: note: in expansion of macro ‘YYSTACK_RELOCATE’
#  559|   #  if defined __GNUC__ && 1 < __GNUC__
#  560|   #   define YYCOPY(Dst, Src, Count) \
#  561|->       __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  562|   #  else
#  563|   #   define YYCOPY(Dst, Src, Count)              \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/scanner.c: scope_hint: In function ‘yy_get_next_buffer’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/scanner.c:1133:18: warning[-Wanalyzer-malloc-leak]: leak of ‘*b.yy_ch_buf’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/scanner.c: scope_hint: In function ‘yy_get_next_buffer’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/scanner.c: scope_hint: In function ‘yy_get_next_buffer’
# 1131|   				else
# 1132|   					b->yy_buf_size *= 2;
# 1133|-> 
# 1134|   				b->yy_ch_buf = (char *)
# 1135|   					/* Include room in for 2 EOB chars. */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/scanner.c: scope_hint: In function ‘yy_create_buffer’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/scanner.c:1458:12: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(64)’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/scanner.c: scope_hint: In function ‘yy_create_buffer’
# 1456|   	 * we need to put in 2 end-of-buffer characters.
# 1457|   	 */
# 1458|-> 	b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2)  );
# 1459|   	if ( ! b->yy_ch_buf )
# 1460|   		YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/scanner.c: scope_hint: In function ‘yy_scan_buffer’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/scanner.c:1712:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(n)’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/scanner.c: scope_hint: In function ‘yy_scan_buffer’
# 1710|   	for ( i = 0; i < _yybytes_len; ++i )
# 1711|   		buf[i] = yybytes[i];
# 1712|-> 
# 1713|   	buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
# 1714|   

Error: CPPCHECK_WARNING: [#def267]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/xdmxconfig.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-1041): [#def268]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/xdmxconfig.c:68:26: warning[-Wredundant-decls]: redundant redeclaration of ‘dmxConfigEntry’
#   68 | extern DMXConfigEntryPtr dmxConfigEntry;
#      |                          ^~~~~~~~~~~~~~
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/xdmxconfig.c:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/dmxparse.h:201:26: note: previous declaration of ‘dmxConfigEntry’ with type ‘DMXConfigEntryPtr’ {aka ‘struct _DMXConfigEntry *’}
#  201 | extern DMXConfigEntryPtr dmxConfigEntry;
#      |                          ^~~~~~~~~~~~~~
#   66|   #define DMX_CANVAS_HEIGHT 500
#   67|   
#   68|-> extern DMXConfigEntryPtr dmxConfigEntry;
#   69|   static DMXConfigVirtualPtr dmxConfigCurrent, dmxConfigNewVirtual;
#   70|   static DMXConfigDisplayPtr dmxConfigCurrentDisplay, dmxConfigNewDisplay;

Error: CLANG_WARNING: [#def269]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/config/xdmxconfig.c:313:20: warning[core.NullDereference]: Access to field 'rootXOrigin' results in a dereference of a null pointer (loaded from field 'display')
#  311|           gc = (pt->display == dmxConfigCurrentDisplay
#  312|                 ? dmxConfigGCHL : dmxConfigGC);
#  313|->         x = scalex(pt->display->rootXOrigin);
#  314|           y = scaley(pt->display->rootYOrigin);
#  315|           w = scalex(pt->display->scrnWidth);

Error: COMPILER_WARNING (CWE-457): [#def270]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.c: scope_hint: In function 'ProcDMXGetInputAttributes'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.c:817:26: warning[-Wmaybe-uninitialized]: 'attr.inputType' may be used uninitialized
#  817 |         .inputType = attr.inputType,
#      |                          ^
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.c:802:27: note: 'attr.inputType' was declared here
#  802 |     DMXInputAttributesRec attr;
#      |                           ^
#  815|           .length = bytes_to_int32(paddedLength),
#  816|   
#  817|->         .inputType = attr.inputType,
#  818|           .physicalScreen = attr.physicalScreen,
#  819|           .physicalId = attr.physicalId,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def271]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c: scope_hint: In function ‘dmxConnectionBlockCallback’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:143:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘found’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:41: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:367:41: note: in expansion of macro ‘_MAXSCREENSALLOCF’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:120:5: note: in expansion of macro ‘MAXSCREENSALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXsrv.h:9: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:49: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:143:9: note: in expansion of macro ‘FOR_NSCREENS’
#  141|           dmxLog(dmxInfo, "%d screens configured with Xinerama (%d %d)\n",
#  142|                  PanoramiXNumScreens, PanoramiXPixWidth, PanoramiXPixHeight);
#  143|->         FOR_NSCREENS(i) found[i] = FALSE;
#  144|       }
#  145|       else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def272]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:193:38: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘found’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:367:41: note: in expansion of macro ‘_MAXSCREENSALLOCF’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:120:5: note: in expansion of macro ‘MAXSCREENSALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:185:17: note: in expansion of macro ‘FOR_NSCREENS’
#  191|                           if (pvi->depth == depth->depth &&
#  192|                               pvi->class == visual->class)
#  193|->                             found[k] = TRUE;
#  194|                       }
#  195|                       else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def273]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:197:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘found’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:367:41: note: in expansion of macro ‘_MAXSCREENSALLOCF’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:120:5: note: in expansion of macro ‘MAXSCREENSALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:185:17: note: in expansion of macro ‘FOR_NSCREENS’
#  195|                       else {
#  196|                           /* Screen #k is detatched, so it always succeeds */
#  197|->                         found[k] = TRUE;
#  198|                       }
#  199|                   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def274]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:214:28: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘found’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:367:41: note: in expansion of macro ‘_MAXSCREENSALLOCF’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:120:5: note: in expansion of macro ‘MAXSCREENSALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro ‘FOR_NSCREENS_FORWARD’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcb.c:213:9: note: in expansion of macro ‘FOR_NSCREENS’
#  212|   
#  213|           FOR_NSCREENS(i) {
#  214|->             fatal |= !found[i];
#  215|               if (!found[i]) {
#  216|                   dmxLog(dmxError,

Error: COMPILER_WARNING: [#def275]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcursor.c:206:17: warning[-Walloc-size-larger-than=]: argument 2 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807
#  206 |     int *list = xallocarray(dmxNumScreens, sizeof(*list));
#      |                 ^
/usr/include/stdlib.h: scope_hint: In function 'InitOutput'
/usr/include/stdlib.h:701:14: note: in a call to allocation function 'reallocarray' declared here
#  701 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
#      |              ^
#  204|   dmxSLCreate(void)
#  205|   {
#  206|->     int *list = xallocarray(dmxNumScreens, sizeof(*list));
#  207|       int i;
#  208|   

Error: CLANG_WARNING: [#def276]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxcursor.c:316:13: warning[deadcode.DeadStores]: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i'
#  314|        * configuration information. */
#  315|       screensLeft = dmxSLCreate();
#  316|->     while ((i = dmxSLFindNext(screensLeft)) >= 0) {
#  317|           while (dmxTryComputeScreenOrigins(screensLeft));
#  318|           if ((i = dmxSLFindNext(screensLeft)) >= 0) {

Error: CLANG_WARNING: [#def277]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1167:10: warning[deadcode.DeadStores]: Although the value stored to 'beret' is used in the enclosing expression, the value is never actually read from 'beret'
# 1165|   
# 1166|       /* First we must create the glyph set on the backend. */
# 1167|->     if ((beret = dmxBECreateGlyphSet(scrnNum, glyphSet)) != Success) {
# 1168|           dmxLog(dmxWarning,
# 1169|                  "\tdmxBERestoreRenderGlyph failed to create glyphset!\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def278]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c: scope_hint: In function ‘dmxBERestoreRenderGlyph’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1203:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘gids’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/picturestr.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:65: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:46: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.h:114:22: note: in expansion of macro ‘GlyphSetGetPrivate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1149:33: note: in expansion of macro ‘DMX_GET_GLYPH_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gcstruct.h:56: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:57: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c: scope_hint: In function ‘dmxBERestoreRenderGlyph’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.h:114:22: note: in expansion of macro ‘GlyphSetGetPrivate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1149:33: note: in expansion of macro ‘DMX_GET_GLYPH_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1188:12: note: in expansion of macro ‘xallocarray’
# 1201|   
# 1202|           /* First lets put the data into gids */
# 1203|->         gids[ctr] = gr->signature;
# 1204|   
# 1205|           /* Next do the glyphs data structures */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def279]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1206:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘glyphs’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.h:114:22: note: in expansion of macro ‘GlyphSetGetPrivate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1149:33: note: in expansion of macro ‘DMX_GET_GLYPH_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c: scope_hint: In function ‘dmxBERestoreRenderGlyph’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.h:114:22: note: in expansion of macro ‘GlyphSetGetPrivate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1149:33: note: in expansion of macro ‘DMX_GET_GLYPH_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1189:14: note: in expansion of macro ‘xallocarray’
# 1204|   
# 1205|           /* Next do the glyphs data structures */
# 1206|->         glyphs[ctr].width = gl->info.width;
# 1207|           glyphs[ctr].height = gl->info.height;
# 1208|           glyphs[ctr].x = gl->info.x;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def280]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1214:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘pos’ where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.h:114:22: note: in expansion of macro ‘GlyphSetGetPrivate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1149:33: note: in expansion of macro ‘DMX_GET_GLYPH_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c: scope_hint: In function ‘dmxBERestoreRenderGlyph’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.h:114:22: note: in expansion of macro ‘GlyphSetGetPrivate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxextension.c:1149:33: note: in expansion of macro ‘DMX_GET_GLYPH_PRIV’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
# 1212|   
# 1213|           /* Copy the images from the DIX's data into the buffer */
# 1214|->         memcpy(pos, gl + 1, gl->size - sizeof(gl->info));
# 1215|           pos += gl->size - sizeof(gl->info);
# 1216|           ctr++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c: scope_hint: In function ‘dmxBELoadFont’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:72:5: warning[-Wanalyzer-malloc-leak]: leak of ‘dmxGetFontPath(&npaths)’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:43: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:367:41: note: in expansion of macro ‘_MAXSCREENSALLOCF’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:456:9: note: in expansion of macro ‘MAXSCREENSALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.h:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:45: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c: scope_hint: In function ‘dmxBELoadFont’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gc.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gcstruct.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:57: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c: scope_hint: In function ‘dmxBELoadFont’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gc.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:76:10: note: in expansion of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:310:19: note: in expansion of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c: scope_hint: In function ‘dmxBELoadFont’
#   70|       int len, l, i;
#   71|   
#   72|->     GetFontPath(serverClient, npaths, &len, &paths);
#   73|   
#   74|       newfp = malloc(*npaths + len);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def282]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c: scope_hint: In function ‘dmxGetFontPath’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:78:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘newfp’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memmove’ must be non-null
#   76|       fp = xallocarray(*npaths, sizeof(*fp));
#   77|   
#   78|->     memmove(newfp, paths + 1, *npaths + len - 1);
#   79|       l = *paths;
#   80|       for (i = 0; i < *npaths; i++) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def283]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:81:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fp’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:76:10: note: in expansion of macro ‘xallocarray’
#   79|       l = *paths;
#   80|       for (i = 0; i < *npaths; i++) {
#   81|->         fp[i] = (char *) c;
#   82|           c += l;
#   83|           l = *c;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:92:12: warning[-Wanalyzer-malloc-leak]: leak of ‘newfp’
#   90|   #endif
#   91|   
#   92|->     return fp;
#   93|   }
#   94|   

Error: CLANG_WARNING: [#def285]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:92:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'c'
#   90|   #endif
#   91|   
#   92|->     return fp;
#   93|   }
#   94|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def286]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c: scope_hint: In function ‘dmxBELoadFont’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:317:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘goodfps’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:367:41: note: in expansion of macro ‘_MAXSCREENSALLOCF’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:456:9: note: in expansion of macro ‘MAXSCREENSALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c: scope_hint: In function ‘dmxBELoadFont’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c: scope_hint: In function ‘dmxBELoadFont’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:310:19: note: in expansion of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:310:19: note: in expansion of macro ‘xallocarray’
#  315|   
#  316|           for (i = 0; i < npaths; i++)
#  317|->             if (!(goodfps[i] = dmxCheckFontPathElement(dmxScreen, fp[i])))
#  318|                   dmxLog(dmxError, "    %s\n", fp[i]);
#  319|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def287]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:332:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘goodfps’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:367:41: note: in expansion of macro ‘_MAXSCREENSALLOCF’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:456:9: note: in expansion of macro ‘MAXSCREENSALLOC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c: scope_hint: In function ‘dmxBELoadFont’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c: scope_hint: In function ‘dmxBELoadFont’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:310:19: note: in expansion of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.c:310:19: note: in expansion of macro ‘xallocarray’
#  330|   
#  331|               for (i = 0; i < npaths; i++)
#  332|->                 if (goodfps[i]) {
#  333|                       len += strlen(fp[i]) + 1;
#  334|                       newnpaths++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def288]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c: scope_hint: In function ‘dmxChangeGC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c:285:31: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c:43: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c:202:28: note: in expansion of macro ‘DMX_GET_GC_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gcstruct.h:56: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:57: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c:41: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c: scope_hint: In function ‘dmxChangeGC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c:202:28: note: in expansion of macro ‘DMX_GET_GC_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.h:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c:46: included_from: Included from here.
#  283|   
#  284|               pFontPriv = FontGetPrivate(pGC->font, dmxFontPrivateIndex);
#  285|->             v.font = pFontPriv->font[pScreen->myNum]->fid;
#  286|           }
#  287|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def289]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c: scope_hint: In function ‘dmxChangeClip’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c:404:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pRects’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c:385:28: note: in expansion of macro ‘DMX_GET_GC_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c: scope_hint: In function ‘dmxChangeClip’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c:385:28: note: in expansion of macro ‘DMX_GET_GC_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c: scope_hint: In function ‘dmxChangeClip’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c:400:22: note: in expansion of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c:400:22: note: in expansion of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxgc.c: scope_hint: In function ‘dmxChangeClip’
#  402|   
#  403|               for (i = 0; i < nRects; i++) {
#  404|->                 pRects[i].x = pBox[i].x1;
#  405|                   pRects[i].y = pBox[i].y1;
#  406|                   pRects[i].width = pBox[i].x2 - pBox[i].x1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def290]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxinit.c: scope_hint: In function ‘InitOutput’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxinit.c:732:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘configprivs’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gc.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gcstruct.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:57: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxinit.c:44: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxinit.c:722:27: note: in expansion of macro ‘xallocarray’
#  730|                   for (j = 0; j < nconfigs; j++) {
#  731|   
#  732|->                     configprivs[j] = (dmxGlxVisualPrivate *)
#  733|                           malloc(sizeof(dmxGlxVisualPrivate));
#  734|                       configprivs[j]->x_visual_depth = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def291]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxinit.c:734:52: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(8)’
#  732|                       configprivs[j] = (dmxGlxVisualPrivate *)
#  733|                           malloc(sizeof(dmxGlxVisualPrivate));
#  734|->                     configprivs[j]->x_visual_depth = 0;
#  735|                       configprivs[j]->x_visual_class = 0;
#  736|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxinit.c:781:5: warning[-Wanalyzer-malloc-leak]: leak of ‘configprivs’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxinit.c:722:27: note: in expansion of macro ‘xallocarray’
#  779|   
#  780|       /* Initialized things that need timer hooks */
#  781|->     dmxStatInit();
#  782|       dmxSyncInit();              /* Calls RegisterBlockAndWakeupHandlers */
#  783|   }

Error: CLANG_WARNING: [#def293]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxlog.c:126:17: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
#  124|             DMXScreenInfo * dmxScreen)
#  125|   {
#  126|->     const char *type = "??";
#  127|   
#  128|       switch (logLevel) {

Error: CLANG_WARNING: [#def294]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c:295:54: warning[unix.Malloc]: Potential leak of memory pointed to by 'glyphPriv'
#  293|               return BadAlloc;
#  294|           glyphPriv->glyphSets = NULL;
#  295|->         MAXSCREENSALLOC_RETURN(glyphPriv->glyphSets, BadAlloc);
#  296|           DMX_SET_GLYPH_PRIV(glyphSet, glyphPriv);
#  297|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def295]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c: scope_hint: In function ‘dmxChangePictureClip’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c:933:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pRect’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:65: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c:42: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c:902:27: note: in expansion of macro ‘GetPictureScreen’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gcstruct.h:56: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:57: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c: scope_hint: In function ‘dmxChangePictureClip’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c:902:27: note: in expansion of macro ‘GetPictureScreen’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c:44: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c:903:32: note: in expansion of macro ‘DMX_GET_PICT_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c: scope_hint: In function ‘dmxChangePictureClip’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c:903:32: note: in expansion of macro ‘DMX_GET_PICT_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c: scope_hint: In function ‘dmxChangePictureClip’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxpict.c:930:30: note: in expansion of macro ‘xallocarray’
#  931|   
#  932|               while (nBox--) {
#  933|->                 pRect->x = pBox->x1;
#  934|                   pRect->y = pBox->y1;
#  935|                   pRect->width = pBox->x2 - pBox->x1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def296]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxprop.c: scope_hint: In function ‘dmxPropertyCheckOtherServers’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxprop.c:175:37: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘list’
#  173|                                           tp.value, dmxScreen->name);
#  174|                       list = reallocarray(list, ++count, sizeof(*list));
#  175|->                     list[count - 1] = malloc(tp.nitems + 2);
#  176|                       strncpy(list[count - 1], (char *) tp.value, tp.nitems + 1);
#  177|                   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def297]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxprop.c:176:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*list’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null
#  174|                       list = reallocarray(list, ++count, sizeof(*list));
#  175|                       list[count - 1] = malloc(tp.nitems + 2);
#  176|->                     strncpy(list[count - 1], (char *) tp.value, tp.nitems + 1);
#  177|                   }
#  178|                   XFree(tp.value);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def298]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxprop.c:176:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(tp.nitems + 2)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null
#  174|                       list = reallocarray(list, ++count, sizeof(*list));
#  175|                       list[count - 1] = malloc(tp.nitems + 2);
#  176|->                     strncpy(list[count - 1], (char *) tp.value, tp.nitems + 1);
#  177|                   }
#  178|                   XFree(tp.value);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def299]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c: scope_hint: In function ‘dmxDoSetShape’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c:974:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pRect’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c:43: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c:961:30: note: in expansion of macro ‘DMX_GET_WINDOW_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gcstruct.h:56: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:57: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c:41: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c: scope_hint: In function ‘dmxDoSetShape’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c:961:30: note: in expansion of macro ‘DMX_GET_WINDOW_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c: scope_hint: In function ‘dmxDoSetShape’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c:972:30: note: in expansion of macro ‘xallocarray’
#  972|           pRectFirst = pRect = xallocarray(nRect, sizeof(*pRect));
#  973|           while (nBox--) {
#  974|->             pRect->x = pBox->x1;
#  975|               pRect->y = pBox->y1;
#  976|               pRect->width = pBox->x2 - pBox->x1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def300]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c:997:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pRect’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c:961:30: note: in expansion of macro ‘DMX_GET_WINDOW_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c: scope_hint: In function ‘dmxDoSetShape’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c:961:30: note: in expansion of macro ‘DMX_GET_WINDOW_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c: scope_hint: In function ‘dmxDoSetShape’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxwindow.c:995:30: note: in expansion of macro ‘xallocarray’
#  995|           pRectFirst = pRect = xallocarray(nRect, sizeof(*pRect));
#  996|           while (nBox--) {
#  997|->             pRect->x = pBox->x1;
#  998|               pRect->y = pBox->y1;
#  999|               pRect->width = pBox->x2 - pBox->x1;

Error: CPPCHECK_WARNING: [#def301]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/dmxaddinput.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def302]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/dmxaddscreen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def303]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/dmxinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def304]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/dmxreconfig.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def305]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/dmxwininfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def306]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/ev.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: COMPILER_WARNING (CWE-252): [#def307]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/ev.c: scope_hint: In function ‘main’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/ev.c:122:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  122 |                 write(fd, &event, sizeof(event));
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  120|                   event.code = i;
#  121|                   event.value = 0;
#  122|->                 write(fd, &event, sizeof(event));
#  123|               }
#  124|   

Error: CPPCHECK_WARNING: [#def308]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/res.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def309]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/xbell.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def310]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/xinput.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def311]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/examples/xled.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def312]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:288:16: warning[unix.Malloc]: Potential leak of memory pointed to by 'glxc'
#  286|       glxc->real_ids = xallocarray(num_be_screens, sizeof(XID));
#  287|       if (!glxc->real_ids) {
#  288|->         return BadAlloc;
#  289|       }
#  290|       glxc->real_vids = xallocarray(num_be_screens, sizeof(XID));

Error: CLANG_WARNING: [#def313]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:298:9: warning[deadcode.DeadStores]: Value stored to 'pScreen' is never read
#  296|           int sent = 0;
#  297|   
#  298|->         pScreen = screenInfo.screens[screen];
#  299|           pGlxScreen = &__glXActiveScreens[screen];
#  300|           dmxScreen = &dmxScreens[screen];

Error: CLANG_WARNING: [#def314]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:299:9: warning[deadcode.DeadStores]: Value stored to 'pGlxScreen' is never read
#  297|   
#  298|           pScreen = screenInfo.screens[screen];
#  299|->         pGlxScreen = &__glXActiveScreens[screen];
#  300|           dmxScreen = &dmxScreens[screen];
#  301|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def315]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘CreateContext’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:307:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gc.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gcstruct.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmx.h:57: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:35: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:290:23: note: in expansion of macro ‘xallocarray’
#  305|                                            screen);
#  306|   
#  307|->             be_fbconfigId = beFBConfig->id;
#  308|           }
#  309|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def316]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘MakeCurrent’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:904:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘glxc’
#  902|   
#  903|                   new_reply.writeVid =
#  904|->                     (glxc->pFBConfig ? glxc->pFBConfig->id : vid);
#  905|                   new_reply.writeType = GLX_WINDOW_TYPE;
#  906|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def317]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:937:48: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘glxc’
#  935|                    ** Check if pixmap and context are similar.
#  936|                    */
#  937|->                 if (pGlxPixmap->pScreen != glxc->pScreen ||
#  938|                       pGlxPixmap->pGlxVisual != glxc->pGlxVisual) {
#  939|                       client->errorValue = drawId;

Error: CLANG_WARNING: [#def318]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:971:38: warning[core.NullDereference]: Access to field 'id' results in a dereference of a null pointer (loaded from field 'pGlxFBConfig')
#  969|   
#  970|                   pDraw = pGlxWindow->pDraw;
#  971|->                 new_reply.writeVid = pGlxWindow->pGlxFBConfig->id;
#  972|                   new_reply.writeType = GLX_GLXWINDOW_TYPE;
#  973|               }

Error: CLANG_WARNING: [#def319]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:989:38: warning[core.NullDereference]: Access to field 'id' results in a dereference of a null pointer (loaded from field 'pFBConfig')
#  987|   
#  988|                   pDraw = (DrawablePtr) pGlxPbuffer;
#  989|->                 new_reply.writeVid = pGlxPbuffer->pFBConfig->id;
#  990|                   new_reply.writeType = GLX_PBUFFER_TYPE;
#  991|               }

Error: CLANG_WARNING: [#def320]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1017:23: warning[core.NullDereference]: Access to field 'optional' results in a dereference of a null pointer (loaded from variable 'pReadWin')
# 1015|   
# 1016|                   pReadWin = (WindowPtr) pDraw;
# 1017|->                 vid = wVisual(pReadWin);
# 1018|   
# 1019|                   new_reply.readVid =

Error: GCC_ANALYZER_WARNING (CWE-476): [#def321]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1020:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘glxc’
# 1018|   
# 1019|                   new_reply.readVid =
# 1020|->                     (glxc->pFBConfig ? glxc->pFBConfig->id : vid);
# 1021|                   new_reply.readType = GLX_WINDOW_TYPE;
# 1022|   

Error: CLANG_WARNING: [#def322]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1052:48: warning[core.NullDereference]: Access to field 'pScreen' results in a dereference of a null pointer (loaded from variable 'glxc')
# 1050|                    ** Check if pixmap and context are similar.
# 1051|                    */
# 1052|->                 if (pReadGlxPixmap->pScreen != glxc->pScreen ||
# 1053|                       pReadGlxPixmap->pGlxVisual != glxc->pGlxVisual) {
# 1054|                       client->errorValue = readId;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def323]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1052:52: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘glxc’
# 1050|                    ** Check if pixmap and context are similar.
# 1051|                    */
# 1052|->                 if (pReadGlxPixmap->pScreen != glxc->pScreen ||
# 1053|                       pReadGlxPixmap->pGlxVisual != glxc->pGlxVisual) {
# 1054|                       client->errorValue = readId;

Error: CLANG_WARNING: [#def324]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1076:48: warning[core.NullDereference]: Access to field 'pScreen' results in a dereference of a null pointer (loaded from variable 'glxc')
# 1074|                    ** Check if GLX window and context are similar.
# 1075|                    */
# 1076|->                 if (pGlxReadWindow->pScreen != glxc->pScreen ||
# 1077|                       pGlxReadWindow->pGlxFBConfig != glxc->pFBConfig) {
# 1078|                       client->errorValue = readId;

Error: CLANG_WARNING: [#def325]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1083:37: warning[core.NullDereference]: Access to field 'id' results in a dereference of a null pointer (loaded from field 'pGlxFBConfig')
# 1081|   
# 1082|                   pReadDraw = pGlxReadWindow->pDraw;
# 1083|->                 new_reply.readVid = pGlxReadWindow->pGlxFBConfig->id;
# 1084|                   new_reply.readType = GLX_GLXWINDOW_TYPE;
# 1085|               }

Error: CLANG_WARNING: [#def326]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1093:49: warning[core.NullDereference]: Access to field 'pScreen' results in a dereference of a null pointer (loaded from variable 'glxc')
# 1091|                                       DixUnknownAccess);
# 1092|               if (pGlxReadPbuffer) {
# 1093|->                 if (pGlxReadPbuffer->pScreen != glxc->pScreen ||
# 1094|                       pGlxReadPbuffer->pFBConfig != glxc->pFBConfig) {
# 1095|                       client->errorValue = drawId;

Error: CLANG_WARNING: [#def327]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1100:37: warning[core.NullDereference]: Access to field 'id' results in a dereference of a null pointer (loaded from field 'pFBConfig')
# 1098|   
# 1099|                   pReadDraw = (DrawablePtr) pGlxReadPbuffer;
# 1100|->                 new_reply.readVid = pGlxReadPbuffer->pFBConfig->id;
# 1101|                   new_reply.readType = GLX_PBUFFER_TYPE;
# 1102|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def328]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘CreateGLXPixmap’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1955:47: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/os.h:87:52: note: in definition of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:37: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1940:22: note: in expansion of macro ‘DMX_GET_PIXMAP_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gcstruct.h:56: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘CreateGLXPixmap’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1940:22: note: in expansion of macro ‘DMX_GET_PIXMAP_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:41: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1945:26: note: in expansion of macro ‘__GLX_IS_VERSION_SUPPORTED’
# 1953|               be_new_req->glxCode = X_GLXCreatePixmap;
# 1954|               be_new_req->screen = DefaultScreen(dpy);
# 1955|->             be_new_req->fbconfig = be_FBConfig->id;
# 1956|               be_new_req->pixmap = (unsigned int) be_pixmap;
# 1957|               be_new_req->glxpixmap = (unsigned int) pGlxPixmap->be_xids[s];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def329]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1978:44: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/os.h:87:52: note: in definition of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1940:22: note: in expansion of macro ‘DMX_GET_PIXMAP_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘CreateGLXPixmap’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1940:22: note: in expansion of macro ‘DMX_GET_PIXMAP_PRIV’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1945:26: note: in expansion of macro ‘__GLX_IS_VERSION_SUPPORTED’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:1945:26: note: in expansion of macro ‘__GLX_IS_VERSION_SUPPORTED’
# 1976|               ext_req->vendorCode = X_GLXvop_CreateGLXPixmapWithConfigSGIX;
# 1977|               ext_req->screen = DefaultScreen(dpy);
# 1978|->             ext_req->fbconfig = be_FBConfig->id;
# 1979|               ext_req->pixmap = (unsigned int) be_pixmap;
# 1980|               ext_req->glxpixmap = (unsigned int) pGlxPixmap->be_xids[s];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def330]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘__glXUseXFont’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:2846:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/dmxfont.h:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:38: included_from: Included from here.
# 2844|           be_req->contextTag =
# 2845|               (glxc ? GetCurrentBackEndTag(cl, req->contextTag, s) : 0);
# 2846|->         be_req->font = pFontPriv->font[s]->fid;
# 2847|           be_req->first = req->first;
# 2848|           be_req->count = req->count;

Error: CLANG_WARNING: [#def331]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:3039:13: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 3037|               __GLX_DECLARE_SWAP_VARIABLES;
# 3038|               __GLX_DECLARE_SWAP_ARRAY_VARIABLES;
# 3039|->             __GLX_SWAP_INT_ARRAY((int *) buf, 2 * numAttribs);
# 3040|           }
# 3041|           WriteToClient(client, 2 * numAttribs * __GLX_SIZE_CARD32, buf);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def332]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘__glXQueryContext’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:3229:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sendBuf’
# 3227|       sendBuf = (int *) malloc(nReplyBytes);
# 3228|       pSendBuf = sendBuf;
# 3229|->     *pSendBuf++ = GLX_FBCONFIG_ID;
# 3230|       *pSendBuf++ = (int) (ctx->pFBConfig->id);
# 3231|       *pSendBuf++ = GLX_RENDER_TYPE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def333]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘__glXQueryContextInfoEXT’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:3281:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘sendBuf’
# 3279|       sendBuf = (int *) malloc(nReplyBytes);
# 3280|       pSendBuf = sendBuf;
# 3281|->     *pSendBuf++ = GLX_SHARE_CONTEXT_EXT;
# 3282|       *pSendBuf++ = (int) (ctx->share_id);
# 3283|       *pSendBuf++ = GLX_VISUAL_ID_EXT;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def334]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘__glXCreatePbuffer’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:3379:41: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:3349:28: note: in expansion of macro ‘xallocarray’
# 3377|           be_req->reqType = dmxScreen->glxMajorOpcode;
# 3378|           be_req->glxCode = X_GLXCreatePbuffer;
# 3379|->         be_req->screen = be_pGlxFBConfig->screen;
# 3380|           be_req->fbconfig = be_pGlxFBConfig->id;
# 3381|           be_req->pbuffer = be_xid;

Error: GCC_ANALYZER_WARNING (CWE-465): [#def335]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘__glXGetDrawableAttributes’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:3518:12: warning[-Wanalyzer-deref-before-check]: check of ‘pDraw’ for NULL after already dereferencing it
# 3516|           }
# 3517|   
# 3518|->         if (!pDraw) {
# 3519|               __glXWindow *pGlxWindow;
# 3520|   

Error: GCC_ANALYZER_WARNING (CWE-465): [#def336]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘__glXChangeDrawableAttributes’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:3680:12: warning[-Wanalyzer-deref-before-check]: check of ‘pDraw’ for NULL after already dereferencing it
# 3678|           }
# 3679|   
# 3680|->         if (!pDraw) {
# 3681|               __glXWindow *pGlxWindow;
# 3682|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def337]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c: scope_hint: In function ‘__glXSendLargeCommand’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmds.c:3814:20: warning[-Wanalyzer-infinite-loop]: infinite loop
# 3812|       requestNumber = 1;
# 3813|       data = cl->largeCmdBuf;
# 3814|->     while (dataLen > 0) {
# 3815|           amount = dataLen;
# 3816|           if (amount > maxSize) {

Error: CLANG_WARNING: [#def338]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxcmdsswap.c:354:9: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
#  352|           buf[p++] = pGlxVisual->transparentIndex;
#  353|   
#  354|->         __GLX_SWAP_INT_ARRAY(buf, __GLX_TOTAL_CONFIG);
#  355|           WriteToClient(client, __GLX_SIZE_CARD32 * __GLX_TOTAL_CONFIG, buf);
#  356|       }

Error: CLANG_WARNING: [#def339]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxscreens.c:182:22: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  180|           else {
#  181|               for (s = 0; s < __glXNumActiveScreens && supported; s++) {
#  182|->                 if (!strstr(be_extensions[s], ext)) {
#  183|                       supported = 0;
#  184|                   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def340]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxscreens.c: scope_hint: In function ‘__glXScreenInit’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/glxProxy/glxscreens.c:284:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘proxy_cfg’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  282|   
#  283|                       proxy_cfg = malloc(sizeof(__GLXFBConfig));
#  284|->                     memcpy(proxy_cfg, cfg, sizeof(__GLXFBConfig));
#  285|                       proxy_cfg->id = FakeClientID(0);
#  286|                       /* visual will be associated later in __glXGetFBConfigs */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def341]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxarg.c: scope_hint: In function ‘dmxArgCreate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxarg.c:65:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘a’
#   63|       dmxArg a = malloc(sizeof(*a));
#   64|   
#   65|->     a->argc = 0;
#   66|       a->argm = 2;
#   67|       a->argv = malloc(a->argm * sizeof(*a->argv));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def342]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxarg.c:68:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘malloc(16)’
#   66|       a->argm = 2;
#   67|       a->argv = malloc(a->argm * sizeof(*a->argv));
#   68|->     a->argv[0] = NULL;
#   69|       return a;
#   70|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxarg.c: scope_hint: In function ‘dmxArgParse’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxarg.c:123:13: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
#  121|           return a;
#  122|   
#  123|->     a->argv = (const char **)xstrtokenize(string, ",");
#  124|       if (a->argv)
#  125|           for (i = 0; a->argv[i] != NULL; i++);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def344]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxbackend.c: scope_hint: In function ‘dmxBackendCreatePrivate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxbackend.c:110:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘priv’
#  108|       myPrivate *priv = calloc(1, sizeof(*priv));
#  109|   
#  110|->     priv->dmxLocal = dmxLocal;
#  111|       return priv;
#  112|   }

Error: CLANG_WARNING: [#def345]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxbackend.c:435:42: warning[core.NullDereference]: Access to field 'rootX' results in a dereference of a null pointer (loaded from variable 'dmxScreen')
#  433|                          X.xmotion.window);
#  434|               if (!priv->relative || dmxInput->console) {
#  435|->                 int newX = X.xmotion.x - dmxScreen->rootX;
#  436|                   int newY = X.xmotion.y - dmxScreen->rootY;
#  437|   

Error: CLANG_WARNING: [#def346]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxconsole.c:652:5: warning[core.NullDereference]: Access to field 'CloseScreen' results in a dereference of a null pointer (loaded from variable 'last')
#  650|           dmxCloseConsole(last = priv);
#  651|   
#  652|->     DMX_UNWRAP(CloseScreen, last, pScreen);
#  653|       return pScreen->CloseScreen(pScreen);
#  654|   }

Error: CLANG_WARNING: [#def347]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxconsole.c:690:14: warning[core.NullDereference]: Access to field 'default_screen' results in a dereference of a null pointer (loaded from variable 'dpy')
#  688|       *yScale = 1.0;
#  689|   
#  690|->     screen = DefaultScreen(dpy);
#  691|       *consWidth = DisplayWidth(dpy, screen) * CONSOLE_NUM / CONSOLE_DEN;
#  692|       *consHeight = DisplayHeight(dpy, screen) * CONSOLE_NUM / CONSOLE_DEN;

Error: CLANG_WARNING: [#def348]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxevents.c:353:9: warning[deadcode.DeadStores]: Value stored to 'count' is never read
#  351|               xv->valuator0 = v[0];
#  352|           }
#  353|->         count = 2;
#  354|       }
#  355|       else {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def349]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxinputinit.c: scope_hint: In function ‘dmxInputCopyLocal’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxinputinit.c:777:5: warning[-Wanalyzer-null-argument]: use of NULL ‘dmxLocal’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  775|           dmxLog(dmxFatal, "DMXLocalInputInfoPtr: out of memory\n");
#  776|   
#  777|->     memcpy(dmxLocal, s, sizeof(*dmxLocal));
#  778|       dmxLocal->inputIdx = dmxInput->inputIdx;
#  779|       dmxLocal->sendsCore = dmxInput->core;

Error: CLANG_WARNING: [#def350]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxinputinit.c:777:5: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  775|           dmxLog(dmxFatal, "DMXLocalInputInfoPtr: out of memory\n");
#  776|   
#  777|->     memcpy(dmxLocal, s, sizeof(*dmxLocal));
#  778|       dmxLocal->inputIdx = dmxInput->inputIdx;
#  779|       dmxLocal->sendsCore = dmxInput->core;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def351]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxinputinit.c: scope_hint: In function ‘dmxInputInit’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxinputinit.c:1076:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dmxLocal’
# 1074|           DMXLocalInputInfoPtr dmxLocal = dmxInput->devs[i];
# 1075|   
# 1076|->         dmxLocal->pDevice = dmxAddDevice(dmxLocal);
# 1077|       }
# 1078|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def352]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxmotion.c: scope_hint: In function ‘dmxPointerPutMotionEvent’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxmotion.c:130:50: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*dmxLocal.history + (long unsigned int)(*dmxLocal.tail * (numAxes + 1)) * 8’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/input.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/inputstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxmotion.c:45: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/os.h:87:52: note: in definition of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/dmxmotion.c:116:29: note: in expansion of macro ‘xallocarray’
#  128|       }
#  129|   
#  130|->     dmxLocal->history[OFFSET(dmxLocal->tail, 0)] = time;
#  131|   
#  132|       /* Initialize the data from the known

Error: GCC_ANALYZER_WARNING (CWE-476): [#def353]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/usb-common.c: scope_hint: In function ‘usbCreatePrivate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/usb-common.c:482:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘priv’
#  480|       myPrivate *priv = calloc(1, sizeof(*priv));
#  481|   
#  482|->     priv->fd = -1;
#  483|       priv->pDevice = pDevice;
#  484|       return priv;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def354]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/usb-keyboard.c: scope_hint: In function ‘kbdUSBGetMap’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/dmx/input/usb-keyboard.c:420:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mapCopy’
#  418|   
#  419|       mapCopy = malloc(sizeof(map));
#  420|->     memcpy(mapCopy, map, sizeof(map));
#  421|   
#  422|       /* compute the modifier map */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def355]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyr.c: scope_hint: In function ‘ephyrProcessExpose’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyr.c:883:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  881|       xcb_expose_event_t *expose = (xcb_expose_event_t *)xev;
#  882|       KdScreenInfo *screen = screen_from_window(expose->window);
#  883|->     EphyrScrPriv *scrpriv = screen->driver;
#  884|   
#  885|       /* Wait for the last expose event in a series of cliprects

Error: GCC_ANALYZER_WARNING (CWE-476): [#def356]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyr.c: scope_hint: In function ‘ephyrProcessMouseMotion’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyr.c:912:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#  910|       }
#  911|   
#  912|->     if (ephyrCursorScreen != screen->pScreen) {
#  913|           EPHYR_LOG("warping mouse cursor. "
#  914|                     "cur_screen:%d, motion_screen:%d\n",

Error: GCC_ANALYZER_WARNING (CWE-476): [#def357]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyr.c: scope_hint: In function ‘ephyrProcessKeyRelease’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyr.c:1033:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1031|            && (key->state & XCB_MOD_MASK_SHIFT)))) {
# 1032|           KdScreenInfo *screen = screen_from_window(key->event);
# 1033|->         EphyrScrPriv *scrpriv = screen->driver;
# 1034|   
# 1035|           if (grabbed_screen != -1) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def358]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyr.c: scope_hint: In function ‘ephyrProcessConfigureNotify’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyr.c:1103:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1101|           (xcb_configure_notify_event_t *)xev;
# 1102|       KdScreenInfo *screen = screen_from_window(configure->window);
# 1103|->     EphyrScrPriv *scrpriv = screen->driver;
# 1104|   
# 1105|       if (!scrpriv ||

Error: GCC_ANALYZER_WARNING (CWE-476): [#def359]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyr.c: scope_hint: In function ‘MouseInit’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyr.c:1270:58: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*pi.driverPrivate’
# 1268|       pi->driverPrivate = (EphyrPointerPrivate *)
# 1269|           calloc(sizeof(EphyrPointerPrivate), 1);
# 1270|->     ((EphyrPointerPrivate *) pi->driverPrivate)->enabled = FALSE;
# 1271|       pi->nAxes = 3;
# 1272|       pi->nButtons = 32;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c: scope_hint: In function ‘translate_video_encodings’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:333:40: warning[-Wanalyzer-malloc-leak]: leak of ‘*encoding.name’
#  331|           encoding->name = strndup(xcb_xv_encoding_info_name(encoding_info),
#  332|                                    encoding_info->name_size);
#  333|->         encoding->width = encoding_info->width;
#  334|           encoding->height = encoding_info->height;
#  335|           encoding->rate.numerator = encoding_info->rate.numerator;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c: scope_hint: In function ‘translate_xv_attributes’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:380:57: warning[-Wanalyzer-malloc-leak]: leak of ‘*attribute.name’
#  378|   
#  379|           /* make sure atoms of attrs names are created in xephyr */
#  380|->         MakeAtom(xcb_xv_attribute_info_name(it.data), it.data->size, TRUE);
#  381|   
#  382|           xcb_xv_attribute_info_next(&it);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c: scope_hint: In function ‘translate_xv_image_formats’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:406:8: warning[-Wanalyzer-malloc-leak]: leak of ‘*adaptor.pImages’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:37: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:453:5: note: in expansion of macro ‘EPHYR_RETURN_VAL_IF_FAIL’
#  404|       adaptor->nImages = reply->num_formats;
#  405|       adaptor->pImages = calloc(reply->num_formats, sizeof(XvImageRec));
#  406|->     if (!adaptor->pImages) {
#  407|           free(reply);
#  408|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c: scope_hint: In function ‘ephyrXVPrivQueryHostAdaptors’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:505:20: warning[-Wanalyzer-malloc-leak]: leak of ‘strndup(xcb_xv_adaptor_info_name(cur_host_adaptor), (long unsigned int)*cur_host_adaptor.name_size)’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:453:5: note: in expansion of macro ‘EPHYR_RETURN_VAL_IF_FAIL’
#  503|               strndup(xcb_xv_adaptor_info_name(cur_host_adaptor),
#  504|                       cur_host_adaptor->name_size);
#  505|->         if (!a_this->adaptors[i].name)
#  506|               a_this->adaptors[i].name = strdup("Xephyr Video Overlay");
#  507|           base_port_id = cur_host_adaptor->base_id;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def364]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:529:51: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown>.pFormats + (long unsigned int)j * 4’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:453:5: note: in expansion of macro ‘EPHYR_RETURN_VAL_IF_FAIL’
#  527|               xcb_visualtype_t *visual =
#  528|                   xcb_aux_find_visual_by_id(xscreen, format[j].visual);
#  529|->             a_this->adaptors[i].pFormats[j].depth = format[j].depth;
#  530|               a_this->adaptors[i].pFormats[j].class = visual->_class;
#  531|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def365]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:546:54: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown>.pPortPrivates + (long unsigned int)j * 8’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:453:5: note: in expansion of macro ‘EPHYR_RETURN_VAL_IF_FAIL’
#  544|               port_priv->current_adaptor = &a_this->adaptors[i];
#  545|               port_priv->xv_priv = a_this;
#  546|->             a_this->adaptors[i].pPortPrivates[j].ptr = port_priv;
#  547|           }
#  548|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def366]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c: scope_hint: In function ‘ephyrHostXVPutImage’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:931:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rects’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrvideo.c:905:5: note: in expansion of macro ‘EPHYR_RETURN_VAL_IF_FAIL’
#  929|           rects = calloc(a_clip_rect_nums, sizeof(xcb_rectangle_t));
#  930|           for (i=0; i < a_clip_rect_nums; i++) {
#  931|->             rects[i].x = a_clip_rects[i].x1;
#  932|               rects[i].y = a_clip_rects[i].y1;
#  933|               rects[i].width = a_clip_rects[i].x2 - a_clip_rects[i].x1;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def367]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/hostx.c: scope_hint: In function ‘hostx_get_output_geometry’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/hostx.c:300:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘name’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_strncpy’ must be non-null
#  298|           name_len = xcb_randr_get_output_info_name_length(output_info_r);
#  299|           name = malloc(name_len + 1);
#  300|->         strncpy(name, (char*)xcb_randr_get_output_info_name(output_info_r), name_len);
#  301|           name[name_len] = '\0';
#  302|   

Error: CLANG_WARNING: [#def368]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/hostx.c:759:35: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  757|   
#  758|       if (getenv("XEPHYR_PAUSE")) {
#  759|->         HostX.damage_debug_msec = strtol(getenv("XEPHYR_PAUSE"), NULL, 0);
#  760|           EPHYR_DBG("pause is %li\n", HostX.damage_debug_msec);
#  761|       }

Error: CLANG_WARNING: [#def369]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kdrive.c:329:9: warning[deadcode.DeadStores]: Value stored to 'arg' is never read
#  327|   
#  328|       if (delim == 'x') {
#  329|->         arg = KdParseFindNext(arg, "x", save, &delim);
#  330|           if (save[0])
#  331|               screen->rate = atoi(save);

Error: CLANG_WARNING: [#def370]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kinput.c:1964:17: warning[unix.Malloc]: Potential leak of memory pointed to by 'ki'
# 1962|               }
# 1963|               else {
# 1964|->                 ErrorF("unrecognised device type!\n");
# 1965|                   return BadValue;
# 1966|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def371]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/vfb/InitOutput.c: scope_hint: In function ‘vfbInstallColormap.part.0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/vfb/InitOutput.c:425:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ppix’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/vfb/InitOutput.c:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/vfb/InitOutput.c:420:16: note: in expansion of macro ‘xallocarray’
#  423|   
#  424|           for (i = 0; i < entries; i++)
#  425|->             ppix[i] = i;
#  426|           /* XXX truecolor */
#  427|           QueryColors(pmap, entries, ppix, prgb, serverClient);

Error: CLANG_WARNING: [#def372]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86AutoConfig.c:177:9: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  175|       /* Make sure config rec is there */
#  176|       if (xf86allocateConfig() != NULL) {
#  177|->         ret = CONFIG_OK;    /* OK so far */
#  178|       }
#  179|       else {

Error: CLANG_WARNING: [#def373]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86AutoConfig.c:408:18: warning[core.NullDereference]: Access to field 'device' results in a dereference of a null pointer (loaded from field 'screen')
#  406|               /* do the first match and set that for the original first screen */
#  407|               ptr->driver = md.matches[0];
#  408|->             if (!xf86ConfigLayout.screens[0].screen->device) {
#  409|                   xf86ConfigLayout.screens[0].screen->device = ptr;
#  410|                   ptr->myScreenSection = xf86ConfigLayout.screens[0].screen;

Error: CLANG_WARNING: [#def374]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86AutoConfig.c:417:28: warning[unix.Malloc]: Potential leak of memory pointed to by 'ptr'
#  415|               for (i = 1; i < md.nmatches; i++) {
#  416|                   if (!copyScreen(slp[0].screen, ptr, i, md.matches[i]))
#  417|->                     return NULL;
#  418|               }
#  419|   

Error: CLANG_WARNING: [#def375]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Config.c:177:26: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  175|       int dirlen;
#  176|   
#  177|->     tmp_path = calloc(1, strlen(path) + 1);
#  178|       out_pnt = tmp_path;
#  179|       path_elem = NULL;

Error: CLANG_WARNING: [#def376]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Config.c:553:5: warning[deadcode.DeadStores]: Value stored to 'temp_path' is never read
#  551|       else
#  552|           pathFrom = X_DEFAULT;
#  553|->     temp_path = defaultFontPath ? (char *) defaultFontPath : (char *) "";
#  554|   
#  555|       /* xf86ValidateFontPath modifies its argument, but returns a copy of it. */

Error: CLANG_WARNING: [#def377]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Config.c:1158:49: warning[core.NullDereference]: Access to field 'options' results in a dereference of a null pointer (loaded from variable 'Pointer')
# 1156|               foundPointer = configInput(Pointer, confInput, from);
# 1157|           if (foundPointer) {
# 1158|->             Pointer->options = xf86AddNewOption(Pointer->options,
# 1159|                                                   "CorePointer", "on");
# 1160|               Pointer->options = xf86AddNewOption(Pointer->options,

Error: CLANG_WARNING: [#def378]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Config.c:1194:13: warning[unix.Malloc]: Use of memory after it is freed
# 1192|            */
# 1193|           if (coreKeyboard) {
# 1194|->             freeDevice(servlayoutp->inputs, coreKeyboard);
# 1195|               coreKeyboard = NULL;
# 1196|           }

Error: CLANG_WARNING: [#def379]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Config.c:1254:50: warning[core.NullDereference]: Access to field 'options' results in a dereference of a null pointer (loaded from variable 'Keyboard')
# 1252|               foundKeyboard = configInput(Keyboard, confInput, from);
# 1253|           if (foundKeyboard) {
# 1254|->             Keyboard->options = xf86AddNewOption(Keyboard->options,
# 1255|                                                    "CoreKeyboard", "on");
# 1256|               Keyboard->options = xf86AddNewOption(Keyboard->options,

Error: CLANG_WARNING: [#def380]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Config.c:1576:5: warning[deadcode.DeadStores]: Value stored to 'from' is never read
# 1574|       servlayoutp->inactives = gdp;
# 1575|       servlayoutp->options = conf_layout->lay_option_lst;
# 1576|->     from = X_DEFAULT;
# 1577|   
# 1578|       return TRUE;

Error: CLANG_WARNING: [#def381]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Config.c:1643:9: warning[deadcode.DeadStores]: Value stored to 'from' is never read
# 1641|           if (!configInputDevices(&layout, servlayoutp))
# 1642|               return FALSE;
# 1643|->         from = X_DEFAULT;
# 1644|       }
# 1645|       else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def382]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c: scope_hint: In function 'configureInputSection'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:179:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'mouse'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:35: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:161:5: note: in expansion of macro 'parsePrologue'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86str.h:37: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86.h:44: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:30: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:163:27: note: in expansion of macro 'xnfstrdup'
#  177|   
#  178|       mouse = calloc(1, sizeof(XF86ConfInputRec));
#  179|->     mouse->inp_identifier = xnfstrdup("Mouse0");
#  180|       mouse->inp_driver = xnfstrdup("mouse");
#  181|       mouse->inp_option_lst =

Error: GCC_ANALYZER_WARNING (CWE-476): [#def383]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c: scope_hint: In function 'configureScreenSection'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:213:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'conf_display'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:200:5: note: in expansion of macro 'parsePrologue'
#  211|   
#  212|           conf_display = calloc(1, sizeof(XF86ConfDisplayRec));
#  213|->         conf_display->disp_depth = depths[i];
#  214|           conf_display->disp_black.red = conf_display->disp_white.red = -1;
#  215|           conf_display->disp_black.green = conf_display->disp_white.green = -1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def384]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c: scope_hint: In function 'configureLayoutSection'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:338:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'iptr'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:329:5: note: in expansion of macro 'parsePrologue'
#  336|           iptr = malloc(sizeof(XF86ConfInputrefRec));
#  337|           iptr->list.next = NULL;
#  338|->         iptr->iref_option_lst = NULL;
#  339|           iptr->iref_inputdev_str = xnfstrdup("Mouse0");
#  340|           iptr->iref_option_lst =

Error: GCC_ANALYZER_WARNING (CWE-476): [#def385]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:352:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'iptr'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:329:5: note: in expansion of macro 'parsePrologue'
#  350|           iptr = malloc(sizeof(XF86ConfInputrefRec));
#  351|           iptr->list.next = NULL;
#  352|->         iptr->iref_option_lst = NULL;
#  353|           iptr->iref_inputdev_str = xnfstrdup("Keyboard0");
#  354|           iptr->iref_option_lst =

Error: GCC_ANALYZER_WARNING (CWE-476): [#def386]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:367:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'aptr'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:329:5: note: in expansion of macro 'parsePrologue'
#  365|           aptr = malloc(sizeof(XF86ConfAdjacencyRec));
#  366|           aptr->list.next = NULL;
#  367|->         aptr->adj_x = 0;
#  368|           aptr->adj_y = 0;
#  369|           aptr->adj_scrnum = scrnum;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def387]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c: scope_hint: In function 'configureModuleSection'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:410:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'module'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:402:5: note: in expansion of macro 'parsePrologue'
#  408|   
#  409|               module = calloc(1, sizeof(XF86LoadRec));
#  410|->             module->load_name = *el;
#  411|               ptr->mod_load_lst = (XF86LoadPtr) xf86addListItem((glp) ptr->
#  412|                                                                 mod_load_lst,

Error: GCC_ANALYZER_WARNING (CWE-688): [#def388]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c: scope_hint: In function 'handle_detailed_input'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:459:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_strcpy' must be non-null
#  457|                                        strlen((char *) (det_mon->section.name)) +
#  458|                                        1);
#  459|->         strcpy(ptr->mon_modelname, (char *) (det_mon->section.name));
#  460|           break;
#  461|       case DS_RANGES:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def389]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c: scope_hint: In function 'DoConfigure'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:650:85: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xf86config'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:258:5: note: in expansion of macro 'parsePrologue'
/usr/include/sys/mman.h:25: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/os-support/xf86_OSlib.h:195: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Configure.c:258:5: note: in expansion of macro 'parsePrologue'
#  648|           device_ptr = configureDeviceSection(screennum);
#  649|           xf86config->conf_device_lst = (XF86ConfDevicePtr) xf86addListItem((glp)
#  650|->                                                                           xf86config->
#  651|                                                                             conf_device_lst,
#  652|                                                                             (glp)

Error: CLANG_WARNING: [#def390]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Cursor.c:651:23: warning[core.NullDereference]: Access to field 'screennum' results in a dereference of a null pointer (loaded from field 'refscreen')
#  649|                   break;
#  650|               case PosRelative:
#  651|->                 ref = screen->refscreen->screennum;
#  652|                   if (!xf86Screens[ref] || !xf86Screens[ref]->pScreen) {
#  653|                       ErrorF("Referenced uninitialized screen in Layout!\n");

Error: CLANG_WARNING: [#def391]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Cursor.c:664:23: warning[core.NullDereference]: Access to field 'screennum' results in a dereference of a null pointer (loaded from field 'refscreen')
#  662|                   break;
#  663|               case PosRightOf:
#  664|->                 ref = screen->refscreen->screennum;
#  665|                   if (!xf86Screens[ref] || !xf86Screens[ref]->pScreen) {
#  666|                       ErrorF("Referenced uninitialized screen in Layout!\n");

Error: CLANG_WARNING: [#def392]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Cursor.c:677:23: warning[core.NullDereference]: Access to field 'screennum' results in a dereference of a null pointer (loaded from field 'refscreen')
#  675|                   break;
#  676|               case PosLeftOf:
#  677|->                 ref = screen->refscreen->screennum;
#  678|                   if (!xf86Screens[ref] || !xf86Screens[ref]->pScreen) {
#  679|                       ErrorF("Referenced uninitialized screen in Layout!\n");

Error: CLANG_WARNING: [#def393]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Cursor.c:690:23: warning[core.NullDereference]: Access to field 'screennum' results in a dereference of a null pointer (loaded from field 'refscreen')
#  688|                   break;
#  689|               case PosBelow:
#  690|->                 ref = screen->refscreen->screennum;
#  691|                   if (!xf86Screens[ref] || !xf86Screens[ref]->pScreen) {
#  692|                       ErrorF("Referenced uninitialized screen in Layout!\n");

Error: CLANG_WARNING: [#def394]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Cursor.c:703:23: warning[core.NullDereference]: Access to field 'screennum' results in a dereference of a null pointer (loaded from field 'refscreen')
#  701|                   break;
#  702|               case PosAbove:
#  703|->                 ref = screen->refscreen->screennum;
#  704|                   if (!xf86Screens[ref] || !xf86Screens[ref]->pScreen) {
#  705|                       ErrorF("Referenced uninitialized screen in Layout!\n");

Error: CLANG_WARNING: [#def395]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Cursor.c:733:19: warning[core.NullDereference]: Access to field 'screennum' results in a dereference of a null pointer (loaded from field 'refscreen')
#  731|               }
#  732|   
#  733|->             ref = xf86ConfigLayout.screens[i].refscreen->screennum;
#  734|               xf86Screens[ref]->pScreen->x = xf86Screens[ref]->pScreen->y = 0;
#  735|               screensLeft &= ~(1 << ref);

Error: CLANG_WARNING: [#def396]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86DGA.c:1823:16: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1821|           return BadAlloc;
# 1822|   
# 1823|->     rep.offset += mode.offset;
# 1824|       rep.width = mode.bytesPerScanline / (mode.bitsPerPixel >> 3);
# 1825|       rep.ram_size = rep.bank_size >> 10;

Error: CLANG_WARNING: [#def397]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86DGA.c:1917:15: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1915|       DGAGetModeInfo(stuff->screen, &mode, num);
# 1916|   
# 1917|->     rep.width = mode.viewportWidth;
# 1918|       rep.height = mode.viewportHeight;
# 1919|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def398]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Events.c: scope_hint: In function 'removeInputHandler'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Events.c:626:21: warning[-Wanalyzer-null-dereference]: dereference of NULL 'p'
#  624|               p = p->next;
#  625|           if (ih)
#  626|->             p->next = ih->next;
#  627|       }
#  628|       free(ih);

Error: CLANG_WARNING: [#def399]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Events.c:626:21: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'p')
#  624|               p = p->next;
#  625|           if (ih)
#  626|->             p->next = ih->next;
#  627|       }
#  628|       free(ih);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def400]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Option.c: scope_hint: In function 'xf86NormalizeName'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Option.c:916:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'q'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Option.c:39: included_from: Included from here.
#  914|           default:
#  915|               if (isupper(*p))
#  916|->                 *q++ = tolower(*p);
#  917|               else
#  918|                   *q++ = *p;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def401]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Option.c:918:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'q'
#  916|                   *q++ = tolower(*p);
#  917|               else
#  918|->                 *q++ = *p;
#  919|           }
#  920|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def402]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Option.c:921:8: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'q'
#  919|           }
#  920|       }
#  921|->     *q = '\0';
#  922|       return ret;
#  923|   }

Error: CLANG_WARNING: [#def403]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86RandR.c:107:9: warning[deadcode.DeadStores]: Value stored to 'mode' is never read
#  105|       if (scrp->currentMode->HDisplay != randrp->virtualX ||
#  106|           scrp->currentMode->VDisplay != randrp->virtualY) {
#  107|->         mode = scrp->modes;
#  108|   
#  109|           RRModeMM.mode = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86fbman.c: scope_hint: In function 'localAllocateOffscreenLinear'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86fbman.c:974:32: warning[-Wanalyzer-malloc-leak]: leak of 'link'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86str.h:39: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86.h:44: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86fbman.c:34: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86fbman.c: scope_hint: In function 'localAllocateOffscreenLinear'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86fbman.c: scope_hint: In function 'localAllocateOffscreenLinear'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/region.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/window.h:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/input.h:55: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86str.h:38: included_from: Included from here.
#  972|           linear->MoveLinearCallback = moveCB;
#  973|           linear->RemoveLinearCallback = removeCB;
#  974|->         linear->devPrivate.ptr = privData;
#  975|       }
#  976|       else

Error: CLANG_WARNING: [#def405]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86pciBus.c:682:17: warning[deadcode.DeadStores]: Although the value stored to 'pPci' is used in the enclosing expression, the value is never actually read from 'pPci'
#  680|   
#  681|           iter = pci_slot_match_iterator_create(NULL);
#  682|->         while ((pPci = pci_device_next(iter)) != NULL) {
#  683|               max_entries++;
#  684|           }

Error: CLANG_WARNING: [#def406]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86pciBus.c:1374:21: warning[deadcode.DeadStores]: Although the value stored to 'read' is used in the enclosing expression, the value is never actually read from 'read'
# 1372|               /* Read the file */
# 1373|   #ifdef __GLIBC__
# 1374|->             while ((read = getline(&line, &len, fp)) != -1) {
# 1375|   #else
# 1376|               while ((line = fgetln(fp, &len)) != (char *) NULL) {

Error: CLANG_WARNING: [#def407]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86platformBus.c:472:53: warning[core.NullDereference]: Access to field 'driverFunc' results in a dereference of a null pointer (loaded from variable 'drvp')
#  470|       }
#  471|       if (entity != -1) {
#  472|->         if ((dev->flags & XF86_PDEV_SERVER_FD) && (!drvp->driverFunc ||
#  473|                   !drvp->driverFunc(NULL, SUPPORTS_SERVER_FDS, NULL))) {
#  474|               systemd_logind_release_fd(dev->attribs->major, dev->attribs->minor, dev->attribs->fd);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def408]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86platformBus.c: scope_hint: In function 'doPlatformProbe'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86platformBus.c:472:57: warning[-Wanalyzer-null-dereference]: dereference of NULL 'drvp'
#  470|       }
#  471|       if (entity != -1) {
#  472|->         if ((dev->flags & XF86_PDEV_SERVER_FD) && (!drvp->driverFunc ||
#  473|                   !drvp->driverFunc(NULL, SUPPORTS_SERVER_FDS, NULL))) {
#  474|               systemd_logind_release_fd(dev->attribs->major, dev->attribs->minor, dev->attribs->fd);

Error: CLANG_WARNING: [#def409]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86platformBus.c:479:13: warning[core.NullDereference]: Access to field 'platformProbe' results in a dereference of a null pointer (loaded from variable 'drvp')
#  477|           }
#  478|   
#  479|->         if (drvp->platformProbe(drvp, entity, flags, dev, match_data))
#  480|               foundScreen = TRUE;
#  481|           else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def410]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86platformBus.c:479:17: warning[-Wanalyzer-null-dereference]: dereference of NULL 'drvp'
#  477|           }
#  478|   
#  479|->         if (drvp->platformProbe(drvp, entity, flags, dev, match_data))
#  480|               foundScreen = TRUE;
#  481|           else

Error: CLANG_WARNING: [#def411]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/ddc/ddc.c:47:19: warning[core.NullDereference]: Dereference of null pointer
#   45|   
#   46|       for (i = 0; i < 9; i++) {
#   47|->         comp[i] = *(ptr++);
#   48|           test[i] = 1;
#   49|       }

Error: CLANG_WARNING: [#def412]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/ddc/ddc.c:187:16: warning[unix.MallocSizeof]: Result of 'malloc' is converted to a pointer of type 'unsigned int', which is incompatible with sizeof operand type 'int'
#  185|       unsigned int *ptr, *xp;
#  186|   
#  187|->     ptr = xp = malloc(sizeof(int) * NUM);
#  188|   
#  189|       if (!ptr)

Error: CLANG_WARNING: [#def413]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/dri2/dri2.c:318:13: warning[unix.Malloc]: Use of memory after it is freed
#  316|   
#  317|       xorg_list_for_each_entry(ref, &pPriv->reference_list, link) {
#  318|->         if (ref->id == id)
#  319|               return ref;
#  320|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def414]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/dri2/dri2.c: scope_hint: In function 'dri2_copy_region'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/dri2/dri2.c:893:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
#  891|       ScreenPtr primeScreen;
#  892|   
#  893|->     primeScreen = GetScreenPrime(pDraw->pScreen, pPriv->prime_id);
#  894|       ds = DRI2GetScreen(primeScreen);
#  895|   

Error: CLANG_WARNING: [#def415]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/dri2/dri2.c:1624:24: warning[unix.Malloc]: Potential leak of memory pointed to by 'ds'
# 1622|                                      &ds->driverNames[0], &ds->driverNames[1]);
# 1623|               if (!ds->driverNames[0])
# 1624|->                 return FALSE;
# 1625|           }
# 1626|       }

Error: CLANG_WARNING: [#def416]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/dri2.c:729:5: warning[deadcode.DeadStores]: Value stored to 'ret' is never read
#  727|   
#  728|       /* Get current count */
#  729|->     ret = ms_get_crtc_ust_msc(crtc, &current_ust, &current_msc);
#  730|   
#  731|       /*

Error: GCC_ANALYZER_WARNING (CWE-775): [#def417]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/driver.c: scope_hint: In function 'ms_get_drm_master_fd'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/driver.c:203:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'get_passed_fd()'
#  201|   get_passed_fd(void)
#  202|   {
#  203|->     if (xf86DRMMasterFd >= 0) {
#  204|           xf86DrvMsg(-1, X_INFO, "Using passed DRM master file descriptor %d\n", xf86DRMMasterFd);
#  205|           return dup(xf86DRMMasterFd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def418]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/driver.c:203:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open_hw(path)'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/driver.c: scope_hint: In function 'ms_get_drm_master_fd'
#  201|   get_passed_fd(void)
#  202|   {
#  203|->     if (xf86DRMMasterFd >= 0) {
#  204|           xf86DrvMsg(-1, X_INFO, "Using passed DRM master file descriptor %d\n", xf86DRMMasterFd);
#  205|           return dup(xf86DRMMasterFd);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def419]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/driver.c:203:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open_hw(xf86FindOptionValue(*_14->device.options, "kmsdev"))'
#  201|   get_passed_fd(void)
#  202|   {
#  203|->     if (xf86DRMMasterFd >= 0) {
#  204|           xf86DrvMsg(-1, X_INFO, "Using passed DRM master file descriptor %d\n", xf86DRMMasterFd);
#  205|           return dup(xf86DRMMasterFd);

Error: CLANG_WARNING: [#def420]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/driver.c:486:13: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
#  484|               xf86DrvMsg(scrn->scrnIndex, X_INFO,
#  485|                          "using %s\n", dev ? dev : "default device");
#  486|->             ms_setup_entity(scrn, entity_num);
#  487|           }
#  488|       }

Error: COMPILER_WARNING: [#def421]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/drmmode_display.c: scope_hint: In function 'drmmode_create_bo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/drmmode_display.c:1028:9: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 1028 |         uint32_t num_modifiers;
#      |         ^~~~~~~~
# 1026|   
# 1027|   #ifdef GBM_BO_WITH_MODIFIERS
# 1028|->         uint32_t num_modifiers;
# 1029|           uint64_t *modifiers = NULL;
# 1030|   

Error: CLANG_WARNING: [#def422]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/drmmode_display.c:1046:19: warning[unix.Malloc]: Potential leak of memory pointed to by 'modifiers'
# 1044|   #endif
# 1045|   
# 1046|->         bo->gbm = gbm_bo_create(drmmode->gbm, width, height, format,
# 1047|                                   GBM_BO_USE_RENDERING | GBM_BO_USE_SCANOUT);
# 1048|           bo->used_modifiers = FALSE;

Error: CLANG_WARNING: [#def423]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/present.c:379:14: warning[unix.Malloc]: Potential leak of memory pointed to by 'event'
#  377|       }
#  378|   
#  379|->     for (i = 0; i < config->num_crtc; i++) {
#  380|           xf86CrtcPtr crtc = config->crtc[i];
#  381|   	drmmode_crtc_private_ptr drmmode_crtc = crtc->driver_private;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/present.c: scope_hint: In function 'ms_present_unflip'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/drivers/modesetting/present.c:403:34: warning[-Wanalyzer-malloc-leak]: leak of 'event'
#  401|   
#  402|       present_event_notify(event_id, 0, 0);
#  403|->     ms->drmmode.present_flipping = FALSE;
#  404|   }
#  405|   #endif

Error: CLANG_WARNING: [#def425]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/int10/helper_mem.c:214:32: warning[core.NullDereference]: Access to field 'scrnIndex' results in a dereference of a null pointer (loaded from variable 'pScrn')
#  212|   
#  213|               (void) memcpy(options, INT10Options, sizeof(INT10Options));
#  214|->             xf86ProcessOptions(pScrn->scrnIndex, configOptions, options);
#  215|           }
#  216|       }

Error: CPPCHECK_WARNING: [#def426]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/int10/x86emu.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def427]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/loader/loadmod.c:594:5: warning[unix.Malloc]: Potential leak of memory pointed to by 'submod'
#  592|           submod->parent = parent;
#  593|       }
#  594|->     return submod;
#  595|   }
#  596|   

Error: CLANG_WARNING: [#def428]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86Crtc.c:1138:9: warning[deadcode.DeadStores]: Value stored to 'relation' is never read
# 1136|               user_conf = TRUE;
# 1137|   
# 1138|->         relation = 0;
# 1139|           relative_name = NULL;
# 1140|           for (r = 0; r < 4; r++) {

Error: CLANG_WARNING: [#def429]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86Crtc.c:2032:16: warning[core.NullDereference]: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'last')
# 2030|        */
# 2031|       for (last = scrn->modes; last && last->next; last = last->next);
# 2032|->     last->next = scrn->modes;
# 2033|       scrn->modes->prev = last;
# 2034|       if (mode) {

Error: CLANG_WARNING: [#def430]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86Crtc.c:2398:9: warning[deadcode.DeadStores]: Value stored to 'output' is never read
# 2396|       /* check that they're all the same */
# 2397|       for (o = -1; nextEnabledOutput(config, enabled, &o);) {
# 2398|->         output = config->output[o];
# 2399|           if (!aspect) {
# 2400|               aspect = aspects[o];

Error: CLANG_WARNING: [#def431]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86Crtc.c:2870:30: warning[core.NullDereference]: Access to field 'HDisplay' results in a dereference of a null pointer (loaded from variable 'desired')
# 2868|   
# 2869|           /* Reject if it's larger than the desired mode. */
# 2870|->         if (scan->HDisplay > desired->HDisplay ||
# 2871|               scan->VDisplay > desired->VDisplay) {
# 2872|               continue;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def432]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c: scope_hint: In function 'xf86ComputeCrtcPan'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c:307:54: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'r[1]'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c:1871:31: note: in expansion of macro 'XF86RANDRINFO'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86str.h:39: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86.h:44: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c:27: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c: scope_hint: In function 'xf86ComputeCrtcPan'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c:1871:31: note: in expansion of macro 'XF86RANDRINFO'
#  305|           /* Combine values into temporaries */
#  306|           for (i = 0; i < 2; i++) {
#  307|->             q[i] = m->m[1][i] * r[0] - m->m[0][i] * r[1];
#  308|               u[i] = m->m[1][i] * m->m[0][1 - i] - m->m[0][i] * m->m[1][1 - i];
#  309|               t[i] = m->m[1][i] * crtc_x - m->m[0][i] * crtc_y;

Error: CLANG_WARNING: [#def433]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c:1303:58: warning[core.DivideZero]: Division by zero
# 1301|           /* Downsampling of larger palette to smaller hw lut size */
# 1302|           for (i = 0; i < crtc->gamma_size; i++) {
# 1303|->             value = palette[i * (palette_green_size - 1) / (crtc->gamma_size - 1)].green;
# 1304|               if (gamma_green)
# 1305|                   value = gamma_green[value];

Error: CLANG_WARNING: [#def434]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c:1329:57: warning[core.DivideZero]: Division by zero
# 1327|           /* Downsampling of larger palette to smaller hw lut size */
# 1328|           for (i = 0; i < crtc->gamma_size; i++) {
# 1329|->             value = palette[i * (palette_blue_size - 1) / (crtc->gamma_size - 1)].blue;
# 1330|               if (gamma_blue)
# 1331|                   value = gamma_blue[value];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def435]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c: scope_hint: In function 'xf86RandR12SetInfo12'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c:1646:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'crtcs'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c:1639:13: note: in expansion of macro 'xallocarray'
# 1644|           for (c = 0; c < config->num_crtc; c++)
# 1645|               if (output->possible_crtcs & (1 << c))
# 1646|->                 crtcs[ncrtc++] = config->crtc[c]->randr_crtc;
# 1647|   
# 1648|           if (!RROutputSetCrtcs(output->randr_output, crtcs, ncrtc)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def436]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c:1680:34: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'clones'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/modes/xf86RandR12.c:1638:14: note: in expansion of macro 'xallocarray'
# 1678|   
# 1679|               if (l != o && (output->possible_clones & (1 << l)))
# 1680|->                 clones[nclone++] = clone->randr_output;
# 1681|           }
# 1682|           if (!RROutputSetClones(output->randr_output, clones, nclone)) {

Error: CLANG_WARNING: [#def437]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/os-support/linux/lnx_agp.c:143:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'info'
#  141|   
#  142|       if (ioctl(gartFd, AGPIOC_INFO, &agpinf) != 0) {
#  143|->         xf86DrvMsg(screenNum, X_ERROR,
#  144|                      "xf86GetAGPInfo: AGPIOC_INFO failed (%s)\n",
#  145|                      strerror(errno));

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def438]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/os-support/shared/posix_tty.c:63: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/os-support/shared/posix_tty.c: scope_hint: In function 'xf86CloseSerial'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/os-support/shared/posix_tty.c:388:17: warning[-Wanalyzer-fd-double-close]: double 'close' of file descriptor 'fd'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/os-support/xf86_OSlib.h:350:31: note: in definition of macro 'SYSCALL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/os-support/xf86_OSlib.h:350:31: note: in definition of macro 'SYSCALL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/os-support/shared/posix_tty.c:388:5: note: in expansion of macro 'SYSCALL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/os-support/xf86_OSlib.h:350:31: note: in definition of macro 'SYSCALL'
#  386|       int r;
#  387|   
#  388|->     SYSCALL(r = close(fd));
#  389|       return r;
#  390|   }

Error: CPPCHECK_WARNING: [#def439]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Device.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def440]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c: scope_hint: In function 'xf86parseFilesSection'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:109:32: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:61: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:86:5: note: in expansion of macro 'parsePrologue'
#  107|                   }
#  108|               }
#  109|->             ptr->file_fontpath = realloc(ptr->file_fontpath, i);
#  110|               if (j)
#  111|                   strcat(ptr->file_fontpath, ",");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def442]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:111:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:86:5: note: in expansion of macro 'parsePrologue'
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
#  109|               ptr->file_fontpath = realloc(ptr->file_fontpath, i);
#  110|               if (j)
#  111|->                 strcat(ptr->file_fontpath, ",");
#  112|   
#  113|               strcat(ptr->file_fontpath, str);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def443]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:113:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:86:5: note: in expansion of macro 'parsePrologue'
<built-in>: note: argument 1 of '__builtin_strcat' must be non-null
#  111|                   strcat(ptr->file_fontpath, ",");
#  112|   
#  113|->             strcat(ptr->file_fontpath, str);
#  114|               free(xf86_lex_val.str);
#  115|               break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def444]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:123:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'malloc(1)'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:86:5: note: in expansion of macro 'parsePrologue'
#  121|               if (ptr->file_modulepath == NULL) {
#  122|                   ptr->file_modulepath = malloc(1);
#  123|->                 ptr->file_modulepath[0] = '\0';
#  124|                   k = strlen(str) + 1;
#  125|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:134:34: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:86:5: note: in expansion of macro 'parsePrologue'
#  132|                   }
#  133|               }
#  134|->             ptr->file_modulepath = realloc(ptr->file_modulepath, k);
#  135|               if (l)
#  136|                   strcat(ptr->file_modulepath, ",");

Error: GCC_ANALYZER_WARNING (CWE-688): [#def446]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:136:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:86:5: note: in expansion of macro 'parsePrologue'
<built-in>: note: argument 1 of '__builtin_strlen' must be non-null
#  134|               ptr->file_modulepath = realloc(ptr->file_modulepath, k);
#  135|               if (l)
#  136|->                 strcat(ptr->file_modulepath, ",");
#  137|   
#  138|               strcat(ptr->file_modulepath, str);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def447]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:138:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Files.c:86:5: note: in expansion of macro 'parsePrologue'
<built-in>: note: argument 1 of '__builtin_strcat' must be non-null
#  136|                   strcat(ptr->file_modulepath, ",");
#  137|   
#  138|->             strcat(ptr->file_modulepath, str);
#  139|               free(xf86_lex_val.str);
#  140|               break;

Error: CPPCHECK_WARNING: [#def448]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Flags.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def449]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Flags.c: scope_hint: In function 'addNewOption2'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Flags.c:203:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new'
#  201|       else
#  202|           new = calloc(1, sizeof(*new));
#  203|->     new->opt_name = name;
#  204|       new->opt_val = _val;
#  205|       new->opt_used = used;

Error: CLANG_WARNING: [#def450]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Flags.c:431:10: warning[deadcode.DeadStores]: Although the value stored to 'token' is used in the enclosing expression, the value is never actually read from 'token'
#  429|       int token;
#  430|   
#  431|->     if ((token = xf86getSubToken(&comment)) != STRING) {
#  432|           xf86parseError(BAD_OPTION_MSG);
#  433|           free(comment);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def451]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Flags.c: scope_hint: In function 'xf86parseOption'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Flags.c:440:29: warning[-Wanalyzer-null-dereference]: dereference of NULL 'xf86newOption(name,  xf86_lex_val.str)'
#  438|       if ((token = xf86getSubToken(&comment)) == STRING) {
#  439|           option = xf86newOption(name, xf86_lex_val.str);
#  440|->         option->opt_comment = comment;
#  441|           if ((token = xf86getToken(NULL)) == COMMENT)
#  442|               option->opt_comment = xf86addComment(option->opt_comment, xf86_lex_val.str);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def452]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Flags.c:448:29: warning[-Wanalyzer-null-dereference]: dereference of NULL 'xf86newOption(name, 0)'
#  446|       else {
#  447|           option = xf86newOption(name, NULL);
#  448|->         option->opt_comment = comment;
#  449|           if (token == COMMENT)
#  450|               option->opt_comment = xf86addComment(option->opt_comment, xf86_lex_val.str);

Error: CPPCHECK_WARNING: [#def453]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Layout.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def454]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Layout.c: scope_hint: In function 'xf86layoutAddInputDevices'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Layout.c:454:41: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'iptr'
#  452|   
#  453|                   iptr = calloc(1, sizeof(XF86ConfInputrefRec));
#  454|->                 iptr->iref_inputdev_str = input->inp_identifier;
#  455|                   layout->lay_input_lst = (XF86ConfInputrefPtr)
#  456|                       xf86addListItem((glp) layout->lay_input_lst, (glp) iptr);

Error: CPPCHECK_WARNING: [#def455]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Module.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def456]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Module.c: scope_hint: In function 'xf86addNewLoadDirective'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Module.c:227:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new'
#  225|   
#  226|       new = calloc(1, sizeof(XF86LoadRec));
#  227|->     new->load_name = name;
#  228|       new->load_type = type;
#  229|       new->load_opt = opts;

Error: CPPCHECK_WARNING: [#def457]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Monitor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def458]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Monitor.c:274:18: warning[deadcode.DeadStores]: Although the value stored to 'token' is used in the enclosing expression, the value is never actually read from 'token'
#  272|               break;
#  273|           case DOTCLOCK:
#  274|->             if ((token = xf86getSubToken(&(ptr->ml_comment))) != NUMBER)
#  275|                   Error(NUMBER_MSG, "DotClock");
#  276|               ptr->ml_clock = (int) (xf86_lex_val.realnum * 1000.0 + 0.5);

Error: CLANG_WARNING: [#def459]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Monitor.c:553:18: warning[deadcode.DeadStores]: Although the value stored to 'token' is used in the enclosing expression, the value is never actually read from 'token'
#  551|               XF86ConfModesLinkPtr mptr;
#  552|   
#  553|->             if ((token = xf86getSubToken(&(ptr->mon_comment))) != STRING)
#  554|                   Error(QUOTE_MSG, "UseModes");
#  555|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def460]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c: scope_hint: In function 'xf86freeOutputClassList'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c:61:40: warning[-Wanalyzer-null-dereference]: dereference of NULL 'list'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c:33: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c:96:5: note: in expansion of macro 'parsePrologue'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Configint.h:122:47: note: in expansion of macro 'CLEANUP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c:144:13: note: in expansion of macro 'Error'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Configint.h:95:25: note: in definition of macro 'TestFree'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c:54:9: note: in expansion of macro 'TestFree'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Configint.h:95:25: note: in definition of macro 'TestFree'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c:55:9: note: in expansion of macro 'TestFree'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Configint.h:95:25: note: in definition of macro 'TestFree'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c:56:9: note: in expansion of macro 'TestFree'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Configint.h:95:25: note: in definition of macro 'TestFree'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c:57:9: note: in expansion of macro 'TestFree'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86Optionstr.h:27: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/xf86Optrec.h:67: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/xf86Parser.h:67: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c:31: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c:59:9: note: in expansion of macro 'xorg_list_for_each_entry_safe'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c:59:9: note: in expansion of macro 'xorg_list_for_each_entry_safe'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/OutputClass.c: scope_hint: In function 'xf86freeOutputClassList'
#   59|           xorg_list_for_each_entry_safe(group, next, &ptr->match_driver, entry) {
#   60|               xorg_list_del(&group->entry);
#   61|->             for (list = group->values; *list; list++)
#   62|                   free(*list);
#   63|               free(group);

Error: CPPCHECK_WARNING: [#def461]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Screen.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Screen.c: scope_hint: In function 'xf86validateScreen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Screen.c:529:17: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
#  527|           while (adaptor) {
#  528|               adaptor->al_adaptor =
#  529|->                 xf86findVideoAdaptor(adaptor->al_adaptor_str,
#  530|                                        p->conf_videoadaptor_lst);
#  531|               if (!adaptor->al_adaptor) {

Error: CPPCHECK_WARNING: [#def463]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Vendor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CPPCHECK_WARNING: [#def464]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/Video.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: CLANG_WARNING: [#def465]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c:232:5: warning[unix.Malloc]: Use of memory after it is freed
#  230|       } while (!eolFound);
#  231|   
#  232|->     return ret;
#  233|   }
#  234|   

Error: CLANG_WARNING: [#def466]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c:414:13: warning[deadcode.DeadStores]: Value stored to 'i' is never read
#  412|               --configPos;
#  413|               configRBuf[i] = '\0';
#  414|->             i = 0;
#  415|           }
#  416|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def467]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c:556:65: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'result' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c:589:21: note: in expansion of macro 'APPEND_STR'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c:589:21: note: in expansion of macro 'APPEND_STR'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c:589:21: note: in expansion of macro 'APPEND_STR'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c:589:21: note: in expansion of macro 'APPEND_STR'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c:589:21: note: in expansion of macro 'APPEND_STR'
<built-in>: note: argument 1 of '__builtin_strcpy' must be non-null
#  554|   								BAIL_OUT;						\
#  555|   							} else {							\
#  556|-> 								strcpy(result + l, s);			\
#  557|   								l += strlen(s);					\
#  558|   							}									\

Error: GCC_ANALYZER_WARNING (CWE-476): [#def468]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c: scope_hint: In function 'DoSubstitution'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c:582:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
#  580|       for (i = 0; template[i]; i++) {
#  581|           if (template[i] != '%') {
#  582|->             result[l++] = template[i];
#  583|               CHECK_LENGTH;
#  584|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def469]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c:678:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
#  676|                   break;
#  677|               case '%':
#  678|->                 result[l++] = '%';
#  679|                   CHECK_LENGTH;
#  680|                   break;

Error: CLANG_WARNING: [#def470]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/parser/scan.c:1068:5: warning[deadcode.DeadStores]: Value stored to 'iscomment' is never read
# 1066|   
# 1067|       cstr = add;
# 1068|->     iscomment = 0;
# 1069|       while (*cstr) {
# 1070|           if (*cstr != ' ' && *cstr != '\t')

Error: GCC_ANALYZER_WARNING (CWE-476): [#def471]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c: scope_hint: In function ‘vert_refresh’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c:577:11: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘m’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c: scope_hint: In function ‘vert_refresh’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c: scope_hint: In function ‘vert_refresh’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c: scope_hint: In function ‘vert_refresh’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c: scope_hint: In function ‘vert_refresh’
#  575|       /* finally, pack the results in the mode struct */
#  576|   
#  577|->     m->hr = (int) (h_pixels_rnd);
#  578|       m->hss = (int) (h_pixels_rnd + h_front_porch);
#  579|       m->hse = (int) (h_pixels_rnd + h_front_porch + h_sync);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def472]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c: scope_hint: In function ‘parse_command_line’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c:611:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘o’
#  609|           goto bad_option;
#  610|   
#  611|->     o->x = atoi(argv[1]);
#  612|       o->y = atoi(argv[2]);
#  613|       o->v_freq = atof(argv[3]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c: scope_hint: In function ‘main’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c:692:8: warning[-Wanalyzer-malloc-leak]: leak of ‘parse_command_line(argc,  argv)’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c: scope_hint: In function ‘main’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c: scope_hint: In function ‘main’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c: scope_hint: In function ‘main’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c: scope_hint: In function ‘main’
#  690|           print_xf86_mode(m);
#  691|   
#  692|->     if (o->fbmode)
#  693|           print_fb_mode(m);
#  694|   

Error: CLANG_WARNING: [#def474]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/utils/gtf/gtf.c:693:9: warning[unix.Malloc]: Potential leak of memory pointed to by 'o'
#  691|   
#  692|       if (o->fbmode)
#  693|->         print_fb_mode(m);
#  694|   
#  695|       free(m);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def475]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c: scope_hint: In function 'VBEGetVBEInfo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c:383:24: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'block'
#  381|       block->VESASignature[3] = ((char *) pVbe->memory)[3];
#  382|   
#  383|->     block->VESAVersion = *(CARD16 *) (((char *) pVbe->memory) + 4);
#  384|       major = (unsigned) block->VESAVersion >> 8;
#  385|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def476]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c:401:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'reallocarray(0, (long unsigned int)(i + 1), 2)' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86str.h:37: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86.h:44: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c:18: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c:400:27: note: in expansion of macro 'xallocarray'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
#  399|           i++;
#  400|       block->VideoModePtr = xallocarray(i + 1, sizeof(CARD16));
#  401|->     memcpy(block->VideoModePtr, modes, sizeof(CARD16) * i);
#  402|       block->VideoModePtr[i] = 0xffff;
#  403|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def477]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c: scope_hint: In function 'VBESetGetPaletteData'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c:829:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'data' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c:828:12: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c:828:12: note: in expansion of macro 'xallocarray'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
#  827|   
#  828|       data = xallocarray(num, sizeof(CARD32));
#  829|->     memcpy(data, pVbe->memory, num * sizeof(CARD32));
#  830|   
#  831|       return data;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def478]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c: scope_hint: In function 'VBEGetVBEpmi'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c:863:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'pmi'
#  861|   
#  862|       pmi = malloc(sizeof(VBEpmi));
#  863|->     pmi->seg_tbl = R16(pVbe->pInt10->es);
#  864|       pmi->tbl_off = R16(pVbe->pInt10->di);
#  865|       pmi->tbl_len = R16(pVbe->pInt10->cx);

Error: CLANG_WARNING: [#def479]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c:935:17: warning[deadcode.DeadStores]: Value stored to 'SaveSucc' is never read
#  933|                               &vbe_sr->stateSize, &vbe_sr->statePage))) {
#  934|               if (function == MODE_SAVE) {
#  935|->                 SaveSucc = TRUE;
#  936|                   vbe_sr->stateMode = -1; /* invalidate */
#  937|                   /* don't rely on the memory not being touched */

Error: GCC_ANALYZER_WARNING (CWE-688): [#def480]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c: scope_hint: In function 'VBEVesaSaveRestore'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/vbe/vbe.c:940:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL '*vbe_sr.pstate' where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
#  938|                   if (vbe_sr->pstate == NULL)
#  939|                       vbe_sr->pstate = malloc(vbe_sr->stateSize);
#  940|->                 memcpy(vbe_sr->pstate, vbe_sr->state, vbe_sr->stateSize);
#  941|               }
#  942|               ErrorF("VBESaveRestore done with success\n");

Error: CPPCHECK_WARNING: [#def481]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-476): [#def482]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/int10/x86emu.c:10: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_bt_R'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:380:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/x86emui.h:66: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/debug.c:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/int10/x86emu.c:6: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:378:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/int10/x86emu.c:7: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:378:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  378|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
#  379|               TRACE_AND_STEP();
#  380|->             bit = *shiftreg & 0x1F;
#  381|               disp = (s16) * shiftreg >> 5;
#  382|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def483]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:393:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:391:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:391:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  391|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
#  392|               TRACE_AND_STEP();
#  393|->             bit = *shiftreg & 0xF;
#  394|               disp = (s16) * shiftreg >> 4;
#  395|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def484]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:408:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:406:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:406:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  406|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
#  407|               TRACE_AND_STEP();
#  408|->             bit = *shiftreg & 0x1F;
#  409|               disp = (s16) * shiftreg >> 5;
#  410|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def485]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:421:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:419:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:419:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  419|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
#  420|               TRACE_AND_STEP();
#  421|->             bit = *shiftreg & 0xF;
#  422|               disp = (s16) * shiftreg >> 4;
#  423|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def486]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:436:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:434:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:434:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  434|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
#  435|               TRACE_AND_STEP();
#  436|->             bit = *shiftreg & 0x1F;
#  437|               disp = (s16) * shiftreg >> 5;
#  438|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def487]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:449:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:447:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:447:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  447|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
#  448|               TRACE_AND_STEP();
#  449|->             bit = *shiftreg & 0xF;
#  450|               disp = (s16) * shiftreg >> 4;
#  451|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def488]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:463:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:459:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:461:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:461:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  461|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
#  462|               TRACE_AND_STEP();
#  463|->             bit = *shiftreg & 0x1F;
#  464|               CONDITIONAL_SET_FLAG(*srcreg & (0x1 << bit), F_CF);
#  465|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def489]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu.h:54: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/x86emui.h:63: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:464:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:459:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:459:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:459:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
#  462|               TRACE_AND_STEP();
#  463|               bit = *shiftreg & 0x1F;
#  464|->             CONDITIONAL_SET_FLAG(*srcreg & (0x1 << bit), F_CF);
#  465|           }
#  466|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def490]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:473:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:469:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:471:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:471:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  471|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
#  472|               TRACE_AND_STEP();
#  473|->             bit = *shiftreg & 0xF;
#  474|               CONDITIONAL_SET_FLAG(*srcreg & (0x1 << bit), F_CF);
#  475|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def491]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:474:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:469:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:469:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:469:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
#  472|               TRACE_AND_STEP();
#  473|               bit = *shiftreg & 0xF;
#  474|->             CONDITIONAL_SET_FLAG(*srcreg & (0x1 << bit), F_CF);
#  475|           }
#  476|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def492]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_shld_IMM'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:510:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:504:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:504:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  508|               TRACE_AND_STEP();
#  509|               destval = fetch_data_long(destoffset);
#  510|->             destval = shld_long(destval, *shiftreg, shift);
#  511|               store_data_long(destoffset, destval);
#  512|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def493]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:525:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:519:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:519:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  523|               TRACE_AND_STEP();
#  524|               destval = fetch_data_word(destoffset);
#  525|->             destval = shld_word(destval, *shiftreg, shift);
#  526|               store_data_word(destoffset, destval);
#  527|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def494]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:542:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:536:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:536:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  540|               TRACE_AND_STEP();
#  541|               destval = fetch_data_long(destoffset);
#  542|->             destval = shld_long(destval, *shiftreg, shift);
#  543|               store_data_long(destoffset, destval);
#  544|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def495]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:557:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:551:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:551:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  555|               TRACE_AND_STEP();
#  556|               destval = fetch_data_word(destoffset);
#  557|->             destval = shld_word(destval, *shiftreg, shift);
#  558|               store_data_word(destoffset, destval);
#  559|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def496]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:574:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:568:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:568:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  572|               TRACE_AND_STEP();
#  573|               destval = fetch_data_long(destoffset);
#  574|->             destval = shld_long(destval, *shiftreg, shift);
#  575|               store_data_long(destoffset, destval);
#  576|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def497]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:589:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:583:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:583:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  587|               TRACE_AND_STEP();
#  588|               destval = fetch_data_word(destoffset);
#  589|->             destval = shld_word(destval, *shiftreg, shift);
#  590|               store_data_word(destoffset, destval);
#  591|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def498]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:604:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:597:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:597:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:597:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  602|               DECODE_PRINTF2("%d\n", shift);
#  603|               TRACE_AND_STEP();
#  604|->             *destreg = shld_long(*destreg, *shiftreg, shift);
#  605|           }
#  606|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def499]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:616:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:609:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:609:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:609:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  614|               DECODE_PRINTF2("%d\n", shift);
#  615|               TRACE_AND_STEP();
#  616|->             *destreg = shld_word(*destreg, *shiftreg, shift);
#  617|           }
#  618|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def500]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:616:44: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:609:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:611:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:611:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  614|               DECODE_PRINTF2("%d\n", shift);
#  615|               TRACE_AND_STEP();
#  616|->             *destreg = shld_word(*destreg, *shiftreg, shift);
#  617|           }
#  618|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def501]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_shld_CL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:649:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:645:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:645:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  647|               TRACE_AND_STEP();
#  648|               destval = fetch_data_long(destoffset);
#  649|->             destval = shld_long(destval, *shiftreg, M.x86.R_CL);
#  650|               store_data_long(destoffset, destval);
#  651|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def502]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:662:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:658:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:658:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  660|               TRACE_AND_STEP();
#  661|               destval = fetch_data_word(destoffset);
#  662|->             destval = shld_word(destval, *shiftreg, M.x86.R_CL);
#  663|               store_data_word(destoffset, destval);
#  664|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def503]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:677:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:673:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:673:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  675|               TRACE_AND_STEP();
#  676|               destval = fetch_data_long(destoffset);
#  677|->             destval = shld_long(destval, *shiftreg, M.x86.R_CL);
#  678|               store_data_long(destoffset, destval);
#  679|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def504]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:690:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:686:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:686:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  688|               TRACE_AND_STEP();
#  689|               destval = fetch_data_word(destoffset);
#  690|->             destval = shld_word(destval, *shiftreg, M.x86.R_CL);
#  691|               store_data_word(destoffset, destval);
#  692|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def505]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:705:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:701:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:701:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  703|               TRACE_AND_STEP();
#  704|               destval = fetch_data_long(destoffset);
#  705|->             destval = shld_long(destval, *shiftreg, M.x86.R_CL);
#  706|               store_data_long(destoffset, destval);
#  707|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def506]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:718:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:714:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:714:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  716|               TRACE_AND_STEP();
#  717|               destval = fetch_data_word(destoffset);
#  718|->             destval = shld_word(destval, *shiftreg, M.x86.R_CL);
#  719|               store_data_word(destoffset, destval);
#  720|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def507]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:731:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:726:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:728:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:728:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  729|               DECODE_PRINTF(",CL\n");
#  730|               TRACE_AND_STEP();
#  731|->             *destreg = shld_long(*destreg, *shiftreg, M.x86.R_CL);
#  732|           }
#  733|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def508]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:741:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:736:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:736:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:736:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  739|               DECODE_PRINTF(",CL\n");
#  740|               TRACE_AND_STEP();
#  741|->             *destreg = shld_word(*destreg, *shiftreg, M.x86.R_CL);
#  742|           }
#  743|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def509]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:741:44: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:736:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:738:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:738:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  739|               DECODE_PRINTF(",CL\n");
#  740|               TRACE_AND_STEP();
#  741|->             *destreg = shld_word(*destreg, *shiftreg, M.x86.R_CL);
#  742|           }
#  743|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def510]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_bts_R'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:803:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:801:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:801:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  801|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
#  802|               TRACE_AND_STEP();
#  803|->             bit = *shiftreg & 0x1F;
#  804|               disp = (s16) * shiftreg >> 5;
#  805|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def511]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:818:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:816:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:816:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  816|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
#  817|               TRACE_AND_STEP();
#  818|->             bit = *shiftreg & 0xF;
#  819|               disp = (s16) * shiftreg >> 4;
#  820|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def512]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:835:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:833:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:833:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  833|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
#  834|               TRACE_AND_STEP();
#  835|->             bit = *shiftreg & 0x1F;
#  836|               disp = (s16) * shiftreg >> 5;
#  837|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def513]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:850:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:848:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:848:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  848|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
#  849|               TRACE_AND_STEP();
#  850|->             bit = *shiftreg & 0xF;
#  851|               disp = (s16) * shiftreg >> 4;
#  852|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def514]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:867:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:865:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:865:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  865|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
#  866|               TRACE_AND_STEP();
#  867|->             bit = *shiftreg & 0x1F;
#  868|               disp = (s16) * shiftreg >> 5;
#  869|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def515]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:882:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:880:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:880:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  880|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
#  881|               TRACE_AND_STEP();
#  882|->             bit = *shiftreg & 0xF;
#  883|               disp = (s16) * shiftreg >> 4;
#  884|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def516]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:899:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:895:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:897:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:897:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  897|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
#  898|               TRACE_AND_STEP();
#  899|->             bit = *shiftreg & 0x1F;
#  900|               mask = (0x1 << bit);
#  901|               CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def517]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:901:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:895:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:895:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:895:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
#  899|               bit = *shiftreg & 0x1F;
#  900|               mask = (0x1 << bit);
#  901|->             CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);
#  902|               *srcreg |= mask;
#  903|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def518]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:912:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:908:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:910:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:910:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  910|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
#  911|               TRACE_AND_STEP();
#  912|->             bit = *shiftreg & 0xF;
#  913|               mask = (u16) (0x1 << bit);
#  914|               CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def519]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:914:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:908:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:908:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:908:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
#  912|               bit = *shiftreg & 0xF;
#  913|               mask = (u16) (0x1 << bit);
#  914|->             CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);
#  915|               *srcreg |= mask;
#  916|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def520]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_shrd_IMM'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:951:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:945:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:945:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  949|               TRACE_AND_STEP();
#  950|               destval = fetch_data_long(destoffset);
#  951|->             destval = shrd_long(destval, *shiftreg, shift);
#  952|               store_data_long(destoffset, destval);
#  953|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def521]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:966:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:960:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:960:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  964|               TRACE_AND_STEP();
#  965|               destval = fetch_data_word(destoffset);
#  966|->             destval = shrd_word(destval, *shiftreg, shift);
#  967|               store_data_word(destoffset, destval);
#  968|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def522]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:983:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:977:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:977:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
#  981|               TRACE_AND_STEP();
#  982|               destval = fetch_data_long(destoffset);
#  983|->             destval = shrd_long(destval, *shiftreg, shift);
#  984|               store_data_long(destoffset, destval);
#  985|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def523]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:998:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:992:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:992:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
#  996|               TRACE_AND_STEP();
#  997|               destval = fetch_data_word(destoffset);
#  998|->             destval = shrd_word(destval, *shiftreg, shift);
#  999|               store_data_word(destoffset, destval);
# 1000|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def524]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1015:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1009:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1009:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1013|               TRACE_AND_STEP();
# 1014|               destval = fetch_data_long(destoffset);
# 1015|->             destval = shrd_long(destval, *shiftreg, shift);
# 1016|               store_data_long(destoffset, destval);
# 1017|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def525]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1030:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1024:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1024:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1028|               TRACE_AND_STEP();
# 1029|               destval = fetch_data_word(destoffset);
# 1030|->             destval = shrd_word(destval, *shiftreg, shift);
# 1031|               store_data_word(destoffset, destval);
# 1032|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def526]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1045:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1038:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1038:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1038:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1043|               DECODE_PRINTF2("%d\n", shift);
# 1044|               TRACE_AND_STEP();
# 1045|->             *destreg = shrd_long(*destreg, *shiftreg, shift);
# 1046|           }
# 1047|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def527]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1057:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1050:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1050:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1050:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1055|               DECODE_PRINTF2("%d\n", shift);
# 1056|               TRACE_AND_STEP();
# 1057|->             *destreg = shrd_word(*destreg, *shiftreg, shift);
# 1058|           }
# 1059|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def528]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1057:44: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1050:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1052:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1052:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1055|               DECODE_PRINTF2("%d\n", shift);
# 1056|               TRACE_AND_STEP();
# 1057|->             *destreg = shrd_word(*destreg, *shiftreg, shift);
# 1058|           }
# 1059|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def529]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_shrd_CL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1090:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1086:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1086:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1088|               TRACE_AND_STEP();
# 1089|               destval = fetch_data_long(destoffset);
# 1090|->             destval = shrd_long(destval, *shiftreg, M.x86.R_CL);
# 1091|               store_data_long(destoffset, destval);
# 1092|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def530]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1103:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1099:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1099:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1101|               TRACE_AND_STEP();
# 1102|               destval = fetch_data_word(destoffset);
# 1103|->             destval = shrd_word(destval, *shiftreg, M.x86.R_CL);
# 1104|               store_data_word(destoffset, destval);
# 1105|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def531]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1118:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1114:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1114:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1116|               TRACE_AND_STEP();
# 1117|               destval = fetch_data_long(destoffset);
# 1118|->             destval = shrd_long(destval, *shiftreg, M.x86.R_CL);
# 1119|               store_data_long(destoffset, destval);
# 1120|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def532]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1131:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1127:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1127:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1129|               TRACE_AND_STEP();
# 1130|               destval = fetch_data_word(destoffset);
# 1131|->             destval = shrd_word(destval, *shiftreg, M.x86.R_CL);
# 1132|               store_data_word(destoffset, destval);
# 1133|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def533]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1146:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1142:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1142:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1144|               TRACE_AND_STEP();
# 1145|               destval = fetch_data_long(destoffset);
# 1146|->             destval = shrd_long(destval, *shiftreg, M.x86.R_CL);
# 1147|               store_data_long(destoffset, destval);
# 1148|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def534]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1159:42: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1155:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1155:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1157|               TRACE_AND_STEP();
# 1158|               destval = fetch_data_word(destoffset);
# 1159|->             destval = shrd_word(destval, *shiftreg, M.x86.R_CL);
# 1160|               store_data_word(destoffset, destval);
# 1161|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def535]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1172:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1167:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1169:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1169:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1170|               DECODE_PRINTF(",CL\n");
# 1171|               TRACE_AND_STEP();
# 1172|->             *destreg = shrd_long(*destreg, *shiftreg, M.x86.R_CL);
# 1173|           }
# 1174|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def536]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1182:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1177:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1177:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1177:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1180|               DECODE_PRINTF(",CL\n");
# 1181|               TRACE_AND_STEP();
# 1182|->             *destreg = shrd_word(*destreg, *shiftreg, M.x86.R_CL);
# 1183|           }
# 1184|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def537]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1182:44: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1177:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1179:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1179:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1180|               DECODE_PRINTF(",CL\n");
# 1181|               TRACE_AND_STEP();
# 1182|->             *destreg = shrd_word(*destreg, *shiftreg, M.x86.R_CL);
# 1183|           }
# 1184|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def538]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_imul_R_RM'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1259:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1254:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1254:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1254:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1257|               srcval = fetch_data_long(srcoffset);
# 1258|               TRACE_AND_STEP();
# 1259|->             imul_long_direct(&res_lo, &res_hi, (s32) * destreg, (s32) srcval);
# 1260|               if (res_hi != 0) {
# 1261|                   SET_FLAG(F_CF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def539]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1280:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1275:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1275:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1275:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1278|               srcval = fetch_data_word(srcoffset);
# 1279|               TRACE_AND_STEP();
# 1280|->             res = (s16) * destreg * (s16) srcval;
# 1281|               if (res > 0xFFFF) {
# 1282|                   SET_FLAG(F_CF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def540]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1345:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1341:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1341:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1341:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1343|               srcreg = DECODE_RM_LONG_REGISTER(rl);
# 1344|               TRACE_AND_STEP();
# 1345|->             imul_long_direct(&res_lo, &res_hi, (s32) * destreg, (s32) * srcreg);
# 1346|               if (res_hi != 0) {
# 1347|                   SET_FLAG(F_CF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def541]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1363:25: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1360:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1360:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1360:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1361|               DECODE_PRINTF(",");
# 1362|               srcreg = DECODE_RM_WORD_REGISTER(rl);
# 1363|->             res = (s16) * destreg * (s16) * srcreg;
# 1364|               if (res > 0xFFFF) {
# 1365|                   SET_FLAG(F_CF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def542]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1363:43: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1360:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1362:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1362:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1361|               DECODE_PRINTF(",");
# 1362|               srcreg = DECODE_RM_WORD_REGISTER(rl);
# 1363|->             res = (s16) * destreg * (s16) * srcreg;
# 1364|               if (res > 0xFFFF) {
# 1365|                   SET_FLAG(F_CF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def543]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_lss_R_IMM'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1410:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1405:18: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1405:18: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1408|           DECODE_PRINTF("\n");
# 1409|           TRACE_AND_STEP();
# 1410|->         *dstreg = fetch_data_word(srcoffset);
# 1411|           M.x86.R_SS = fetch_data_word(srcoffset + 2);
# 1412|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def544]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_btr_R'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1454:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1452:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1452:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1452|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
# 1453|               TRACE_AND_STEP();
# 1454|->             bit = *shiftreg & 0x1F;
# 1455|               disp = (s16) * shiftreg >> 5;
# 1456|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def545]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1469:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1467:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1467:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1467|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
# 1468|               TRACE_AND_STEP();
# 1469|->             bit = *shiftreg & 0xF;
# 1470|               disp = (s16) * shiftreg >> 4;
# 1471|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def546]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1486:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1484:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1484:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1484|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
# 1485|               TRACE_AND_STEP();
# 1486|->             bit = *shiftreg & 0x1F;
# 1487|               disp = (s16) * shiftreg >> 5;
# 1488|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def547]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1501:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1499:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1499:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1499|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
# 1500|               TRACE_AND_STEP();
# 1501|->             bit = *shiftreg & 0xF;
# 1502|               disp = (s16) * shiftreg >> 4;
# 1503|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def548]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1518:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1516:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1516:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1516|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
# 1517|               TRACE_AND_STEP();
# 1518|->             bit = *shiftreg & 0x1F;
# 1519|               disp = (s16) * shiftreg >> 5;
# 1520|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def549]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1533:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1531:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1531:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1531|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
# 1532|               TRACE_AND_STEP();
# 1533|->             bit = *shiftreg & 0xF;
# 1534|               disp = (s16) * shiftreg >> 4;
# 1535|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def550]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1550:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1546:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1548:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1548:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1548|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
# 1549|               TRACE_AND_STEP();
# 1550|->             bit = *shiftreg & 0x1F;
# 1551|               mask = (0x1 << bit);
# 1552|               CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def551]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1552:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1546:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1546:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1546:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
# 1550|               bit = *shiftreg & 0x1F;
# 1551|               mask = (0x1 << bit);
# 1552|->             CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);
# 1553|               *srcreg &= ~mask;
# 1554|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def552]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1563:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1559:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1561:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1561:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1561|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
# 1562|               TRACE_AND_STEP();
# 1563|->             bit = *shiftreg & 0xF;
# 1564|               mask = (u16) (0x1 << bit);
# 1565|               CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def553]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1565:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1559:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1559:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1559:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
# 1563|               bit = *shiftreg & 0xF;
# 1564|               mask = (u16) (0x1 << bit);
# 1565|->             CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);
# 1566|               *srcreg &= ~mask;
# 1567|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def554]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_lfs_R_IMM'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1604:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1599:18: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1599:18: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1602|           DECODE_PRINTF("\n");
# 1603|           TRACE_AND_STEP();
# 1604|->         *dstreg = fetch_data_word(srcoffset);
# 1605|           M.x86.R_FS = fetch_data_word(srcoffset + 2);
# 1606|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def555]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_lgs_R_IMM'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1654:17: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1649:18: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1649:18: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1652|           DECODE_PRINTF("\n");
# 1653|           TRACE_AND_STEP();
# 1654|->         *dstreg = fetch_data_word(srcoffset);
# 1655|           M.x86.R_GS = fetch_data_word(srcoffset + 2);
# 1656|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def556]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_movzx_byte_R_RM'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1725:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1719:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1719:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1719:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1723|               DECODE_PRINTF("\n");
# 1724|               TRACE_AND_STEP();
# 1725|->             *destreg = srcval;
# 1726|           }
# 1727|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def557]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1737:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1731:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1731:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1731:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1735|               DECODE_PRINTF("\n");
# 1736|               TRACE_AND_STEP();
# 1737|->             *destreg = srcval;
# 1738|           }
# 1739|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def558]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1776:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1771:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1771:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1771:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1774|               DECODE_PRINTF("\n");
# 1775|               TRACE_AND_STEP();
# 1776|->             *destreg = *srcreg;
# 1777|           }
# 1778|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def559]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1776:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1771:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1773:22: note: in expansion of macro 'DECODE_RM_BYTE_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1773:22: note: in expansion of macro 'DECODE_RM_BYTE_REGISTER'
# 1774|               DECODE_PRINTF("\n");
# 1775|               TRACE_AND_STEP();
# 1776|->             *destreg = *srcreg;
# 1777|           }
# 1778|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def560]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1787:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1782:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1782:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1782:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1785|               DECODE_PRINTF("\n");
# 1786|               TRACE_AND_STEP();
# 1787|->             *destreg = *srcreg;
# 1788|           }
# 1789|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def561]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1787:24: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1782:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1784:22: note: in expansion of macro 'DECODE_RM_BYTE_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1784:22: note: in expansion of macro 'DECODE_RM_BYTE_REGISTER'
# 1785|               DECODE_PRINTF("\n");
# 1786|               TRACE_AND_STEP();
# 1787|->             *destreg = *srcreg;
# 1788|           }
# 1789|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def562]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_movzx_word_R_RM'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1828:18: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1822:19: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1822:19: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1826|           DECODE_PRINTF("\n");
# 1827|           TRACE_AND_STEP();
# 1828|->         *destreg = srcval;
# 1829|           break;
# 1830|       case 2:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def563]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1845:18: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1840:19: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1840:19: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 1843|           DECODE_PRINTF("\n");
# 1844|           TRACE_AND_STEP();
# 1845|->         *destreg = *srcreg;
# 1846|           break;
# 1847|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def564]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1845:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1842:18: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:1842:18: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 1843|           DECODE_PRINTF("\n");
# 1844|           TRACE_AND_STEP();
# 1845|->         *destreg = *srcreg;
# 1846|           break;
# 1847|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def565]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_btX_I'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2060:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2054:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2054:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2054:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
# 2058|               bit = shift & 0x1F;
# 2059|               mask = (0x1 << bit);
# 2060|->             CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);
# 2061|               switch (rh) {
# 2062|               case 5:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def566]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2086:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2080:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2080:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2080:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
# 2084|               bit = shift & 0xF;
# 2085|               mask = (0x1 << bit);
# 2086|->             CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);
# 2087|               switch (rh) {
# 2088|               case 5:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def567]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_btc_R'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2131:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2129:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2129:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2129|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
# 2130|               TRACE_AND_STEP();
# 2131|->             bit = *shiftreg & 0x1F;
# 2132|               disp = (s16) * shiftreg >> 5;
# 2133|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def568]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2146:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2144:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2144:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2144|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
# 2145|               TRACE_AND_STEP();
# 2146|->             bit = *shiftreg & 0xF;
# 2147|               disp = (s16) * shiftreg >> 4;
# 2148|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def569]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2163:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2161:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2161:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2161|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
# 2162|               TRACE_AND_STEP();
# 2163|->             bit = *shiftreg & 0x1F;
# 2164|               disp = (s16) * shiftreg >> 5;
# 2165|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def570]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2178:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2176:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2176:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2176|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
# 2177|               TRACE_AND_STEP();
# 2178|->             bit = *shiftreg & 0xF;
# 2179|               disp = (s16) * shiftreg >> 4;
# 2180|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def571]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2195:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2193:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2193:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2193|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
# 2194|               TRACE_AND_STEP();
# 2195|->             bit = *shiftreg & 0x1F;
# 2196|               disp = (s16) * shiftreg >> 5;
# 2197|               srcval = fetch_data_long(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def572]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2210:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2208:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2208:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2208|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
# 2209|               TRACE_AND_STEP();
# 2210|->             bit = *shiftreg & 0xF;
# 2211|               disp = (s16) * shiftreg >> 4;
# 2212|               srcval = fetch_data_word(srcoffset + disp);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def573]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2227:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2223:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2225:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2225:24: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2225|               shiftreg = DECODE_RM_LONG_REGISTER(rh);
# 2226|               TRACE_AND_STEP();
# 2227|->             bit = *shiftreg & 0x1F;
# 2228|               mask = (0x1 << bit);
# 2229|               CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def574]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2229:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2223:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2223:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2223:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
# 2227|               bit = *shiftreg & 0x1F;
# 2228|               mask = (0x1 << bit);
# 2229|->             CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);
# 2230|               *srcreg ^= mask;
# 2231|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def575]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2240:19: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2236:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2238:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2238:24: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2238|               shiftreg = DECODE_RM_WORD_REGISTER(rh);
# 2239|               TRACE_AND_STEP();
# 2240|->             bit = *shiftreg & 0xF;
# 2241|               mask = (u16) (0x1 << bit);
# 2242|               CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def576]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2242:34: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2236:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2236:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2236:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/x86emu/regs.h:215:7: note: in definition of macro 'CONDITIONAL_SET_FLAG'
# 2240|               bit = *shiftreg & 0xF;
# 2241|               mask = (u16) (0x1 << bit);
# 2242|->             CONDITIONAL_SET_FLAG(*srcreg & mask, F_CF);
# 2243|               *srcreg ^= mask;
# 2244|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def577]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_bsf'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2275:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2271:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2271:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2273|               srcval = fetch_data_long(srcoffset);
# 2274|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2275|->             for (*dstreg = 0; *dstreg < 32; (*dstreg)++)
# 2276|                   if ((srcval >> *dstreg) & 1)
# 2277|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def578]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2288:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2284:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2284:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2286|               srcval = fetch_data_word(srcoffset);
# 2287|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2288|->             for (*dstreg = 0; *dstreg < 16; (*dstreg)++)
# 2289|                   if ((srcval >> *dstreg) & 1)
# 2290|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def579]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2303:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2299:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2299:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2301|               srcval = fetch_data_long(srcoffset);
# 2302|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2303|->             for (*dstreg = 0; *dstreg < 32; (*dstreg)++)
# 2304|                   if ((srcval >> *dstreg) & 1)
# 2305|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def580]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2316:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2312:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2312:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2314|               srcval = fetch_data_word(srcoffset);
# 2315|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2316|->             for (*dstreg = 0; *dstreg < 16; (*dstreg)++)
# 2317|                   if ((srcval >> *dstreg) & 1)
# 2318|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def581]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2331:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2327:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2327:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2329|               srcval = fetch_data_long(srcoffset);
# 2330|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2331|->             for (*dstreg = 0; *dstreg < 32; (*dstreg)++)
# 2332|                   if ((srcval >> *dstreg) & 1)
# 2333|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def582]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2344:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2340:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2340:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2342|               srcval = fetch_data_word(srcoffset);
# 2343|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2344|->             for (*dstreg = 0; *dstreg < 16; (*dstreg)++)
# 2345|                   if ((srcval >> *dstreg) & 1)
# 2346|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def583]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2353:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2353:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2353:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2353:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2351|               u32 srcval, *dstreg;
# 2352|   
# 2353|->             srcval = *DECODE_RM_LONG_REGISTER(rl);
# 2354|               DECODE_PRINTF(",");
# 2355|               dstreg = DECODE_RM_LONG_REGISTER(rh);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def584]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2358:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2353:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2355:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2355:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2356|               TRACE_AND_STEP();
# 2357|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2358|->             for (*dstreg = 0; *dstreg < 32; (*dstreg)++)
# 2359|                   if ((srcval >> *dstreg) & 1)
# 2360|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def585]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2365:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2365:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2365:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2365:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2363|               u16 srcval, *dstreg;
# 2364|   
# 2365|->             srcval = *DECODE_RM_WORD_REGISTER(rl);
# 2366|               DECODE_PRINTF(",");
# 2367|               dstreg = DECODE_RM_WORD_REGISTER(rh);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def586]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2370:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2365:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2367:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2367:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2368|               TRACE_AND_STEP();
# 2369|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2370|->             for (*dstreg = 0; *dstreg < 16; (*dstreg)++)
# 2371|                   if ((srcval >> *dstreg) & 1)
# 2372|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def587]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_bsr'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2404:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2400:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2400:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2402|               srcval = fetch_data_long(srcoffset);
# 2403|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2404|->             for (*dstreg = 31; *dstreg > 0; (*dstreg)--)
# 2405|                   if ((srcval >> *dstreg) & 1)
# 2406|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def588]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2417:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2413:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2413:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2415|               srcval = fetch_data_word(srcoffset);
# 2416|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2417|->             for (*dstreg = 15; *dstreg > 0; (*dstreg)--)
# 2418|                   if ((srcval >> *dstreg) & 1)
# 2419|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def589]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2432:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2428:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2428:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2430|               srcval = fetch_data_long(srcoffset);
# 2431|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2432|->             for (*dstreg = 31; *dstreg > 0; (*dstreg)--)
# 2433|                   if ((srcval >> *dstreg) & 1)
# 2434|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def590]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2445:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2441:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2441:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2443|               srcval = fetch_data_word(srcoffset);
# 2444|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2445|->             for (*dstreg = 15; *dstreg > 0; (*dstreg)--)
# 2446|                   if ((srcval >> *dstreg) & 1)
# 2447|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def591]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2460:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2456:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2456:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2458|               srcval = fetch_data_long(srcoffset);
# 2459|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2460|->             for (*dstreg = 31; *dstreg > 0; (*dstreg)--)
# 2461|                   if ((srcval >> *dstreg) & 1)
# 2462|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def592]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2473:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2469:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2469:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2471|               srcval = fetch_data_word(srcoffset);
# 2472|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2473|->             for (*dstreg = 15; *dstreg > 0; (*dstreg)--)
# 2474|                   if ((srcval >> *dstreg) & 1)
# 2475|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def593]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2482:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2482:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2482:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2482:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2480|               u32 srcval, *dstreg;
# 2481|   
# 2482|->             srcval = *DECODE_RM_LONG_REGISTER(rl);
# 2483|               DECODE_PRINTF(",");
# 2484|               dstreg = DECODE_RM_LONG_REGISTER(rh);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def594]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2487:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2482:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2484:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2484:22: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2485|               TRACE_AND_STEP();
# 2486|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2487|->             for (*dstreg = 31; *dstreg > 0; (*dstreg)--)
# 2488|                   if ((srcval >> *dstreg) & 1)
# 2489|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def595]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2494:20: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2494:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2494:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2494:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2492|               u16 srcval, *dstreg;
# 2493|   
# 2494|->             srcval = *DECODE_RM_WORD_REGISTER(rl);
# 2495|               DECODE_PRINTF(",");
# 2496|               dstreg = DECODE_RM_WORD_REGISTER(rh);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def596]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2499:26: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2494:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2496:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2496:22: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2497|               TRACE_AND_STEP();
# 2498|               CONDITIONAL_SET_FLAG(srcval == 0, F_ZF);
# 2499|->             for (*dstreg = 15; *dstreg > 0; (*dstreg)--)
# 2500|                   if ((srcval >> *dstreg) & 1)
# 2501|                       break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def597]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_movsx_byte_R_RM'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2560:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2554:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2554:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2554:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2558|               DECODE_PRINTF("\n");
# 2559|               TRACE_AND_STEP();
# 2560|->             *destreg = srcval;
# 2561|           }
# 2562|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def598]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2572:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2566:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2566:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2566:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2570|               DECODE_PRINTF("\n");
# 2571|               TRACE_AND_STEP();
# 2572|->             *destreg = srcval;
# 2573|           }
# 2574|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def599]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2611:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2606:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2606:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2606:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2609|               DECODE_PRINTF("\n");
# 2610|               TRACE_AND_STEP();
# 2611|->             *destreg = (s32) ((s8) * srcreg);
# 2612|           }
# 2613|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def600]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2611:36: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2606:23: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2608:22: note: in expansion of macro 'DECODE_RM_BYTE_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2608:22: note: in expansion of macro 'DECODE_RM_BYTE_REGISTER'
# 2609|               DECODE_PRINTF("\n");
# 2610|               TRACE_AND_STEP();
# 2611|->             *destreg = (s32) ((s8) * srcreg);
# 2612|           }
# 2613|           else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def601]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2622:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2617:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2617:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2617:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2620|               DECODE_PRINTF("\n");
# 2621|               TRACE_AND_STEP();
# 2622|->             *destreg = (s16) ((s8) * srcreg);
# 2623|           }
# 2624|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def602]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2622:36: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2617:23: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2619:22: note: in expansion of macro 'DECODE_RM_BYTE_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2619:22: note: in expansion of macro 'DECODE_RM_BYTE_REGISTER'
# 2620|               DECODE_PRINTF("\n");
# 2621|               TRACE_AND_STEP();
# 2622|->             *destreg = (s16) ((s8) * srcreg);
# 2623|           }
# 2624|           break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def603]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c: scope_hint: In function 'x86emuOp2_movsx_word_R_RM'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2663:18: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2657:19: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2657:19: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2661|           DECODE_PRINTF("\n");
# 2662|           TRACE_AND_STEP();
# 2663|->         *destreg = srcval;
# 2664|           break;
# 2665|       case 2:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def604]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2680:18: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2675:19: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2675:19: note: in expansion of macro 'DECODE_RM_LONG_REGISTER'
# 2678|           DECODE_PRINTF("\n");
# 2679|           TRACE_AND_STEP();
# 2680|->         *destreg = (s32) ((s16) * srcreg);
# 2681|           break;
# 2682|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def605]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2680:33: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2677:18: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/ops2.c:2677:18: note: in expansion of macro 'DECODE_RM_WORD_REGISTER'
# 2678|           DECODE_PRINTF("\n");
# 2679|           TRACE_AND_STEP();
# 2680|->         *destreg = (s32) ((s16) * srcreg);
# 2681|           break;
# 2682|       }

Error: CPPCHECK_WARNING: [#def606]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/x86emu/prim_ops.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.

Error: GCC_ANALYZER_WARNING (CWE-775): [#def607]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/xorg-wrapper.c: scope_hint: In function ‘parse_config’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/xorg-wrapper.c:70:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen("/etc/X11/Xwrapper.config", "r")’
#   68|   
#   69|       /* Strip leading whitespace */
#   70|->     while (s[0] && is_space(s[0]))
#   71|           s++;
#   72|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def608]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/xorg-wrapper.c:70:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen("/etc/X11/Xwrapper.config", "r")’
#   68|   
#   69|       /* Strip leading whitespace */
#   70|->     while (s[0] && is_space(s[0]))
#   71|           s++;
#   72|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def609]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c: scope_hint: In function ‘xnestSetInstalledColormapWindows’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c:224:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘windows’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c: scope_hint: In function ‘xnestSetInstalledColormapWindows’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c:21: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/os.h:87:52: note: in definition of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c:221:33: note: in expansion of macro ‘xallocarray’
#  222|   
#  223|               for (i = 0; i < numWindows; ++i)
#  224|->                 windows[i] = icws.windows[i];
#  225|               XSetWMColormapWindows(xnestDisplay,
#  226|                                     xnestDefaultWindows[pScreen->myNum], windows,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def610]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c: scope_hint: In function ‘xnestListInstalledColormaps.part.0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c:379:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pCmapIDs’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c:197:20: note: in expansion of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c: scope_hint: In function ‘xnestListInstalledColormaps.part.0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c:379:21: note: in expansion of macro ‘GetInstalledColormap’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c: scope_hint: In function ‘xnestListInstalledColormaps.part.0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c:379:21: note: in expansion of macro ‘GetInstalledColormap’
#  377|   {
#  378|       if (xnestInstalledDefaultColormap) {
#  379|->         *pCmapIDs = GetInstalledColormap(pScreen)->mid;
#  380|           return 1;
#  381|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def611]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c: scope_hint: In function ‘xnestStoreColors’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c:396:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pColors64’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c:393:29: note: in expansion of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Color.c:393:29: note: in expansion of macro ‘xallocarray’
#  394|   
#  395|           for (i = 0; i < nColors; ++i) {
#  396|->             pColors64[i].pixel = pColors[i].pixel;
#  397|               pColors64[i].red = pColors[i].red;
#  398|               pColors64[i].green = pColors[i].green;

Error: COMPILER_WARNING: [#def612]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Display.c:124:29: warning[-Walloc-size-larger-than=]: argument 2 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807
#  124 |     xnestDefaultColormaps = xallocarray(xnestNumDefaultColormaps,
#      |                             ^
/usr/include/stdlib.h: scope_hint: In function 'InitOutput'
/usr/include/stdlib.h:701:14: note: in a call to allocation function 'reallocarray' declared here
#  701 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
#      |              ^
#  122|   
#  123|       xnestNumDefaultColormaps = xnestNumVisuals;
#  124|->     xnestDefaultColormaps = xallocarray(xnestNumDefaultColormaps,
#  125|                                           sizeof(Colormap));
#  126|       for (i = 0; i < xnestNumDefaultColormaps; i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def613]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c: scope_hint: In function ‘xnestRealizeFont’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c:71:39: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c:71:5: note: in expansion of macro ‘xnestFontPriv’
#   69|       xfont2_font_set_private(pFont, xnestFontPrivateIndex, priv);
#   70|   
#   71|->     xnestFontPriv(pFont)->font_struct = XLoadQueryFont(xnestDisplay, name);
#   72|   
#   73|       if (!xnestFontStruct(pFont))

Error: CLANG_WARNING: [#def614]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c:71:39: warning[core.NullDereference]: Access to field 'font_struct' results in a dereference of a null pointer
#   69|       xfont2_font_set_private(pFont, xnestFontPrivateIndex, priv);
#   70|   
#   71|->     xnestFontPriv(pFont)->font_struct = XLoadQueryFont(xnestDisplay, name);
#   72|   
#   73|       if (!xnestFontStruct(pFont))

Error: CLANG_WARNING: [#def615]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GC.c:145:23: warning[core.NullDereference]: Access to field 'font_struct' results in a dereference of a null pointer
#  143|   
#  144|       if (mask & GCFont)
#  145|->         values.font = xnestFont(pGC->font);
#  146|   
#  147|       if (mask & GCSubwindowMode)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def616]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GC.c: scope_hint: In function ‘xnestChangeClip’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GC.c:210:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pRects’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gc.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GC.c: scope_hint: In function ‘xnestChangeClip’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GC.c:207:18: note: in expansion of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GC.c:207:18: note: in expansion of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GC.c: scope_hint: In function ‘xnestChangeClip’
#  208|           pBox = RegionRects((RegionPtr) pValue);
#  209|           for (i = nRects; i-- > 0;) {
#  210|->             pRects[i].x = pBox[i].x1;
#  211|               pRects[i].y = pBox[i].y1;
#  212|               pRects[i].width = pBox[i].x2 - pBox[i].x1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def617]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c: scope_hint: In function ‘xnestPolyText8’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:273:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:34: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNGC.h:31:23: note: in expansion of macro ‘xnestGCPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:270:57: note: in expansion of macro ‘xnestGC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/gcstruct.h:56: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:23: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c: scope_hint: In function ‘xnestPolyText8’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNGC.h:31:23: note: in expansion of macro ‘xnestGCPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:270:57: note: in expansion of macro ‘xnestGC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Drawable.h:18: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:37: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNWindow.h:43:28: note: in expansion of macro ‘xnestWindowPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Drawable.h:23:4: note: in expansion of macro ‘xnestWindow’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:270:31: note: in expansion of macro ‘xnestDrawable’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c: scope_hint: In function ‘xnestPolyText8’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNWindow.h:43:28: note: in expansion of macro ‘xnestWindowPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Drawable.h:23:4: note: in expansion of macro ‘xnestWindow’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:270:31: note: in expansion of macro ‘xnestDrawable’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:35: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNFont.h:27:33: note: in expansion of macro ‘xnestFontPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:273:24: note: in expansion of macro ‘xnestFontStruct’
#  271|                   x, y, string, count);
#  272|   
#  273|->     width = XTextWidth(xnestFontStruct(pGC->font), string, count);
#  274|   
#  275|       return width + x;

Error: CLANG_WARNING: [#def618]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:273:24: warning[core.NullDereference]: Access to field 'font_struct' results in a dereference of a null pointer
#  271|                   x, y, string, count);
#  272|   
#  273|->     width = XTextWidth(xnestFontStruct(pGC->font), string, count);
#  274|   
#  275|       return width + x;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def619]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c: scope_hint: In function ‘xnestPolyText16’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:287:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNGC.h:31:23: note: in expansion of macro ‘xnestGCPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:284:59: note: in expansion of macro ‘xnestGC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c: scope_hint: In function ‘xnestPolyText16’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNGC.h:31:23: note: in expansion of macro ‘xnestGCPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:284:59: note: in expansion of macro ‘xnestGC’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNWindow.h:43:28: note: in expansion of macro ‘xnestWindowPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Drawable.h:23:4: note: in expansion of macro ‘xnestWindow’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:284:33: note: in expansion of macro ‘xnestDrawable’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c: scope_hint: In function ‘xnestPolyText16’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNWindow.h:43:28: note: in expansion of macro ‘xnestWindowPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Drawable.h:23:4: note: in expansion of macro ‘xnestWindow’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:284:33: note: in expansion of macro ‘xnestDrawable’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNFont.h:27:33: note: in expansion of macro ‘xnestFontPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:287:26: note: in expansion of macro ‘xnestFontStruct’
#  285|                     x, y, (XChar2b *) string, count);
#  286|   
#  287|->     width = XTextWidth16(xnestFontStruct(pGC->font), (XChar2b *) string, count);
#  288|   
#  289|       return width + x;

Error: CLANG_WARNING: [#def620]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/GCOps.c:287:26: warning[core.NullDereference]: Access to field 'font_struct' results in a dereference of a null pointer
#  285|                     x, y, (XChar2b *) string, count);
#  286|   
#  287|->     width = XTextWidth16(xnestFontStruct(pGC->font), (XChar2b *) string, count);
#  288|   
#  289|       return width + x;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def621]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Keyboard.c: scope_hint: In function ‘xnestKeyboardProc’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Keyboard.c:142:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘keymap’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Keyboard.c:26: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Keyboard.c:140:22: note: in expansion of macro ‘xallocarray’
#  140|               keymap = xallocarray(len, sizeof(KeySym));
#  141|               for (i = 0; i < len; ++i)
#  142|->                 keymap[i] = keymap64[i];
#  143|               XFree(keymap64);
#  144|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def622]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Screen.c: scope_hint: In function ‘xnestOpenScreen’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Screen.c:165:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘depths’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Screen.c:21: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Screen.c:161:15: note: in expansion of macro ‘xallocarray’
#  163|   
#  164|       depths = (DepthPtr) malloc(MAXDEPTH * sizeof(DepthRec));
#  165|->     depths[0].depth = 1;
#  166|       depths[0].numVids = 0;
#  167|       depths[0].vids = (VisualID *) malloc(MAXVISUALSPERDEPTH * sizeof(VisualID));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def623]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Screen.c:171:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘visuals’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Screen.c:161:15: note: in expansion of macro ‘xallocarray’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Screen.c:161:15: note: in expansion of macro ‘xallocarray’
#  169|   
#  170|       for (i = 0; i < xnestNumVisuals; i++) {
#  171|->         visuals[numVisuals].class = xnestVisuals[i].class;
#  172|           visuals[numVisuals].bitsPerRGBValue = xnestVisuals[i].bits_per_rgb;
#  173|           visuals[numVisuals].ColormapEntries = xnestVisuals[i].colormap_size;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def624]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Screen.c:221:61: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*<unknown>.vids + (long unsigned int)*<unknown>.numVids * 4’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Screen.c:161:15: note: in expansion of macro ‘xallocarray’
#  219|               FatalError("Visual table overflow");
#  220|           }
#  221|->         depths[depthIndex].vids[depths[depthIndex].numVids] =
#  222|               visuals[numVisuals].vid;
#  223|           depths[depthIndex].numVids++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def625]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Cursor.c:34: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Cursor.c: scope_hint: In function ‘dixSetScreenPrivate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNCursor.h:37:25: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc(4)’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Cursor.c:101:5: note: in expansion of macro ‘xnestSetCursorPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Cursor.c:101:5: note: in expansion of macro ‘xnestSetCursorPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Cursor.c:101:5: note: in expansion of macro ‘xnestSetCursorPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Cursor.c:24: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:171: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Cursor.c:21: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function ‘dixSetScreenPrivate’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Cursor.c:101:5: note: in expansion of macro ‘xnestSetCursorPriv’
#   35|   
#   36|   #define xnestSetCursorPriv(pCursor, pScreen, v) \
#   37|->     dixSetScreenPrivate(&(pCursor)->devPrivates, CursorScreenKey, pScreen, v)
#   38|   
#   39|   #define xnestCursor(pCursor, pScreen) \

Error: GCC_ANALYZER_WARNING (CWE-476): [#def626]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNFont.h:27:53: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c:73:10: note: in expansion of macro ‘xnestFontStruct’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c:71:5: note: in expansion of macro ‘xnestFontPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c:25: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c:71:5: note: in expansion of macro ‘xnestFontPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/XNFont.h:27:33: note: in expansion of macro ‘xnestFontPriv’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c:73:10: note: in expansion of macro ‘xnestFontStruct’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c:73:10: note: in expansion of macro ‘xnestFontStruct’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xnest/Font.c:73:10: note: in expansion of macro ‘xnestFontStruct’
#   25|     ((xnestPrivFont *)FontGetPrivate(pFont, xnestFontPrivateIndex))
#   26|   
#   27|-> #define xnestFontStruct(pFont) (xnestFontPriv(pFont)->font_struct)
#   28|   
#   29|   #define xnestFont(pFont) (xnestFontStruct(pFont)->fid)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def627]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:24: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c: scope_hint: In function 'ProcRRGetOutputInfo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:71:16: warning[-Wanalyzer-malloc-leak]: leak of 'extra'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:466:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:466:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:467:5: note: in expansion of macro 'VERIFY_RR_OUTPUT'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:467:5: note: in expansion of macro 'VERIFY_RR_OUTPUT'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:472:16: note: in expansion of macro 'rrGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:54: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c: scope_hint: In function 'ProcRRGetOutputInfo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:472:16: note: in expansion of macro 'rrGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c: scope_hint: In function 'ProcRRGetOutputInfo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:466:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
#   69|   #define REQUEST_SIZE_MATCH(req)\
#   70|       if ((sizeof(req) >> 2) != client->req_len)\
#   71|->          return(BadLength)
#   72|   
#   73|   #define REQUEST_AT_LEAST_SIZE(req) \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def628]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h:150: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compint.h:52: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c:48: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c: scope_hint: In function 'PanoramiXCompositeNameWindowPixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:71:16: warning[-Wanalyzer-malloc-leak]: leak of 'newPix'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c:712:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c:712:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c:720:5: note: in expansion of macro 'LEGAL_NEW_RESOURCE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c:720:5: note: in expansion of macro 'LEGAL_NEW_RESOURCE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiXsrv.h:9: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c:592: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/panoramiX.h:74:25: note: in expansion of macro 'FOR_NSCREENS_FORWARD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c:729:5: note: in expansion of macro 'FOR_NSCREENS'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c:743:14: note: in expansion of macro 'GetCompWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c:743:14: note: in expansion of macro 'GetCompWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c: scope_hint: In function 'PanoramiXCompositeNameWindowPixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c:743:14: note: in expansion of macro 'GetCompWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/composite/compext.c:712:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
#   69|   #define REQUEST_SIZE_MATCH(req)\
#   70|       if ((sizeof(req) >> 2) != client->req_len)\
#   71|->          return(BadLength)
#   72|   
#   73|   #define REQUEST_AT_LEAST_SIZE(req) \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def629]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h:150: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/pixmapstr.h:52: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:37: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c: scope_hint: In function 'ProcShapeGetRectangles'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:71:16: warning[-Wanalyzer-malloc-leak]: leak of 'rects'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:951:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:1194:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:35: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:1195:5: note: in expansion of macro 'swapl'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:951:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:199:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:963:18: note: in expansion of macro 'wInputShape'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:199:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:963:18: note: in expansion of macro 'wInputShape'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c: scope_hint: In function 'ProcShapeGetRectangles'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:1000:17: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/shape.c:951:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
#   69|   #define REQUEST_SIZE_MATCH(req)\
#   70|       if ((sizeof(req) >> 2) != client->req_len)\
#   71|->          return(BadLength)
#   72|   
#   73|   #define REQUEST_AT_LEAST_SIZE(req) \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def630]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/list.h:135:16: warning[-Wanalyzer-malloc-leak]: leak of 'AllocBarrierDevice()'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xibarriers.c: scope_hint: In function 'CreatePointerBarrierClient'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xibarriers.c:569:10: note: in expansion of macro 'GetBarrierScreen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:54: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xibarriers.c: scope_hint: In function 'CreatePointerBarrierClient'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xi/xibarriers.c:569:10: note: in expansion of macro 'GetBarrierScreen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def631]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/input.h:58: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:16: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c: scope_hint: In function 'DestroyFragments'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/list.h:325:10: warning[-Wanalyzer-infinite-loop]: infinite loop
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:137:5: note: in expansion of macro 'xorg_list_for_each_entry_safe'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:137:5: note: in expansion of macro 'xorg_list_for_each_entry_safe'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:137:5: note: in expansion of macro 'xorg_list_for_each_entry_safe'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c: scope_hint: In function 'DestroyFragments'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:137:5: note: in expansion of macro 'xorg_list_for_each_entry_safe'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/Xext/xres.c:137: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): [#def632]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/input.h:58: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/inputstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/touch.c:31: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/touch.c: scope_hint: In function 'TouchAddRegularListener'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/list.h:387:21: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/touch.c:800:9: note: in expansion of macro 'nt_list_for_each_entry'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/touch.c:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:192:33: note: in expansion of macro 'wUseDefault'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/touch.c:797:18: note: in expansion of macro 'wOtherInputMasks'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/touch.c:800:9: note: in expansion of macro 'nt_list_for_each_entry'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/dix/touch.c:800: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): [#def633]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/glyph.c:31: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/glyph.c: scope_hint: In function 'ResizeGlyphHash'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:105:14: warning[-Wanalyzer-malloc-leak]: leak of 'newHash.table'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/glyph.c:411:16: note: in expansion of macro 'TRUE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/glyph.c: scope_hint: In function 'ResizeGlyphHash'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/glyph.c:411:16: note: in expansion of macro 'TRUE'
#  103|   
#  104|   #ifndef TRUE
#  105|-> #define TRUE 1
#  106|   #define FALSE 0
#  107|   #endif

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def635]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/hostx.c:62: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/hostx.c: scope_hint: In function ‘hostx_get_visuals_info’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:106:15: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp_visuals’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrlog.h:64:70: note: in definition of macro ‘EPHYR_RETURN_VAL_IF_FAIL’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/hostx.c:1383:58: note: in expansion of macro ‘FALSE’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/hostx.c:1383:5: note: in expansion of macro ‘EPHYR_RETURN_VAL_IF_FAIL’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/ephyrlog.h:64:70: note: in definition of macro ‘EPHYR_RETURN_VAL_IF_FAIL’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/ephyr/hostx.c:1383:58: note: in expansion of macro ‘FALSE’
#  104|   #ifndef TRUE
#  105|   #define TRUE 1
#  106|-> #define FALSE 0
#  107|   #endif
#  108|   

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def637]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:64: warning[-Wanalyzer-malloc-leak]: leak of 'rmlvo_dflts.layout'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:530:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:531:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:532:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
#  437|   
#  438|   #define BUG_RETURN_VAL(cond, val) \
#  439|->         do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return (val); } } while(0)
#  440|   
#  441|   #define BUG_RETURN_VAL_MSG(cond, val, ...) \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def638]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:64: warning[-Wanalyzer-malloc-leak]: leak of 'rmlvo_dflts.model'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:530:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:531:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:532:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
#  437|   
#  438|   #define BUG_RETURN_VAL(cond, val) \
#  439|->         do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return (val); } } while(0)
#  440|   
#  441|   #define BUG_RETURN_VAL_MSG(cond, val, ...) \

Error: GCC_ANALYZER_WARNING (CWE-401): [#def639]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:64: warning[-Wanalyzer-malloc-leak]: leak of 'rmlvo_dflts.options'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:530:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:531:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:532:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
#  437|   
#  438|   #define BUG_RETURN_VAL(cond, val) \
#  439|->         do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return (val); } } while(0)
#  440|   
#  441|   #define BUG_RETURN_VAL_MSG(cond, val, ...) \

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def641]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:64: warning[-Wanalyzer-malloc-leak]: leak of 'rmlvo_dflts.variant'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:530:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:531:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:439:18: note: in definition of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:532:5: note: in expansion of macro 'BUG_RETURN_VAL'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbInit.c:529:5: note: in expansion of macro 'BUG_RETURN_VAL'
#  437|   
#  438|   #define BUG_RETURN_VAL(cond, val) \
#  439|->         do { if (cond) { __BUG_WARN_MSG(cond, 0, NULL); return (val); } } while(0)
#  440|   
#  441|   #define BUG_RETURN_VAL_MSG(cond, val, ...) \

Error: COMPILER_WARNING: [#def642]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa.h:34: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_priv.h:33: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c:33: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/exa/exa_accel.c: scope_hint: In function 'exaPolySegment'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/os.h:87:32: warning[-Walloc-size-larger-than=]: argument 2 range [18446744071562067968, 18446744073709551615] exceeds maximum object size 9223372036854775807
#   87 | #define xallocarray(num, size) reallocarray(NULL, (num), (size))
#      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:139: included_from: Included from here.
/usr/include/stdlib.h:701:14: note: in a call to allocation function 'reallocarray' declared here
#  701 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
#      |              ^~~~~~~~~~~~
#   85|   #define xnfstrdup(s) XNFstrdup(s)
#   86|   
#   87|-> #define xallocarray(num, size) reallocarray(NULL, (num), (size))
#   88|   #define xnfallocarray(num, size) XNFreallocarray(NULL, (num), (size))
#   89|   #define xnfreallocarray(ptr, num, size) XNFreallocarray((ptr), (num), (size))

Error: COMPILER_WARNING: [#def643]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/randrstr.h:38: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:24: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c: scope_hint: In function 'ProcRRSetCrtcConfig'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/os.h:87:32: warning[-Walloc-size-larger-than=]: argument 2 range [18446744073709551609, 18446744073709551615] exceeds maximum object size 9223372036854775807
#   87 | #define xallocarray(num, size) reallocarray(NULL, (num), (size))
#      |                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:139: included_from: Included from here.
/usr/include/stdlib.h:701:14: note: in a call to allocation function 'reallocarray' declared here
#  701 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
#      |              ^~~~~~~~~~~~
#   85|   #define xnfstrdup(s) XNFstrdup(s)
#   86|   
#   87|-> #define xallocarray(num, size) reallocarray(NULL, (num), (size))
#   88|   #define xnfallocarray(num, size) XNFreallocarray(NULL, (num), (size))
#   89|   #define xnfreallocarray(ptr, num, size) XNFreallocarray((ptr), (num), (size))

Error: CLANG_WARNING: [#def644]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/ramdac/xf86CursorRD.c:6: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86.h:44: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/xfree86/common/xf86str.h:39: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h:122:5: warning[unix.Malloc]: Use of memory after it is freed
#  120|   {
#  121|       assert(key->initialized);
#  122|->     return (char *) (*privates) + key->offset;
#  123|   }
#  124|   

Error: CLANG_WARNING: [#def645]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrpointer.c:23: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:54: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h:122:21: warning[core.NullDereference]: Dereference of null pointer (loaded from variable 'privates')
#  120|   {
#  121|       assert(key->initialized);
#  122|->     return (char *) (*privates) + key->offset;
#  123|   }
#  124|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def646]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kdrive.h:31: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kdrive.c:26: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'KdAllocatePrivates'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h:148:1: warning[-Wanalyzer-malloc-leak]: leak of 'pScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kdrive.c:536:5: note: in expansion of macro 'KdSetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kdrive.c:536:5: note: in expansion of macro 'KdSetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:171: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kdrive.c: scope_hint: In function 'KdAllocatePrivates'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kdrive.c:536:5: note: in expansion of macro 'KdSetScreenPriv'
#  146|       assert(key->size == 0);
#  147|       *(void **) dixGetPrivateAddr(privates, key) = val;
#  148|-> }
#  149|   
#  150|   #include "dix.h"

Error: GCC_ANALYZER_WARNING (CWE-401): [#def647]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kdrive.h:31: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kxv.c:41: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'KdXVEnlistPortInWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h:148:1: warning[-Wanalyzer-malloc-leak]: leak of 'winPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kdrive.h:297:61: note: in expansion of macro 'KdGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kxv.c:1006:5: note: in expansion of macro 'KdScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kxv.c: scope_hint: In function 'KdXVEnlistPortInWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kdrive.h:297:61: note: in expansion of macro 'KdGetScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kxv.c:1006:5: note: in expansion of macro 'KdScreenPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/regionstr.h: scope_hint: In function 'KdXVEnlistPortInWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kxv.c: scope_hint: In function 'KdXVEnlistPortInWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kxv.c:715:26: note: in expansion of macro 'GET_KDXV_WINDOW'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/privates.h: scope_hint: In function 'KdXVEnlistPortInWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kxv.c:715:26: note: in expansion of macro 'GET_KDXV_WINDOW'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/hw/kdrive/src/kxv.c: scope_hint: In function 'KdXVEnlistPortInWindow'
#  146|       assert(key->size == 0);
#  147|       *(void **) dixGetPrivateAddr(privates, key) = val;
#  148|-> }
#  149|   
#  150|   #include "dix.h"

Error: GCC_ANALYZER_WARNING (CWE-126): [#def648]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/regionstr.h:74:18: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'fbOverlayCopyWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c:32: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c:193:36: note: in expansion of macro 'fbOverlayGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'fbOverlayCopyWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c:193:36: note: in expansion of macro 'fbOverlayGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'fbOverlayCopyWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'fbOverlayCopyWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/regionstr.h:74:18: note: read of 8 bytes from after the end of 'layerRgn'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def649]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/regionstr.h: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/regionstr.h:165:16: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c:193:36: note: in expansion of macro 'fbOverlayGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c:193:36: note: in expansion of macro 'fbOverlayGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/regionstr.h:165:16: note: read of 8 bytes from after the end of 'layerRgn'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def650]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miexpose.c:83: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def651]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:30: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/regionstr.h: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:42: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damagestr.h:102:32: note: in expansion of macro 'damageGetGCPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:363:5: note: in expansion of macro 'damageGCPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:1417:5: note: in expansion of macro 'DAMAGE_GC_OP_PROLOGUE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damagestr.h:102:32: note: in expansion of macro 'damageGetGCPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:363:5: note: in expansion of macro 'damageGCPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:1417:5: note: in expansion of macro 'DAMAGE_GC_OP_PROLOGUE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damagestr.h:87:36: note: in expansion of macro 'damageGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:137:5: note: in expansion of macro 'damageScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damagestr.h:87:36: note: in expansion of macro 'damageGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:137:5: note: in expansion of macro 'damageScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:116:27: note: in expansion of macro 'getDrawableDamage'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:138:5: note: in expansion of macro 'drawableDamage'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:109:12: note: in expansion of macro 'getPixmapDamageRef'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:109:12: note: in expansion of macro 'getPixmapDamageRef'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:116:27: note: in expansion of macro 'getDrawableDamage'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/damage/damage.c:138:5: note: in expansion of macro 'drawableDamage'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def652]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c:27: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mi.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/region.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def653]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/regionstr.h:167:23: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c:193:36: note: in expansion of macro 'fbOverlayGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c:193:36: note: in expansion of macro 'fbOverlayGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/fb/fboverlay.c: scope_hint: In function 'RegionUninit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/regionstr.h:167:23: note: write of 8 bytes to beyond the end of 'layerRgn'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def654]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def655]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def656]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c: scope_hint: In function 'miFillWideEllipse'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:814:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*span.lx'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:63: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:398:5: note: in expansion of macro 'MIWIDEARCSETUP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:398:5: note: in expansion of macro 'MIWIDEARCSETUP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:398:5: note: in expansion of macro 'MIWIDEARCSETUP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:398:5: note: in expansion of macro 'MIWIDEARCSETUP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def657]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def658]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:834:31: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*span.lx'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:398:5: note: in expansion of macro 'MIWIDEARCSETUP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:398:5: note: in expansion of macro 'MIWIDEARCSETUP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:398:5: note: in expansion of macro 'MIWIDEARCSETUP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def659]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:853:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*span.rw'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:398:5: note: in expansion of macro 'MIWIDEARCSETUP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:398:5: note: in expansion of macro 'MIWIDEARCSETUP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:398:5: note: in expansion of macro 'MIWIDEARCSETUP'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def660]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def661]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def662]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c: scope_hint: In function 'miComputeArcs'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:2157:36: warning[-Wanalyzer-out-of-bounds]: buffer over-read
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miarc.c:56: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def663]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def664]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def665]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def666]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def667]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mibitblt.c:135:16: warning[deadcode.DeadStores]: Although the value stored to 'ppt' is used in the enclosing expression, the value is never actually read from 'ppt'
#  133|       }
#  134|   
#  135|->     pptFirst = ppt = xallocarray(heightSrc, sizeof(DDXPointRec));
#  136|       pwidthFirst = pwidth = xallocarray(heightSrc, sizeof(unsigned int));
#  137|       numRects = RegionNumRects(prgnSrcClip);

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

Error: CLANG_WARNING: [#def669]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mibitblt.c:667:1: warning[unix.Malloc]: Potential memory leak
#  665|                             (MiBits *) pDst);
#  666|       }
#  667|-> }
#  668|   
#  669|   /* MIPUTIMAGE -- public entry for the PutImage request

Error: GCC_ANALYZER_WARNING (CWE-787): [#def670]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micmap.c: scope_hint: In function 'miInitVisuals'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micmap.c:480:16: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micmap.c:281:23: note: in expansion of macro '_RZ'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micmap.c:331:19: note: in expansion of macro '_RM'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/screenint.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/scrnintstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micmap.c:36: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def671]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def672]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: GCC_ANALYZER_WARNING (CWE-401): [#def673]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c: scope_hint: In function 'miCopyRegion'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c:127:5: warning[-Wanalyzer-malloc-leak]: leak of 'pboxNew1'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c: scope_hint: In function 'miCopyRegion'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c: scope_hint: In function 'miCopyRegion'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/miscstruct.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/regionstr.h:52: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c:65:24: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c:65:24: note: in expansion of macro 'xallocarray'
#  125|   
#  126|       free(pboxNew1);
#  127|->     free(pboxNew2);
#  128|   }
#  129|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def674]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c:127:5: warning[-Wanalyzer-malloc-leak]: leak of 'pboxNew2'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c: scope_hint: In function 'miCopyRegion'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c: scope_hint: In function 'miCopyRegion'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c:96:24: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/micopy.c:96:24: note: in expansion of macro 'xallocarray'
#  125|   
#  126|       free(pboxNew1);
#  127|->     free(pboxNew2);
#  128|   }
#  129|   

Error: CLANG_WARNING: [#def675]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def676]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mieq.c:491:9: warning[core.NullDereference]: Dereference of null pointer
#  489|       else {
#  490|           /* process slave first, then master */
#  491|->         dev->public.processInputProc(event, dev);
#  492|   
#  493|           /* Check for the SD's master in case the device got detached

Error: GCC_ANALYZER_WARNING (CWE-401): [#def677]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miexpose.c: scope_hint: In function 'miPaintWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miexpose.c:533:47: warning[-Wanalyzer-malloc-leak]: leak of 'prect'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miexpose.c:82: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miexpose.c:518:13: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miexpose.c: scope_hint: In function 'miPaintWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miexpose.c: scope_hint: In function 'miPaintWindow'
#  531|       numRects = RegionNumRects(prgn);
#  532|       pbox = RegionRects(prgn);
#  533|->     for (i = numRects; --i >= 0; pbox++, prect++) {
#  534|           prect->x = pbox->x1 - draw_x_off;
#  535|           prect->y = pbox->y1 - draw_y_off;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def678]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miexpose.c:543:5: warning[-Wanalyzer-malloc-leak]: leak of 'prect'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miexpose.c:518:13: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miexpose.c: scope_hint: In function 'miPaintWindow'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miexpose.c: scope_hint: In function 'miPaintWindow'
#  541|       free(prect);
#  542|   
#  543|->     FreeScratchGC(pGC);
#  544|   }
#  545|   

Error: CLANG_WARNING: [#def679]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def680]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def681]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miinitext.c: scope_hint: In function 'InitExtensions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miinitext.c:262:16: warning[-Wanalyzer-use-after-free]: use after 'reallocarray' of 'ext'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miinitext.c: scope_hint: In function 'InitExtensions'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miinitext.c: scope_hint: In function 'InitExtensions'
#  260|       for (i = 0; i < numExtensionModules; i++) {
#  261|           ext = &ExtensionModuleList[i];
#  262|->         if (ext->initFunc != NULL &&
#  263|               (ext->disablePtr == NULL || !*ext->disablePtr)) {
#  264|               LogMessageVerb(X_INFO, 3, "Initializing extension %s\n",

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

Error: GCC_ANALYZER_WARNING (CWE-415): [#def683]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miinitext.c: scope_hint: In function 'NewExtensionModuleList'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miinitext.c:283:27: warning[-Wanalyzer-double-free]: double-'reallocarray' of 'save'
#  281|   
#  282|       n = numExtensionModules + size;
#  283|->     ExtensionModuleList = reallocarray(ExtensionModuleList, n,
#  284|                                          sizeof(ExtensionModule));
#  285|       if (ExtensionModuleList == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-415): [#def684]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miinitext.c: scope_hint: In function ‘NewExtensionModuleList’
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miinitext.c:283:27: warning[-Wanalyzer-double-free]: double-‘reallocarray’ of ‘save’
#  281|   
#  282|       n = numExtensionModules + size;
#  283|->     ExtensionModuleList = reallocarray(ExtensionModuleList, n,
#  284|                                          sizeof(ExtensionModule));
#  285|       if (ExtensionModuleList == NULL) {

Error: CLANG_WARNING: [#def685]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def686]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def687]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def688]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:646:27: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pWETE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:135:28: note: in definition of macro 'max'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:645:25: note: in expansion of macro 'EVALUATEEDGEWINDING'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:645:25: note: in expansion of macro 'EVALUATEEDGEWINDING'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:645:25: note: in expansion of macro 'EVALUATEEDGEWINDING'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def689]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:61: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c: scope_hint: In function 'miFillGeneralPoly'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.h:162:12: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pAET'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:593:17: note: in expansion of macro 'EVALUATEEDGEEVENODD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/window.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/windowstr.h:50: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:56: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:135:28: note: in definition of macro 'max'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:592:17: note: in expansion of macro 'EVALUATEEDGEEVENODD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:592:17: note: in expansion of macro 'EVALUATEEDGEEVENODD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:592:17: note: in expansion of macro 'EVALUATEEDGEEVENODD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:592:17: note: in expansion of macro 'EVALUATEEDGEEVENODD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mipoly.c:593:17: note: in expansion of macro 'EVALUATEEDGEEVENODD'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def690]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/miwideline.c:1411:8: warning[core.uninitialized.Assign]: Assigned value is garbage or undefined
# 1409|       Bool left;
# 1410|   
# 1411|->     dx = -face->dy;
# 1412|       dy = face->dx;
# 1413|       xa = face->xa;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def691]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c: scope_hint: In function 'RootlessUpdateScreenPixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:103:16: warning[-Wanalyzer-malloc-leak]: leak of '((RootlessScreenRec)**pScreen.devPrivates).pixmap_data'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:51: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:81:28: note: in expansion of macro 'SCREENREC'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/mi/mi.h:56: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:36: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c: scope_hint: In function 'RootlessUpdateScreenPixmap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:81:28: note: in expansion of macro 'SCREENREC'
#  101|           memset(s->pixmap_data, 0xFF, s->pixmap_data_size);
#  102|   
#  103|->         pScreen->ModifyPixmapHeader(pPix, pScreen->width, pScreen->height,
#  104|                                       pScreen->rootDepth,
#  105|                                       BitsPerPixel(pScreen->rootDepth),

Error: GCC_ANALYZER_WARNING (CWE-465): [#def692]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c: scope_hint: In function 'RootlessComposite'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:264:8: warning[-Wanalyzer-deref-before-check]: check of '*pDst.pDrawable' for NULL after already dereferencing it
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/pixmapstr.h:55: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:39: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:244:27: note: in expansion of macro 'GetPictureScreen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c: scope_hint: In function 'RootlessComposite'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:244:27: note: in expansion of macro 'GetPictureScreen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:258:21: note: in expansion of macro 'SCREENREC'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c: scope_hint: In function 'RootlessComposite'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:258:21: note: in expansion of macro 'SCREENREC'
#  262|       if (maskWin && IsFramedWindow(maskWin))
#  263|           RootlessStartDrawing(maskWin);
#  264|->     if (dstWin && IsFramedWindow(dstWin))
#  265|           RootlessStartDrawing(dstWin);
#  266|   

Error: GCC_ANALYZER_WARNING (CWE-465): [#def693]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c: scope_hint: In function 'RootlessGlyphs'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:297:8: warning[-Wanalyzer-deref-before-check]: check of '*pDst.pDrawable' for NULL after already dereferencing it
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:284:27: note: in expansion of macro 'GetPictureScreen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c: scope_hint: In function 'RootlessGlyphs'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/rootless/rootlessScreen.c:284:27: note: in expansion of macro 'GetPictureScreen'
#  295|       if (srcWin && IsFramedWindow(srcWin))
#  296|           RootlessStartDrawing(srcWin);
#  297|->     if (dstWin && IsFramedWindow(dstWin))
#  298|           RootlessStartDrawing(dstWin);
#  299|   

Error: CLANG_WARNING: [#def694]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/shadow/shafb4.c:76:26: warning[deadcode.DeadStores]: Value stored to 'p' is never read
#   74|       *(CARD32 *)p = d[1]; p += stride;
#   75|       *(CARD32 *)p = d[2]; p += stride;
#   76|->     *(CARD32 *)p = d[0]; p += stride;
#   77|   }
#   78|   

Error: CLANG_WARNING: [#def695]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/shadow/shafb8.c:80:26: warning[deadcode.DeadStores]: Value stored to 'p' is never read
#   78|       *(CARD32 *)p = d[4]; p += stride;
#   79|       *(CARD32 *)p = d[2]; p += stride;
#   80|->     *(CARD32 *)p = d[0]; p += stride;
#   81|   }
#   82|   

Error: CLANG_WARNING: [#def696]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/shadow/shpacked.c:101:17: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#   99|                   width -= i;
#  100|                   scr += i;
#  101|->                 memcpy(win, sha, i * sizeof(FbBits));
#  102|                   sha += i;
#  103|               }

Error: CLANG_WARNING: [#def697]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/shadow/shplanar.c:158:32: warning[core.NullDereference]: Dereference of null pointer
#  156|                           GetBits(plane, 2, s3);
#  157|                           GetBits(plane, 3, s4);
#  158|->                         *win++ = s1 | (s2 << 8) | (s3 << 16) | (s4 << 24);
#  159|                           sha += 4;
#  160|                       }

Error: CLANG_WARNING: [#def698]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/miext/shadow/shplanar8.c:160:32: warning[core.NullDereference]: Dereference of null pointer
#  158|                           GetBits(plane, 4, s3);
#  159|                           GetBits(plane, 6, s4);
#  160|->                         *win++ = s1 | (s2 << 8) | (s3 << 16) | (s4 << 24);
#  161|                           sha += 8;
#  162|                       }

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

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

Error: CLANG_WARNING: [#def701]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/access.c:1411:32: warning[core.NullDereference]: Access to field 'errorValue' results in a dereference of a null pointer (loaded from variable 'client')
# 1409|       case FamilyServerInterpreted:
# 1410|           if ((len = CheckAddr(family, pAddr, length)) < 0) {
# 1411|->             client->errorValue = length;
# 1412|               return BadValue;
# 1413|           }

Error: CLANG_WARNING: [#def702]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/access.c:1417:28: warning[core.NullDereference]: Access to field 'errorValue' results in a dereference of a null pointer (loaded from variable 'client')
# 1415|       case FamilyLocal:
# 1416|       default:
# 1417|->         client->errorValue = family;
# 1418|           return BadValue;
# 1419|       }

Error: COMPILER_WARNING: [#def703]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/io.c: scope_hint: In function 'ResetCurrentRequest'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/io.c:565:5: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
#  565 |     register ConnectionInputPtr oci = oc->input;
#      |     ^~~~~~~~
#  563|           return;
#  564|   
#  565|->     register ConnectionInputPtr oci = oc->input;
#  566|       register xReq *request;
#  567|       int gotnow, needed;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/io.c: scope_hint: In function 'FlushClient'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/io.c:838:16: warning[-Wanalyzer-malloc-leak]: leak of 'obuf'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/io.c: scope_hint: In function 'FlushClient'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/io.c:869:16: note: in definition of macro 'InsertIOV'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/io.c:76: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/osdep.h:70:23: note: in definition of macro 'ETEST'
#  836|   
#  837|       if (!oco)
#  838|-> 	return 0;
#  839|       written = 0;
#  840|       padsize = padding_for_int32(extraCount);

Error: CLANG_WARNING: [#def705]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/log.c:830:29: warning[core.UndefinedBinaryOperatorResult]: The left operand of '==' is a garbage value due to array index out of bounds
#  828|           buf[len - 1] = '\n';
#  829|   
#  830|->     newline = (buf[len - 1] == '\n');
#  831|       LogSWrite(verb, buf, len, newline);
#  832|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def706]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/osinit.c: scope_hint: In function 'OsInit'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/osinit.c:325:1: warning[-Wanalyzer-file-leak]: leak of FILE 'err'
#  323|       LogInit(NULL, NULL);
#  324|       SmartScheduleInit();
#  325|-> }
#  326|   
#  327|   void

Error: GCC_ANALYZER_WARNING (CWE-401): [#def707]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/osinit.c:325:1: warning[-Wanalyzer-malloc-leak]: leak of 'err'
#  323|       LogInit(NULL, NULL);
#  324|       SmartScheduleInit();
#  325|-> }
#  326|   
#  327|   void

Error: GCC_ANALYZER_WARNING (CWE-476): [#def708]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/ospoll.c: scope_hint: In function 'ospoll_create'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def709]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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-476): [#def710]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/utils.c: scope_hint: In function 'set_font_authorizations'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/utils.c:1125:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
# 1123|   
# 1124|           p = result;
# 1125|->         *p++ = sizeof(AUTHORIZATION_NAME) >> 8;
# 1126|           *p++ = sizeof(AUTHORIZATION_NAME) & 0xff;
# 1127|           *p++ = (len) >> 8;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def711]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/utils.c: scope_hint: In function 'Fopen'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/utils.c:1613:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'fopen(file,  type)' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/utils.c:69: included_from: Included from here.
/usr/include/stdio.h:184:12: note: argument 1 of 'fclose' must be non-null
# 1611|   
# 1612|       if (seteuid(euid) == -1) {
# 1613|->         fclose(iop);
# 1614|           return NULL;
# 1615|       }

Error: GCC_ANALYZER_WARNING (CWE-762): [#def712]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/utils.c: scope_hint: In function 'xstrtokenize'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/utils.c:2080:17: warning[-Wanalyzer-mismatching-deallocation]: 'list' should have been deallocated with 'free' but was deallocated with 'reallocarray'
# 2078|           goto error;
# 2079|       for (tok = strtok(tmp, separators); tok; tok = strtok(NULL, separators)) {
# 2080|->         nlist = reallocarray(list, num + 2, sizeof(*list));
# 2081|           if (!nlist)
# 2082|               goto error;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def713]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/xdmcp.c: scope_hint: In function 'get_mcast_options'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/xdmcp.c:1501:29: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'mcastinfo'
# 1499|   
# 1500|               mcastinfo = malloc(sizeof(struct multicastinfo));
# 1501|->             mcastinfo->next = NULL;
# 1502|               mcastinfo->ai = firstai;
# 1503|               mcastinfo->hops = hopcount;

Error: COMPILER_WARNING (CWE-477): [#def714]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/xsha1.c: scope_hint: In function 'x_sha1_init'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/xsha1.c:261:5: warning[-Wdeprecated-declarations]: 'SHA1_Init' is deprecated: Since OpenSSL 3.0
#  261 |     ret = SHA1_Init(ctx);
#      |     ^~~
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/xsha1.c:251: included_from: Included from here.
/usr/include/openssl/sha.h:49:27: note: declared here
#   49 | OSSL_DEPRECATEDIN_3_0 int SHA1_Init(SHA_CTX *c);
#      |                           ^~~~~~~~~
#  259|       if (!ctx)
#  260|           return NULL;
#  261|->     ret = SHA1_Init(ctx);
#  262|       if (!ret) {
#  263|           free(ctx);

Error: COMPILER_WARNING (CWE-477): [#def715]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/xsha1.c: scope_hint: In function 'x_sha1_update'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/xsha1.c:275:5: warning[-Wdeprecated-declarations]: 'SHA1_Update' is deprecated: Since OpenSSL 3.0
#  275 |     ret = SHA1_Update(sha_ctx, data, size);
#      |     ^~~
/usr/include/openssl/sha.h:50:27: note: declared here
#   50 | OSSL_DEPRECATEDIN_3_0 int SHA1_Update(SHA_CTX *c, const void *data, size_t len);
#      |                           ^~~~~~~~~~~
#  273|       SHA_CTX *sha_ctx = ctx;
#  274|   
#  275|->     ret = SHA1_Update(sha_ctx, data, size);
#  276|       if (!ret)
#  277|           free(sha_ctx);

Error: COMPILER_WARNING (CWE-477): [#def716]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/xsha1.c: scope_hint: In function 'x_sha1_final'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/os/xsha1.c:287:5: warning[-Wdeprecated-declarations]: 'SHA1_Final' is deprecated: Since OpenSSL 3.0
#  287 |     ret = SHA1_Final(result, sha_ctx);
#      |     ^~~
/usr/include/openssl/sha.h:51:27: note: declared here
#   51 | OSSL_DEPRECATEDIN_3_0 int SHA1_Final(unsigned char *md, SHA_CTX *c);
#      |                           ^~~~~~~~~~
#  285|       SHA_CTX *sha_ctx = ctx;
#  286|   
#  287|->     ret = SHA1_Final(result, sha_ctx);
#  288|       free(sha_ctx);
#  289|       return ret;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def717]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/present/present_notify.c: scope_hint: In function 'present_create_notifies'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/present/present_notify.c:87:19: warning[-Wanalyzer-malloc-leak]: leak of 'notifies'
#   85|           return BadAlloc;
#   86|   
#   87|->     for (i = 0; i < num_notifies; i++) {
#   88|           status = dixLookupWindow(&notifies[i].window, x_notifies[i].window, client, DixGetAttrAccess);
#   89|           if (status != Success)

Error: CLANG_WARNING: [#def718]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/present/present_notify.c:99:12: warning[unix.Malloc]: Potential leak of memory pointed to by 'notifies'
#   97|           added = i;
#   98|       }
#   99|->     return Success;
#  100|   
#  101|   bail:

Error: CLANG_WARNING: [#def719]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/present/present_scmd.c:762:36: warning[core.NullDereference]: Access to field 'info' results in a dereference of a null pointer (loaded from variable 'screen_priv')
#  760|                                      idle_fence,
#  761|                                      options,
#  762|->                                    screen_priv->info ? &screen_priv->info->capabilities : NULL,
#  763|                                      notifies,
#  764|                                      num_notifies,

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

Error: GCC_ANALYZER_WARNING (CWE-688): [#def721]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c: scope_hint: In function 'RRCrtcNotify'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:195:5: warning[-Wanalyzer-null-argument]: use of NULL 'outputs' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:24: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1291:5: note: in expansion of macro 'REQUEST_AT_LEAST_SIZE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1294:5: note: in expansion of macro 'VERIFY_RR_CRTC'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1305:9: note: in expansion of macro 'VERIFY_RR_MODE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1305:9: note: in expansion of macro 'VERIFY_RR_MODE'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/randrstr.h:38: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1310:19: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1371:16: note: in expansion of macro 'rrGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:54: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c: scope_hint: In function 'RRCrtcNotify'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1371:16: note: in expansion of macro 'rrGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/randrstr.h:418:52: note: in expansion of macro 'rrGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:735:5: note: in expansion of macro 'rrScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c: scope_hint: In function 'RRCrtcNotify'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/randrstr.h:418:52: note: in expansion of macro 'rrGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:735:5: note: in expansion of macro 'rrScrPriv'
<built-in>: note: argument 2 of '__builtin_memcpy' must be non-null
#  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: [#def722]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def723]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: CLANG_WARNING: [#def724]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:751:10: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  749|           crtc->rotation == rotation &&
#  750|           crtc->numOutputs == numOutputs &&
#  751|->         !memcmp(crtc->outputs, outputs, numOutputs * sizeof(RROutputPtr)) &&
#  752|           !RRCrtcPendingProperties(crtc) && !RRCrtcPendingTransform(crtc) &&
#  753|           !crtcChanged) {

Error: CLANG_WARNING: [#def725]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1233:24: warning[core.NullDereference]: Array access (from variable 'outputs') results in a null pointer dereference
# 1231|   
# 1232|           for (i = 0; i < crtc->numOutputs; i++) {
# 1233|->             outputs[i] = crtc->outputs[i]->id;
# 1234|               if (client->swapped)
# 1235|                   swapl(&outputs[i]);

Error: CLANG_WARNING: [#def726]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1242:37: warning[core.NullDereference]: Array access (from variable 'possible') results in a null pointer dereference
# 1240|                   for (j = 0; j < pScrPriv->outputs[i]->numCrtcs; j++)
# 1241|                       if (pScrPriv->outputs[i]->crtcs[j] == crtc) {
# 1242|->                         possible[k] = pScrPriv->outputs[i]->id;
# 1243|                           if (client->swapped)
# 1244|                               swapl(&possible[k]);

Error: COMPILER_WARNING: [#def727]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c: scope_hint: In function 'ProcRRSetCrtcConfig'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1310:19: warning[-Walloc-size-larger-than=]: argument 2 range [18446744073709551609, 18446744073709551615] exceeds maximum object size 9223372036854775807
# 1310 |         outputs = xallocarray(numOutputs, sizeof(RROutputPtr));
#      |                   ^
/usr/include/stdlib.h:701:14: note: in a call to allocation function 'reallocarray' declared here
#  701 | extern void *reallocarray (void *__ptr, size_t __nmemb, size_t __size)
#      |              ^
# 1308|       }
# 1309|       if (numOutputs) {
# 1310|->         outputs = xallocarray(numOutputs, sizeof(RROutputPtr));
# 1311|           if (!outputs)
# 1312|               return BadAlloc;

Error: CLANG_WARNING: [#def728]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1376:9: warning[deadcode.DeadStores]: Value stored to 'time' is never read
# 1374|   
# 1375|       if (!pScrPriv) {
# 1376|->         time = currentTime;
# 1377|           status = RRSetConfigFailed;
# 1378|           goto sendReply;

Error: CLANG_WARNING: [#def729]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1584:9: warning[deadcode.DeadStores]: Value stored to 'time' is never read
# 1582|   
# 1583|       if (!pScrPriv) {
# 1584|->         time = currentTime;
# 1585|           status = RRSetConfigFailed;
# 1586|           goto sendReply;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def730]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1698:9: warning[-Wanalyzer-null-argument]: use of NULL 'extra' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1670:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1671:5: note: in expansion of macro 'VERIFY_RR_CRTC'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1671:5: note: in expansion of macro 'VERIFY_RR_CRTC'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
# 1696|       WriteToClient(client, sizeof(xRRGetCrtcGammaReply), &reply);
# 1697|       if (crtc->gammaSize) {
# 1698|->         memcpy(extra, crtc->gammaRed, len);
# 1699|           client->pSwapReplyFunc = (ReplySwapPtr) CopySwap16Write;
# 1700|           WriteSwappedDataToClient(client, len, extra);

Error: CLANG_WARNING: [#def731]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrcrtc.c:1860:5: warning[deadcode.DeadStores]: Value stored to 'extra' is never read
# 1858|   
# 1859|       transform_encode(client, &reply->currentTransform, &current->transform);
# 1860|->     extra += transform_filter_encode(client, extra,
# 1861|                                        &reply->currentNbytesFilter,
# 1862|                                        &reply->currentNparamsFilter, current);

Error: CLANG_WARNING: [#def732]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def733]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def734]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def735]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c: scope_hint: In function 'RROutputSetCrtcs'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def736]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def737]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:540:22: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:466:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:467:5: note: in expansion of macro 'VERIFY_RR_OUTPUT'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:467:5: note: in expansion of macro 'VERIFY_RR_OUTPUT'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:472:16: note: in expansion of macro 'rrGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c: scope_hint: In function 'ProcRRGetOutputInfo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def738]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def739]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def740]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def741]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def742]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:558:5: warning[-Wanalyzer-null-argument]: use of NULL 'name' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:466:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:467:5: note: in expansion of macro 'VERIFY_RR_OUTPUT'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:467:5: note: in expansion of macro 'VERIFY_RR_OUTPUT'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c:472:16: note: in expansion of macro 'rrGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rroutput.c: scope_hint: In function 'ProcRRGetOutputInfo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def743]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def744]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrproperty.c: scope_hint: In function 'RRConfigureOutputProperty'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrproperty.c:385:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'new_values' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/randrstr.h:38: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrproperty.c:23: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def745]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrprovider.c:112:9: warning[core.NullDereference]: Array access (from variable 'providers') results in a null pointer dereference
#  110|   
#  111|           providers = (RRProvider *)extra;
#  112|->         ADD_PROVIDER(pScreen);
#  113|           xorg_list_for_each_entry(iter, &pScreen->slave_list, slave_head) {
#  114|               ADD_PROVIDER(iter);

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

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-688): [#def753]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrproviderproperty.c: scope_hint: In function 'RRConfigureProviderProperty'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrproviderproperty.c:360:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'new_values' where non-null expected
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/randrstr.h:38: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrproviderproperty.c:23: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def754]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrproviderproperty.c: scope_hint: In function 'ProcRRListProviderProperties'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrproviderproperty.c:419:23: warning[-Wanalyzer-null-dereference]: dereference of NULL 'temppAtoms'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrproviderproperty.c:396:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrproviderproperty.c:398:5: note: in expansion of macro 'VERIFY_RR_PROVIDER'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def755]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def756]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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->slave_list, slave_head) {

Error: CLANG_WARNING: [#def757]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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->slave_list, slave_head) {

Error: CLANG_WARNING: [#def758]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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->slave_list, slave_head) {

Error: CLANG_WARNING: [#def759]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def760]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def761]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def762]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def763]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def764]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def765]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def766]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrscreen.c: scope_hint: In function 'ProcRRGetScreenInfo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrscreen.c:848:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'size'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dixstruct.h:28: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/randrstr.h:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrscreen.c:23: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrscreen.c:767:5: note: in expansion of macro 'REQUEST_SIZE_MATCH'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrscreen.c:773:16: note: in expansion of macro 'rrGetScrPriv'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/dix.h:54: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/randr/rrscreen.c: scope_hint: In function 'ProcRRGetScreenInfo'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def767]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def768]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def769]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def770]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/record/record.c:889:25: warning[core.NullDereference]: Access to field 'requestVector' results in a dereference of a null pointer (loaded from variable 'pClient')
#  887|   
#  888|                       for (j = interval.first; j <= interval.last; j++)
#  889|->                         pClient->requestVector[j] = RecordARequest;
#  890|                   }
#  891|               }

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

Error: GCC_ANALYZER_WARNING (CWE-688): [#def772]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/record/set.c: scope_hint: In function 'IntervalListCreateSet'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/record/set.c:355: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
#  353|           prls->baseSet.ops = &IntervalListSetOperations;
#  354|       }
#  355|->     memcpy(&prls[1], stackIntervals, nIntervals * sizeof(RecordSetInterval));
#  356|       prls->nIntervals = nIntervals;
#  357|    bailout:

Error: CLANG_WARNING: [#def773]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/record/set.c:355:5: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
#  353|           prls->baseSet.ops = &IntervalListSetOperations;
#  354|       }
#  355|->     memcpy(&prls[1], stackIntervals, nIntervals * sizeof(RecordSetInterval));
#  356|       prls->nIntervals = nIntervals;
#  357|    bailout:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def774]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/filter.c: scope_hint: In function 'SetPicturePictFilter'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/filter.c:348:36: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new_params'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/filter.c:27: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/filter.c:339:30: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def775]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def776]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/glyph.c: scope_hint: In function 'AllocateGlyphHash'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/glyph.c:388:33: warning[-Wanalyzer-null-dereference]: dereference of NULL 'hashSet'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def777]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def778]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def779]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/render/picture.c:263:9: warning[deadcode.DeadStores]: Value stored to 'format' is never read
#  261|           pDepth = &pScreen->allowedDepths[d];
#  262|           bpp = BitsPerPixel(pDepth->depth);
#  263|->         format = 0;
#  264|           switch (bpp) {
#  265|           case 16:

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

Error: CLANG_WARNING: [#def781]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def782]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def783]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def784]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: GCC_ANALYZER_WARNING (CWE-401): [#def785]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBAlloc.c: scope_hint: In function 'SrvXkbAllocNames'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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): [#def786]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBGAlloc.c: scope_hint: In function 'SrvXkbAddGeomProperty'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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: [#def787]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMAlloc.c:664:21: warning[-Wuse-after-free]: pointer may be used after 'reallocarray'
#  664 |                     free(prev_key_sym_map);
#      |                     ^~~~~~~~~~~~~~~~~~~~~~
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMAlloc.c:660:41: note: call to 'reallocarray' here
#  660 |                 xkb->map->key_sym_map = reallocarray(xkb->map->key_sym_map,
#      |                                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  661 |                                                      maxKC + 1,
#      |                                                      ~~~~~~~~~~
#  662 |                                                      sizeof(XkbSymMapRec));
#      |                                                      ~~~~~~~~~~~~~~~~~~~~~
#  662|                                                        sizeof(XkbSymMapRec));
#  663|                   if (!xkb->map->key_sym_map) {
#  664|->                     free(prev_key_sym_map);
#  665|                       return BadAlloc;
#  666|                   }

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

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

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

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

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

Error: COMPILER_WARNING (CWE-457): [#def793]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:721:44: warning[-Wmaybe-uninitialized]: 'mask' may be used uninitialized
#  721 |     type->mods.mask = type->mods.real_mods | mask;
#      |                                            ^
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c: scope_hint: In function 'SrvXkbApplyVirtualModChanges.part.0'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:718:18: note: 'mask' was declared here
#  718 |     unsigned int mask;
#      |                  ^
#  719|   
#  720|       XkbVirtualModsToReal(xkb, type->mods.vmods, &mask);
#  721|->     type->mods.mask = type->mods.real_mods | mask;
#  722|       if ((type->map_count > 0) && (type->mods.vmods != 0)) {
#  723|           XkbKTMapEntryPtr entry;

Error: CLANG_WARNING: [#def794]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:721:44: warning[core.UndefinedBinaryOperatorResult]: The right operand of '|' is a garbage value
#  719|   
#  720|       XkbVirtualModsToReal(xkb, type->mods.vmods, &mask);
#  721|->     type->mods.mask = type->mods.real_mods | mask;
#  722|       if ((type->map_count > 0) && (type->mods.vmods != 0)) {
#  723|           XkbKTMapEntryPtr entry;

Error: COMPILER_WARNING (CWE-457): [#def795]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:782:17: warning[-Wmaybe-uninitialized]: 'newMask' may be used uninitialized
#  782 |         newMask |= xkb->ctrls->internal.real_mods;
#      |                 ^
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:779:22: note: 'newMask' was declared here
#  779 |         unsigned int newMask;
#      |                      ^
#  780|   
#  781|           XkbVirtualModsToReal(xkb, xkb->ctrls->internal.vmods, &newMask);
#  782|->         newMask |= xkb->ctrls->internal.real_mods;
#  783|           if (xkb->ctrls->internal.mask != newMask) {
#  784|               xkb->ctrls->internal.mask = newMask;

Error: CLANG_WARNING: [#def796]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:782:17: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
#  780|   
#  781|           XkbVirtualModsToReal(xkb, xkb->ctrls->internal.vmods, &newMask);
#  782|->         newMask |= xkb->ctrls->internal.real_mods;
#  783|           if (xkb->ctrls->internal.mask != newMask) {
#  784|               xkb->ctrls->internal.mask = newMask;

Error: COMPILER_WARNING (CWE-457): [#def797]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:795:17: warning[-Wmaybe-uninitialized]: 'newMask' may be used uninitialized
#  795 |         newMask |= xkb->ctrls->ignore_lock.real_mods;
#      |                 ^
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:792:22: note: 'newMask' was declared here
#  792 |         unsigned int newMask;
#      |                      ^
#  793|   
#  794|           XkbVirtualModsToReal(xkb, xkb->ctrls->ignore_lock.vmods, &newMask);
#  795|->         newMask |= xkb->ctrls->ignore_lock.real_mods;
#  796|           if (xkb->ctrls->ignore_lock.mask != newMask) {
#  797|               xkb->ctrls->ignore_lock.mask = newMask;

Error: CLANG_WARNING: [#def798]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:795:17: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
#  793|   
#  794|           XkbVirtualModsToReal(xkb, xkb->ctrls->ignore_lock.vmods, &newMask);
#  795|->         newMask |= xkb->ctrls->ignore_lock.real_mods;
#  796|           if (xkb->ctrls->ignore_lock.mask != newMask) {
#  797|               xkb->ctrls->ignore_lock.mask = newMask;

Error: COMPILER_WARNING (CWE-457): [#def799]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:813:25: warning[-Wmaybe-uninitialized]: 'newMask' may be used uninitialized
#  813 |                 newMask |= map->mods.real_mods;
#      |                         ^
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:810:30: note: 'newMask' was declared here
#  810 |                 unsigned int newMask;
#      |                              ^
#  811|   
#  812|                   XkbVirtualModsToReal(xkb, map->mods.vmods, &newMask);
#  813|->                 newMask |= map->mods.real_mods;
#  814|                   if (newMask != map->mods.mask) {
#  815|                       map->mods.mask = newMask;

Error: CLANG_WARNING: [#def800]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:813:25: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
#  811|   
#  812|                   XkbVirtualModsToReal(xkb, map->mods.vmods, &newMask);
#  813|->                 newMask |= map->mods.real_mods;
#  814|                   if (newMask != map->mods.mask) {
#  815|                       map->mods.mask = newMask;

Error: COMPILER_WARNING (CWE-457): [#def801]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:832:21: warning[-Wmaybe-uninitialized]: 'newMask' may be used uninitialized
#  832 |             newMask |= compat->groups[i].real_mods;
#      |                     ^
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:829:26: note: 'newMask' was declared here
#  829 |             unsigned int newMask;
#      |                          ^
#  830|   
#  831|               XkbVirtualModsToReal(xkb, compat->groups[i].vmods, &newMask);
#  832|->             newMask |= compat->groups[i].real_mods;
#  833|               if (compat->groups[i].mask != newMask) {
#  834|                   compat->groups[i].mask = newMask;

Error: CLANG_WARNING: [#def802]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/XKBMisc.c:832:21: warning[core.uninitialized.Assign]: The left expression of the compound assignment is an uninitialized value. The computed value will also be garbage
#  830|   
#  831|               XkbVirtualModsToReal(xkb, compat->groups[i].vmods, &newMask);
#  832|->             newMask |= compat->groups[i].real_mods;
#  833|               if (compat->groups[i].mask != newMask) {
#  834|                   compat->groups[i].mask = newMask;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def803]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/ddxLoad.c: scope_hint: In function 'XkbDDXLoadKeymapByNames'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/ddxLoad.c:375:25: warning[-Wanalyzer-null-dereference]: dereference of NULL 'keybd'
#  373|           (names->geometry == NULL)) {
#  374|           LogMessage(X_ERROR, "XKB: No components provided for device %s\n",
#  375|->                    keybd->name ? keybd->name : "(unnamed keyboard)");
#  376|           return 0;
#  377|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def804]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/maprules.c: scope_hint: In function 'InputLineAddChar'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/maprules.c:93: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-1.20.14-build/xorg-server-1.20.14/xkb/maprules.c:141:21: note: in expansion of macro 'ADD_CHAR'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/maprules.c:141:21: note: in expansion of macro 'ADD_CHAR'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/maprules.c:141:21: note: in expansion of macro 'ADD_CHAR'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/maprules.c:141:21: note: in expansion of macro 'ADD_CHAR'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/include/misc.h:117: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/maprules.c:45: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/maprules.c:92:26: note: in expansion of macro 'xallocarray'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/maprules.c:92:26: note: in expansion of macro 'xallocarray'
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
#   91|           if (line->line == line->buf) {
#   92|               line->line = xallocarray(line->sz_line, 2);
#   93|->             memcpy(line->line, line->buf, line->sz_line);
#   94|           }
#   95|           else {

Error: CLANG_WARNING: [#def805]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/maprules.c:167:25: warning[deadcode.DeadStores]: Value stored to 'inComment' is never read
#  165|                           DebugF("Line containing '!' ignored\n");
#  166|                           line->num_line = 0;
#  167|->                         inComment = 0;
#  168|                           break;
#  169|                       }

Error: CLANG_WARNING: [#def806]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:1454:28: warning[deadcode.DeadStores]: Although the value stored to 'i' is used in the enclosing expression, the value is never actually read from 'i'
# 1452|           swaps(&rep->totalActs);
# 1453|       }
# 1454|->     WriteToClient(client, (i = SIZEOF(xkbGetMapReply)), rep);
# 1455|       WriteToClient(client, len, start);
# 1456|       free((char *) start);

Error: COMPILER_WARNING: [#def807]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c: scope_hint: In function 'ProcXkbSetMap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:2744:5: warning[-Wdeclaration-after-statement]: ISO C90 forbids mixed declarations and code
# 2744 |     DeviceIntPtr master = GetMaster(dev, MASTER_KEYBOARD);
#      |     ^~~~~~~~~~~~
# 2742|           return rc;
# 2743|   
# 2744|->     DeviceIntPtr master = GetMaster(dev, MASTER_KEYBOARD);
# 2745|   
# 2746|       if (stuff->deviceSpec == XkbUseCoreKbd) {

Error: CLANG_WARNING: [#def808]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:2876:17: warning[deadcode.DeadStores]: Value stored to 'wire' is never read
# 2874|                       }
# 2875|                   }
# 2876|->                 wire = (xkbSymInterpretWireDesc *) grp;
# 2877|               }
# 2878|           }

Error: CLANG_WARNING: [#def809]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:3605:5: warning[deadcode.DeadStores]: Value stored to 'extDevReason' is never read
# 3603|       namec |= (1 << led);
# 3604|       sli->namesPresent |= ((stuff->indicator != None) ? (1 << led) : 0);
# 3605|->     extDevReason |= XkbXI_IndicatorNamesMask;
# 3606|   
# 3607|       if (stuff->setMap) {

Error: CLANG_WARNING: [#def810]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:4304:5: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read
# 4302|       xkbNamesNotify nn;
# 4303|   
# 4304|->     tmp = (CARD32 *) &stuff[1];
# 4305|       xkb = dev->key->xkbInfo->desc;
# 4306|       names = xkb->names;

Error: CLANG_WARNING: [#def811]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:4412:13: warning[deadcode.DeadStores]: Value stored to 'tmp' is never read
# 4410|                   names->radio_groups[i] = tmp[i];
# 4411|               }
# 4412|->             tmp += stuff->nRadioGroups;
# 4413|           }
# 4414|           else if (names->radio_groups) {

Error: CLANG_WARNING: [#def812]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:5971:20: warning[unix.Malloc]: Potential leak of memory pointed to by 'names.compat'
# 5969|       }
# 5970|   
# 5971|->     CHK_MASK_LEGAL(0x01, stuff->want, XkbGBN_AllComponentsMask);
# 5972|       CHK_MASK_LEGAL(0x02, stuff->need, XkbGBN_AllComponentsMask);
# 5973|   

Error: CLANG_WARNING: [#def813]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:5971:20: warning[unix.Malloc]: Potential leak of memory pointed to by 'names.geometry'
# 5969|       }
# 5970|   
# 5971|->     CHK_MASK_LEGAL(0x01, stuff->want, XkbGBN_AllComponentsMask);
# 5972|       CHK_MASK_LEGAL(0x02, stuff->need, XkbGBN_AllComponentsMask);
# 5973|   

Error: CLANG_WARNING: [#def814]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:5971:20: warning[unix.Malloc]: Potential leak of memory pointed to by 'names.keycodes'
# 5969|       }
# 5970|   
# 5971|->     CHK_MASK_LEGAL(0x01, stuff->want, XkbGBN_AllComponentsMask);
# 5972|       CHK_MASK_LEGAL(0x02, stuff->need, XkbGBN_AllComponentsMask);
# 5973|   

Error: CLANG_WARNING: [#def815]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:5971:20: warning[unix.Malloc]: Potential leak of memory pointed to by 'names.symbols'
# 5969|       }
# 5970|   
# 5971|->     CHK_MASK_LEGAL(0x01, stuff->want, XkbGBN_AllComponentsMask);
# 5972|       CHK_MASK_LEGAL(0x02, stuff->need, XkbGBN_AllComponentsMask);
# 5973|   

Error: CLANG_WARNING: [#def816]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:5971:20: warning[unix.Malloc]: Potential leak of memory pointed to by 'names.types'
# 5969|       }
# 5970|   
# 5971|->     CHK_MASK_LEGAL(0x01, stuff->want, XkbGBN_AllComponentsMask);
# 5972|       CHK_MASK_LEGAL(0x02, stuff->need, XkbGBN_AllComponentsMask);
# 5973|   

Error: CLANG_WARNING: [#def817]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:6515:28: warning[core.NullDereference]: Access to field 'numButtons' results in a dereference of a null pointer (loaded from field 'button')
# 6513|           if (stuff->allBtns) {
# 6514|               stuff->firstBtn = 0;
# 6515|->             stuff->nBtns = dev->button->numButtons;
# 6516|           }
# 6517|   

Error: CLANG_WARNING: [#def818]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:6518:48: warning[core.NullDereference]: Access to field 'numButtons' results in a dereference of a null pointer (loaded from field 'button')
# 6516|           }
# 6517|   
# 6518|->         if ((stuff->firstBtn + stuff->nBtns) > dev->button->numButtons) {
# 6519|               client->errorValue = _XkbErrCode4(0x02, dev->button->numButtons,
# 6520|                                                 stuff->firstBtn, stuff->nBtns);

Error: CLANG_WARNING: [#def819]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkb.c:6870:9: warning[deadcode.DeadStores]: Value stored to 'wire' is never read
# 6868|           int status = Success;
# 6869|   
# 6870|->         wire = SetDeviceIndicators(wire, dev, stuff->change,
# 6871|                                      stuff->nDeviceLedFBs, &status, client, &ed,
# 6872|                                      stuff);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def820]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbActions.c: scope_hint: In function '_XkbFilterLatchState'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbActions.c:239:20: warning[-Wanalyzer-null-dereference]: dereference of NULL 'pAction'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbActions.c:40: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbActions.c:1423: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): [#def821]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbActions.c: scope_hint: In function '_XkbNextFreeFilter'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbActions.c:1107:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*((struct _XkbSrvInfo *)xkbi).filters'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbActions.c:1423:1: note: in expansion of macro 'XkbLatchGroup'
# 1105|       }
# 1106|       for (i = 0; i < xkbi->szFilters; i++) {
# 1107|->         if (!xkbi->filters[i].active) {
# 1108|               xkbi->filters[i].keycode = 0;
# 1109|               return &xkbi->filters[i];

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

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

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

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

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

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

Error: CLANG_WARNING: [#def828]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbLEDs.c:469:11: warning[core.NullDereference]: Access to field 'desc' results in a dereference of a null pointer (loaded from field 'xkbInfo')
#  467|       sli->mapsPresent &= ~which;
#  468|   
#  469|->     xkb = dev->key->xkbInfo->desc;
#  470|       for (i = 0, bit = 1, map = sli->maps; i < XkbNumIndicators;
#  471|            i++, bit <<= 1, map++) {

Error: CLANG_WARNING: [#def829]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbLEDs.c:469:11: warning[core.NullDereference]: Access to field 'xkbInfo' results in a dereference of a null pointer (loaded from field 'key')
#  467|       sli->mapsPresent &= ~which;
#  468|   
#  469|->     xkb = dev->key->xkbInfo->desc;
#  470|       for (i = 0, bit = 1, map = sli->maps; i < XkbNumIndicators;
#  471|            i++, bit <<= 1, map++) {

Error: CLANG_WARNING: [#def830]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbLEDs.c:612:17: warning[core.NullDereference]: Array access (via field 'names') results in a null pointer dereference
#  610|           sli->namesPresent = 0;
#  611|           for (i = 0, bit = 1; i < XkbNumIndicators; i++, bit <<= 1) {
#  612|->             if (sli->names[i] != None)
#  613|                   sli->namesPresent |= bit;
#  614|           }

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

Error: GCC_ANALYZER_WARNING (CWE-688): [#def832]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c: scope_hint: In function '_XkbCopyClientMap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:956:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
#  954|   
#  955|               }
#  956|->             memcpy(dst->map->syms, src->map->syms,
#  957|                      src->map->size_syms * sizeof(KeySym));
#  958|           }

Error: CLANG_WARNING: [#def833]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:956:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  954|   
#  955|               }
#  956|->             memcpy(dst->map->syms, src->map->syms,
#  957|                      src->map->size_syms * sizeof(KeySym));
#  958|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def834]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:974:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
#  972|                   dst->map->key_sym_map = tmp;
#  973|               }
#  974|->             memcpy(dst->map->key_sym_map, src->map->key_sym_map,
#  975|                      (src->max_key_code + 1) * sizeof(XkbSymMapRec));
#  976|           }

Error: CLANG_WARNING: [#def835]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:974:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
#  972|                   dst->map->key_sym_map = tmp;
#  973|               }
#  974|->             memcpy(dst->map->key_sym_map, src->map->key_sym_map,
#  975|                      (src->max_key_code + 1) * sizeof(XkbSymMapRec));
#  976|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def836]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1150:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
# 1148|                   dst->map->modmap = tmp;
# 1149|               }
# 1150|->             memcpy(dst->map->modmap, src->map->modmap, src->max_key_code + 1);
# 1151|           }
# 1152|           else {

Error: CLANG_WARNING: [#def837]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1150:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1148|                   dst->map->modmap = tmp;
# 1149|               }
# 1150|->             memcpy(dst->map->modmap, src->map->modmap, src->max_key_code + 1);
# 1151|           }
# 1152|           else {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def838]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c: scope_hint: In function '_XkbCopyServerMap'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1186:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
# 1184|                   dst->server->explicit = tmp;
# 1185|               }
# 1186|->             memcpy(dst->server->explicit, src->server->explicit,
# 1187|                      src->max_key_code + 1);
# 1188|           }

Error: CLANG_WARNING: [#def839]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1186:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1184|                   dst->server->explicit = tmp;
# 1185|               }
# 1186|->             memcpy(dst->server->explicit, src->server->explicit,
# 1187|                      src->max_key_code + 1);
# 1188|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def840]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1202:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
# 1200|                   dst->server->acts = tmp;
# 1201|               }
# 1202|->             memcpy(dst->server->acts, src->server->acts,
# 1203|                      src->server->size_acts * sizeof(XkbAction));
# 1204|           }

Error: CLANG_WARNING: [#def841]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1202:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1200|                   dst->server->acts = tmp;
# 1201|               }
# 1202|->             memcpy(dst->server->acts, src->server->acts,
# 1203|                      src->server->size_acts * sizeof(XkbAction));
# 1204|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def842]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1220:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
# 1218|                   dst->server->key_acts = tmp;
# 1219|               }
# 1220|->             memcpy(dst->server->key_acts, src->server->key_acts,
# 1221|                      (src->max_key_code + 1) * sizeof(unsigned short));
# 1222|           }

Error: CLANG_WARNING: [#def843]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1220:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1218|                   dst->server->key_acts = tmp;
# 1219|               }
# 1220|->             memcpy(dst->server->key_acts, src->server->key_acts,
# 1221|                      (src->max_key_code + 1) * sizeof(unsigned short));
# 1222|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def844]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1236:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
# 1234|                   dst->server->behaviors = tmp;
# 1235|               }
# 1236|->             memcpy(dst->server->behaviors, src->server->behaviors,
# 1237|                      (src->max_key_code + 1) * sizeof(XkbBehavior));
# 1238|           }

Error: CLANG_WARNING: [#def845]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1236:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1234|                   dst->server->behaviors = tmp;
# 1235|               }
# 1236|->             memcpy(dst->server->behaviors, src->server->behaviors,
# 1237|                      (src->max_key_code + 1) * sizeof(XkbBehavior));
# 1238|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def846]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1254:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
<built-in>: note: argument 1 of '__builtin_memcpy' must be non-null
# 1252|                   dst->server->vmodmap = tmp;
# 1253|               }
# 1254|->             memcpy(dst->server->vmodmap, src->server->vmodmap,
# 1255|                      (src->max_key_code + 1) * sizeof(unsigned short));
# 1256|           }

Error: CLANG_WARNING: [#def847]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1254:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1252|                   dst->server->vmodmap = tmp;
# 1253|               }
# 1254|->             memcpy(dst->server->vmodmap, src->server->vmodmap,
# 1255|                      (src->max_key_code + 1) * sizeof(unsigned short));
# 1256|           }

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

Error: CLANG_WARNING: [#def849]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbUtils.c:1291:13: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
# 1289|                   dst->names->keys = tmp;
# 1290|               }
# 1291|->             memcpy(dst->names->keys, src->names->keys,
# 1292|                      (src->max_key_code + 1) * sizeof(XkbKeyNameRec));
# 1293|           }

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def853]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbtext.c: scope_hint: In function 'TryCopyStr'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbtext.c:720:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*to'
/usr/include/X11/Xos.h:62: included_from: Included from here.
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkbtext.c:35: included_from: Included from here.
/usr/include/string.h:149:14: note: argument 1 of 'strcat' must be a pointer to a null-terminated string
#  718|           len = strlen(from);
#  719|           if (len < ((*pLeft) - 3)) {
#  720|->             strcat(to, from);
#  721|               *pLeft -= len;
#  722|               return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-823): [#def854]
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/xkb/xkmread.c: scope_hint: In function 'XkmGetCountedString'
xorg-x11-server-1.20.14-build/xorg-server-1.20.14/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-57.us-west-2.compute.internal
mock-configfedora-41-x86_64
project-namexorg-x11-server-1.20.14-36.fc41
store-results-to/tmp/tmpd97rpuoo/xorg-x11-server-1.20.14-36.fc41.tar.xz
time-created2024-07-03 18:40:04
time-finished2024-07-03 18:52:02
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpd97rpuoo/xorg-x11-server-1.20.14-36.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpd97rpuoo/xorg-x11-server-1.20.14-36.fc41.src.rpm'
tool-versioncsmock-3.5.3-1.el9