xorg-x11-server-Xwayland-24.1.6-1.fc43

List of Findings

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:748:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘PanoramiXDepths’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:802:1: enter_function: entry to ‘PanoramiXConsolidate’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:813:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:814:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:814:9: call_function: calling ‘PanoramiXMaybeAddDepth’ from ‘PanoramiXConsolidate’
#  746|       PanoramiXDepths = reallocarray(PanoramiXDepths,
#  747|                                      PanoramiXNumDepths, sizeof(DepthRec));
#  748|->     PanoramiXDepths[j].depth = pDepth->depth;
#  749|       PanoramiXDepths[j].numVids = 0;
#  750|       PanoramiXDepths[j].vids = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:820:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘root’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:819:12: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:820:5: danger: ‘root’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  818|   
#  819|       root = malloc(sizeof(PanoramiXRes));
#  820|->     root->type = XRT_WINDOW;
#  821|       defmap = malloc(sizeof(PanoramiXRes));
#  822|       defmap->type = XRT_COLORMAP;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:822:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘defmap’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:821:14: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:822:5: danger: ‘defmap’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  820|       root->type = XRT_WINDOW;
#  821|       defmap = malloc(sizeof(PanoramiXRes));
#  822|->     defmap->type = XRT_COLORMAP;
#  823|       saver = malloc(sizeof(PanoramiXRes));
#  824|       saver->type = XRT_WINDOW;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def7]
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:824:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘saver’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:823:13: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:824:5: danger: ‘saver’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  822|       defmap->type = XRT_COLORMAP;
#  823|       saver = malloc(sizeof(PanoramiXRes));
#  824|->     saver->type = XRT_WINDOW;
#  825|   
#  826|       FOR_NSCREENS(i) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def8]
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:838:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*root.info[0].id’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:816:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:817:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:816:17: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:819:12: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:826:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:838:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:838:5: danger: use of uninitialized value ‘*root.info[0].id’ here
#  836|       }
#  837|   
#  838|->     AddResource(root->info[0].id, XRT_WINDOW, root);
#  839|       AddResource(saver->info[0].id, XRT_WINDOW, saver);
#  840|       AddResource(defmap->info[0].id, XRT_COLORMAP, defmap);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def9]
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1126:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1138:1: enter_function: entry to ‘XineramaGetImageData’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1158:8: branch_false: following ‘false’ branch (when ‘isRoot != 0’)...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1162:17: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1168:13: branch_false: following ‘false’ branch (when ‘format == 1’)...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1170:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1170:5: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1174:27: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1186:9: call_function: calling ‘RegionUninit’ from ‘XineramaGetImageData’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1186:9: return_function: returning to ‘XineramaGetImageData’ from ‘RegionUninit’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1188:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1197:17: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1197:17: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1200:16: call_function: inlined call to ‘RegionNumRects’ from ‘XineramaGetImageData’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1205:20: branch_true: following ‘true’ branch (when ‘nbox != 0’)...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1206:21: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1211:20: branch_false: following ‘false’ branch (when ‘size >= sizeNeeded’)...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1223:21: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1231:20: branch_true: following ‘true’ branch (when ‘depth == 1’)...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1234:25: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1249:70: branch_true: following ‘true’ branch (when ‘j < h’)...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1251:28: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1251:28: branch_true: following ‘true’ branch (when ‘w != 0’)...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1252:32: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1252:32: branch_false: following ‘false’ branch (when ‘shift != 0’)...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1255:33: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1255:33: release_memory: ‘ScratchMem’ is NULL
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiX.c:1255:33: call_function: calling ‘CopyBits’ from ‘XineramaGetImageData’
# 1124|   
# 1125|       while (bytes--) {
# 1126|->         *dst |= SHIFT_L(*src, shiftL);
# 1127|           *(dst + 1) |= SHIFT_R(*src, shiftR);
# 1128|           dst++;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def10]
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1137:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pGC’
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1061:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1063:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1065:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1068:17: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1072:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1075:17: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1077:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1080:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1082:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1085:13: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1096:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1115:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1118:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1121:9: branch_false: following ‘false’ branch (when ‘j < 0’)...
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1135:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/panoramiXprocs.c:1137:16: danger: use of uninitialized value ‘pGC’ here
# 1135|           free(data);
# 1136|   
# 1137|->         if (pGC->graphicsExposures) {
# 1138|               RegionRec rgn;
# 1139|               int dx, dy;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
xwayland-24.1.6/redhat-linux-build/../Xext/shape.c:951:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rects’
xwayland-24.1.6/redhat-linux-build/../Xext/shape.c:1190:1: enter_function: entry to ‘SProcShapeGetRectangles’
xwayland-24.1.6/redhat-linux-build/../Xext/shape.c:1194:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/shape.c:1195:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/shape.c:1196:12: call_function: calling ‘ProcShapeGetRectangles’ from ‘SProcShapeGetRectangles’
#  949|       RegionPtr region;
#  950|   
#  951|->     REQUEST_SIZE_MATCH(xShapeGetRectanglesReq);
#  952|       rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
#  953|       if (rc != Success)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
xwayland-24.1.6/redhat-linux-build/../Xext/shape.c:1004:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rects’
xwayland-24.1.6/redhat-linux-build/../Xext/shape.c:1190:1: enter_function: entry to ‘SProcShapeGetRectangles’
xwayland-24.1.6/redhat-linux-build/../Xext/shape.c:1194:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/shape.c:1195:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/shape.c:1196:12: call_function: calling ‘ProcShapeGetRectangles’ from ‘SProcShapeGetRectangles’
# 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): [#def13]
xwayland-24.1.6/redhat-linux-build/../Xext/shm.c:214:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘screen_priv’
xwayland-24.1.6/redhat-linux-build/../Xext/shm.c:241:1: enter_function: entry to ‘ShmRegisterFuncs’
xwayland-24.1.6/redhat-linux-build/../Xext/shm.c:245:5: call_function: calling ‘ShmInitScreenPriv’ from ‘ShmRegisterFuncs’
#  212|       if (!screen_priv) {
#  213|           screen_priv = calloc(1, sizeof(ShmScrPrivateRec));
#  214|->         screen_priv->CloseScreen = pScreen->CloseScreen;
#  215|           dixSetPrivate(&pScreen->devPrivates, shmScrPrivateKey, screen_priv);
#  216|           pScreen->CloseScreen = ShmCloseScreen;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def14]
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2664:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2656:1: enter_function: entry to ‘IdleTimeQueryValue’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2661:8: branch_true: following ‘true’ branch (when ‘pCounter’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2663:33: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2663:33: call_function: calling ‘SysCounterGetPrivate’ from ‘IdleTimeQueryValue’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2663:33: return_function: returning to ‘IdleTimeQueryValue’ from ‘SysCounterGetPrivate’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2664:9: danger: dereference of NULL ‘SysCounterGetPrivate(pCounter)’
# 2662|           SyncCounter *counter = pCounter;
# 2663|           IdleCounterPriv *priv = SysCounterGetPrivate(counter);
# 2664|->         deviceid = priv->deviceid;
# 2665|       }
# 2666|       else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2677:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2673:1: enter_function: entry to ‘IdleTimeBlockHandler’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2676:29: call_function: calling ‘SysCounterGetPrivate’ from ‘IdleTimeBlockHandler’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2676:29: return_function: returning to ‘IdleTimeBlockHandler’ from ‘SysCounterGetPrivate’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2677:14: danger: dereference of NULL ‘SysCounterGetPrivate(pCounter)’
# 2675|       SyncCounter *counter = pCounter;
# 2676|       IdleCounterPriv *priv = SysCounterGetPrivate(counter);
# 2677|->     int64_t *less = priv->value_less;
# 2678|       int64_t *greater = priv->value_greater;
# 2679|       int64_t idle, old_idle;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2767:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2763:1: enter_function: entry to ‘IdleTimeWakeupHandler’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2766:29: call_function: calling ‘SysCounterGetPrivate’ from ‘IdleTimeWakeupHandler’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2766:29: return_function: returning to ‘IdleTimeWakeupHandler’ from ‘SysCounterGetPrivate’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2767:14: danger: dereference of NULL ‘SysCounterGetPrivate(pCounter)’
# 2765|       SyncCounter *counter = pCounter;
# 2766|       IdleCounterPriv *priv = SysCounterGetPrivate(counter);
# 2767|->     int64_t *less = priv->value_less;
# 2768|       int64_t *greater = priv->value_greater;
# 2769|       int64_t idle;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2800:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2795:1: enter_function: entry to ‘IdleTimeBracketValues’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2799:29: call_function: calling ‘SysCounterGetPrivate’ from ‘IdleTimeBracketValues’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2799:29: return_function: returning to ‘IdleTimeBracketValues’ from ‘SysCounterGetPrivate’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2800:14: danger: dereference of NULL ‘SysCounterGetPrivate(pCounter)’
# 2798|       SyncCounter *counter = pCounter;
# 2799|       IdleCounterPriv *priv = SysCounterGetPrivate(counter);
# 2800|->     int64_t *less = priv->value_less;
# 2801|       int64_t *greater = priv->value_greater;
# 2802|       Bool registered = (less || greater);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def18]
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2837:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘priv’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2821:1: enter_function: entry to ‘init_system_idle_counter’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2827:5: call_function: calling ‘IdleTimeQueryValue’ from ‘init_system_idle_counter’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2827:5: return_function: returning to ‘init_system_idle_counter’ from ‘IdleTimeQueryValue’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2829:25: call_function: calling ‘SyncCreateSystemCounter’ from ‘init_system_idle_counter’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2829:25: return_function: returning to ‘init_system_idle_counter’ from ‘SyncCreateSystemCounter’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2834:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2835:33: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2835:33: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2837:28: danger: ‘priv’ could be NULL: unchecked value from [(30)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/29)
# 2835|           IdleCounterPriv *priv = malloc(sizeof(IdleCounterPriv));
# 2836|   
# 2837|->         priv->value_less = priv->value_greater = NULL;
# 2838|           priv->deviceid = deviceid;
# 2839|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2843:12: warning[-Wanalyzer-malloc-leak]: leak of ‘priv’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2821:1: enter_function: entry to ‘init_system_idle_counter’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2827:5: call_function: calling ‘IdleTimeQueryValue’ from ‘init_system_idle_counter’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2827:5: return_function: returning to ‘init_system_idle_counter’ from ‘IdleTimeQueryValue’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2829:25: call_function: calling ‘SyncCreateSystemCounter’ from ‘init_system_idle_counter’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2829:25: return_function: returning to ‘init_system_idle_counter’ from ‘SyncCreateSystemCounter’
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2834:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2835:33: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2835:33: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../Xext/sync.c:2843:12: danger: ‘priv’ leaks here; was allocated at [(30)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/29)
# 2841|       }
# 2842|   
# 2843|->     return idle_time_counter;
# 2844|   }
# 2845|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def20]
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:96:5: warning[-Wanalyzer-null-argument]: use of NULL ‘VidModeCreateMode()’ where non-null expected
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1870:1: enter_function: entry to ‘SProcVidModeValidateModeLine’
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1877:11: call_function: calling ‘ClientMajorVersion’ from ‘SProcVidModeValidateModeLine’
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1877:11: return_function: returning to ‘SProcVidModeValidateModeLine’ from ‘ClientMajorVersion’
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1878:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1879:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1880:9: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1881:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1911:12: call_function: calling ‘ProcVidModeValidateModeLine’ from ‘SProcVidModeValidateModeLine’
#argument 1 of ‘__builtin_memcpy’ must be non-null
#   94|   VidModeCopyMode(DisplayModePtr modefrom, DisplayModePtr modeto)
#   95|   {
#   96|->     memcpy(modeto, modefrom, sizeof(DisplayModeRec));
#   97|   }
#   98|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def21]
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1377:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Clocks’
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1979:1: enter_function: entry to ‘SProcVidModeGetDotClocks’
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1983:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1984:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/vidmode.c:1985:12: call_function: calling ‘ProcVidModeGetDotClocks’ from ‘SProcVidModeGetDotClocks’
# 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-835): [#def22]
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:139:5: warning[-Wanalyzer-infinite-loop]: infinite loop
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:1061:1: enter_function: entry to ‘SProcXResQueryResourceBytes’
#  137|   {
#  138|       FragmentList *it, *tmp;
#  139|->     xorg_list_for_each_entry_safe(it, tmp, frags, l) {
#  140|           xorg_list_del(&it->l);
#  141|           free(it);

Error: GCC_ANALYZER_WARNING (CWE-590): [#def23]
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:141:9: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘it’ which points to memory on the stack
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:1061:1: enter_function: entry to ‘SProcXResQueryResourceBytes’
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:1067:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:1068:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:1069:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:1076:12: call_function: calling ‘ProcXResQueryResourceBytes’ from ‘SProcXResQueryResourceBytes’
#  139|       xorg_list_for_each_entry_safe(it, tmp, frags, l) {
#  140|           xorg_list_del(&it->l);
#  141|->         free(it);
#  142|       }
#  143|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:233:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘current_clients’
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:228:23: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:231:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:232:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:232:12: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:233:28: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xres.c:233:13: danger: ‘current_clients + (long unsigned int)num_clients * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  231|       for (i = 0; i < currentMaxClients; i++) {
#  232|           if (clients[i]) {
#  233|->             current_clients[num_clients] = i;
#  234|               num_clients++;
#  235|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:322:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘i’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:445:1: enter_function: entry to ‘ProcSELinuxListSelections’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:458:13: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:459:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:464:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:465:36: branch_true: following ‘true’ branch (when ‘pSel’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:466:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:467:14: call_function: calling ‘SELinuxPopulateItem’ from ‘ProcSELinuxListSelections’
#  320|           return BadValue;
#  321|   
#  322|->     i->id = id;
#  323|       i->octx_len = bytes_to_int32(strlen(i->octx) + 1);
#  324|       i->dctx_len = bytes_to_int32(strlen(i->dctx) + 1);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:336:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘items’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:445:1: enter_function: entry to ‘ProcSELinuxListSelections’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:458:13: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:459:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:464:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:465:36: branch_true: following ‘true’ branch (when ‘pSel’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:466:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:467:14: call_function: calling ‘SELinuxPopulateItem’ from ‘ProcSELinuxListSelections’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:467:14: return_function: returning to ‘ProcSELinuxListSelections’ from ‘SELinuxPopulateItem’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:468:12: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:469:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:469:13: call_function: calling ‘SELinuxFreeItems’ from ‘ProcSELinuxListSelections’
#  334|   
#  335|       for (k = 0; k < count; k++) {
#  336|->         freecon(items[k].octx);
#  337|           freecon(items[k].dctx);
#  338|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:358:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:445:1: enter_function: entry to ‘ProcSELinuxListSelections’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:459:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:464:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:465:36: branch_true: following ‘true’ branch (when ‘pSel’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:466:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:467:14: call_function: calling ‘SELinuxPopulateItem’ from ‘ProcSELinuxListSelections’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:467:14: return_function: returning to ‘ProcSELinuxListSelections’ from ‘SELinuxPopulateItem’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:468:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:472:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:465:36: branch_false: following ‘false’ branch (when ‘pSel’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:475:12: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_ext.c:475:12: call_function: calling ‘SELinuxSendItemsToClient’ from ‘ProcSELinuxListSelections’
#  356|       /* Fill in the buffer */
#  357|       for (k = 0; k < count; k++) {
#  358|->         buf[pos] = items[k].id;
#  359|           if (client->swapped)
#  360|               swapl(buf + pos);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_label.c:142:13: warning[-Wanalyzer-malloc-leak]: leak of ‘rec’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_label.c:133:1: enter_function: entry to ‘SELinuxAtomToSID’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_label.c:141:15: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_label.c:142:12: branch_false: following ‘false’ branch (when ‘rec’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_label.c:142:22: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_label.c:142:22: call_function: calling ‘SELinuxArraySet’ from ‘SELinuxAtomToSID’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_label.c:142:22: return_function: returning to ‘SELinuxAtomToSID’ from ‘SELinuxArraySet’
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_label.c:142:13: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_label.c:143:20: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xselinux_label.c:142:13: danger: ‘rec’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
#  140|       if (!rec) {
#  141|           rec = calloc(1, sizeof(SELinuxAtomRec));
#  142|->         if (!rec || !SELinuxArraySet(&arr_atoms, atom, rec))
#  143|               return BadAlloc;
#  144|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def29]
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:383:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:466:1: enter_function: entry to ‘ProcXTestDispatch’
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:475:16: call_function: calling ‘ProcXTestFakeInput’ from ‘ProcXTestDispatch’
#  381|       case KeyPress:
#  382|       case KeyRelease:
#  383|->         if (!dev->key)
#  384|               return BadDevice;
#  385|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def30]
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:395:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:466:1: enter_function: entry to ‘ProcXTestDispatch’
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:475:16: call_function: calling ‘ProcXTestFakeInput’ from ‘ProcXTestDispatch’
#  393|           break;
#  394|       case MotionNotify:
#  395|->         if (!dev->valuator)
#  396|               return BadDevice;
#  397|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def31]
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:426:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:466:1: enter_function: entry to ‘ProcXTestDispatch’
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:475:16: call_function: calling ‘ProcXTestFakeInput’ from ‘ProcXTestDispatch’
#  424|       case ButtonPress:
#  425|       case ButtonRelease:
#  426|->         if (!dev->button)
#  427|               return BadDevice;
#  428|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def32]
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:440:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dev’
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:531:1: enter_function: entry to ‘SProcXTestFakeInput’
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:539:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:541:12: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xtest.c:541:12: call_function: calling ‘ProcXTestFakeInput’ from ‘SProcXTestFakeInput’
#  438|       valuator_mask_set_range(&mask, firstValuator, numValuators, valuators);
#  439|   
#  440|->     if (dev->sendEventsProc)
#  441|           (*dev->sendEventsProc) (dev, type, ev->u.u.detail, flags, &mask);
#  442|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def33]
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1787:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*port.info[0].id’
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1748:1: enter_function: entry to ‘XineramifyXv’
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1751:9: call_function: calling ‘dixLookupPrivate’ from ‘XineramifyXv’
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1751:9: return_function: returning to ‘XineramifyXv’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1757:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1761:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1763:33: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1765:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1768:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1770:9: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1772:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1772:13: call_function: calling ‘matchAdaptor’ from ‘XineramifyXv’
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1772:13: return_function: returning to ‘XineramifyXv’ from ‘matchAdaptor’
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1770:9: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1772:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1772:13: call_function: calling ‘matchAdaptor’ from ‘XineramifyXv’
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1772:13: return_function: returning to ‘XineramifyXv’ from ‘matchAdaptor’
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1770:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1775:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1776:34: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1778:16: branch_false: following ‘false’ branch (when ‘port’ is non-NULL)...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1781:13: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1787:13: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xext/xvdisp.c:1787:13: danger: use of uninitialized value ‘*port.info[0].id’ here
# 1785|                       port->info[k].id = 0;
# 1786|               }
# 1787|->             AddResource(port->info[0].id, XvXRTPort, port);
# 1788|           }
# 1789|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:492:37: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*to.key’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2386:1: enter_function: entry to ‘SetScrollValuator’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2394:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2395:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2395:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2396:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2396:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2398:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2413:8: branch_false: following ‘false’ branch (when ‘increment != 0.0’)...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2416:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2439:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2440:9: call_function: calling ‘ChangeMasterDeviceClasses’ from ‘SetScrollValuator’
#  490|                   continue;
#  491|               if (k->xkb_sli->flags & XkbSLI_IsDefault) {
#  492|->                 k->xkb_sli->names = to->key->xkbInfo->desc->names->indicators;
#  493|                   k->xkb_sli->maps = to->key->xkbInfo->desc->indicators->maps;
#  494|               }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:1390:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2194:1: enter_function: entry to ‘DeliverTouchEvents’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2205:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2206:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2215:14: call_function: calling ‘RetrieveTouchDeliveryData’ from ‘DeliverTouchEvents’
# 1388|                   evtype = GetXI2Type(ev->any.type);
# 1389|   
# 1390|->             nt_list_for_each_entry(iclients,
# 1391|                                      wOtherInputMasks(*win)->inputClients, next)
# 1392|                   if (xi2mask_isset(iclients->xi2mask, dev, evtype))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:1404:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2194:1: enter_function: entry to ‘DeliverTouchEvents’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2205:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2206:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2215:14: call_function: calling ‘RetrieveTouchDeliveryData’ from ‘DeliverTouchEvents’
# 1402|               Mask xi_filter = event_get_filter_from_type(dev, xi_type);
# 1403|   
# 1404|->             nt_list_for_each_entry(iclients,
# 1405|                                      wOtherInputMasks(*win)->inputClients, next)
# 1406|                   if (iclients->mask[dev->id] & xi_filter)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def37]
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2293:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2274:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2284:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2286:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2291:18: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2293:9: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2293:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2293:9: danger: dereference of NULL ‘<unknown>’
# 2291|           evtype = GetXI2Type(ev->any.type);
# 2292|   
# 2293|->         nt_list_for_each_entry(iclients, wOtherInputMasks(*win)->inputClients, next)
# 2294|               if (xi2mask_isset(iclients->xi2mask, dev, evtype))
# 2295|                   break;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def38]
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2682:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2669:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2682:23: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2682:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2682:14: danger: dereference of NULL ‘<unknown>’
# 2680|               }
# 2681|           }
# 2682|->         for (others = wOtherInputMasks(pWin)->inputClients; others;
# 2683|                others = others->next) {
# 2684|               if (SameClient(others, client)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2770:5: warning[-Wanalyzer-malloc-leak]: leak of ‘imasks’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2762:14: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2763:8: branch_false: following ‘false’ branch (when ‘imasks’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2765:23: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2766:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2770:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:2770:5: danger: ‘imasks’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 2768|           return FALSE;
# 2769|       }
# 2770|->     pWin->optional->inputMasks = imasks;
# 2771|       return TRUE;
# 2772|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def40]
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3244:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘inputMasks’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3222:1: enter_function: entry to ‘DeviceEventSuppressForWindow’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3227:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3232:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3232:8: branch_false: following ‘false’ branch (when ‘mask != 0’)...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3237:12: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3237:12: branch_true: following ‘true’ branch (when ‘inputMasks’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3238:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3238:13: call_function: calling ‘AddExtensionClient’ from ‘DeviceEventSuppressForWindow’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3238:13: return_function: returning to ‘DeviceEventSuppressForWindow’ from ‘AddExtensionClient’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3239:22: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3240:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3243:9: call_function: calling ‘ShouldFreeInputMasks’ from ‘DeviceEventSuppressForWindow’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3243:9: return_function: returning to ‘DeviceEventSuppressForWindow’ from ‘ShouldFreeInputMasks’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3243:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3244:22: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3244:22: danger: dereference of NULL ‘inputMasks’
# 3242|       RecalculateDeviceDeliverableEvents(pWin);
# 3243|       if (ShouldFreeInputMasks(pWin, FALSE))
# 3244|->         FreeResource(inputMasks->inputClients->resource, RT_NONE);
# 3245|       return Success;
# 3246|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def41]
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3338:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3318:1: enter_function: entry to ‘XISetEventMask’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3335:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3336:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3336:13: call_function: calling ‘AddExtensionClient’ from ‘XISetEventMask’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3336:13: return_function: returning to ‘XISetEventMask’ from ‘AddExtensionClient’
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3336:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3338:18: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3338:18: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3338:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/exevents.c:3338:9: danger: dereference of NULL ‘<unknown>’
# 3336|           if (AddExtensionClient(win, client, 0, 0) != Success)
# 3337|               return BadAlloc;
# 3338|->         others = wOtherInputMasks(win)->inputClients;
# 3339|       }
# 3340|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def42]
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:108:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*k2.led_values’
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:278:1: enter_function: entry to ‘ProcXGetFeedbackControl’
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:292:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:294:32: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:295:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:301:27: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:306:28: branch_false: following ‘false’ branch (when ‘k’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:310:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:310:28: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:314:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:314:31: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:319:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:319:28: branch_false: following ‘false’ branch (when ‘i’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:323:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:323:25: branch_false: following ‘false’ branch (when ‘l’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:327:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:327:25: branch_true: following ‘true’ branch (when ‘b’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:328:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:327:25: branch_false: following ‘false’ branch (when ‘b’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:332:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:332:8: branch_false: following ‘false’ branch (when ‘total_length != 0’)...
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:335:20: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:336:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:340:28: branch_true: following ‘true’ branch (when ‘k’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:341:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getfctl.c:341:9: call_function: calling ‘CopySwapKbdFeedback’ from ‘ProcXGetFeedbackControl’
#  106|           swaps(&k2->duration);
#  107|           swapl(&k2->led_mask);
#  108|->         swapl(&k2->led_values);
#  109|       }
#  110|       *buf += sizeof(xKbdFeedbackState);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:163:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:92:1: enter_function: entry to ‘ProcXGetDeviceDontPropagateList’
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:102:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:107:27: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:113:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:116:19: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:116:19: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:117:21: branch_true: following ‘true’ branch (when ‘i != 258’)...
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:118:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:118:13: call_function: calling ‘ClassFromMask’ from ‘ProcXGetDeviceDontPropagateList’
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:118:13: return_function: returning to ‘ProcXGetDeviceDontPropagateList’ from ‘ClassFromMask’
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:119:12: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:120:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:121:19: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:125:25: branch_true: following ‘true’ branch (when ‘i != 258’)...
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:126:24: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/getprop.c:126:24: call_function: calling ‘ClassFromMask’ from ‘ProcXGetDeviceDontPropagateList’
#  161|                           (*count)++;
#  162|                       else
#  163|->                         *buf++ = (id << 8) | EventInfo[j].type;
#  164|                   }
#  165|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def44]
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:171:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dev’
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:331:1: enter_function: entry to ‘ProcXListInputDevices’
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:343:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:348:27: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:354:8: branch_false: following ‘false’ branch (when ‘skip’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:359:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:359:33: branch_true: following ‘true’ branch (when ‘d’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:360:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:361:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:364:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:364:9: call_function: calling ‘SizeDeviceInfo’ from ‘ProcXListInputDevices’
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:364:9: return_function: returning to ‘ProcXListInputDevices’ from ‘SizeDeviceInfo’
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:359:33: branch_false: following ‘false’ branch (when ‘d’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:368:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:368:37: branch_false: following ‘false’ branch (when ‘d’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:378:20: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:379:23: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:387:33: branch_true: following ‘true’ branch (when ‘d’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:388:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:388:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:391:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/listdev.c:391:9: call_function: calling ‘ListDeviceInfo’ from ‘ProcXListInputDevices’
#  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-835): [#def45]
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:124:5: warning[-Wanalyzer-infinite-loop]: infinite loop
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:795:1: enter_function: entry to ‘XICreatePointerBarrier’
#  122|       struct PointerBarrierDevice *pbd = NULL, *tmp = NULL;
#  123|   
#  124|->     xorg_list_for_each_entry_safe(pbd, tmp, &c->per_device, entry) {
#  125|           free(pbd);
#  126|       }

Error: GCC_ANALYZER_WARNING (CWE-415): [#def46]
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:125:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘pbd’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:795:1: enter_function: entry to ‘XICreatePointerBarrier’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:807:9: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:811:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:818:9: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:821:16: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:821:16: call_function: calling ‘CreatePointerBarrierClient’ from ‘XICreatePointerBarrier’
#  123|   
#  124|       xorg_list_for_each_entry_safe(pbd, tmp, &c->per_device, entry) {
#  125|->         free(pbd);
#  126|       }
#  127|       free(c);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:729:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘AllocBarrierDevice()’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:717:13: enter_function: entry to ‘add_master_func’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:728:11: call_function: calling ‘AllocBarrierDevice’ from ‘add_master_func’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:728:11: return_function: returning to ‘add_master_func’ from ‘AllocBarrierDevice’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:729:5: danger: dereference of NULL ‘AllocBarrierDevice()’
#  727|   
#  728|       pbd = AllocBarrierDevice();
#  729|->     pbd->deviceid = *deviceid;
#  730|   
#  731|       input_lock();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:712:5: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:701:1: enter_function: entry to ‘PanoramiXCompositeNameWindowPixmap’
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:712:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:714:15: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:714:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:720:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:720:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:722:20: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:722:20: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:722:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:725:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:729:5: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:730:58: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:732:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:738:18: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:738:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:743:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:743:14: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeNameWindowPixmap’
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:743:14: return_function: returning to ‘PanoramiXCompositeNameWindowPixmap’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:744:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:749:21: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:750:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:755:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:755:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../composite/compext.c:712:5: danger: ‘newPix’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#  710|       REQUEST(xCompositeNameWindowPixmapReq);
#  711|   
#  712|->     REQUEST_SIZE_MATCH(xCompositeNameWindowPixmapReq);
#  713|   
#  714|       if ((rc = dixLookupResourceByType((void **) &win, stuff->window, XRT_WINDOW,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
xwayland-24.1.6/redhat-linux-build/../dix/dixfonts.c:1315:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘origGC’
xwayland-24.1.6/redhat-linux-build/../dix/dixfonts.c:1352:1: enter_function: entry to ‘PolyText’
xwayland-24.1.6/redhat-linux-build/../dix/dixfonts.c:1368:12: call_function: calling ‘doPolyText’ from ‘PolyText’
# 1313|       if (client_state == START_SLEEP) {
# 1314|           /* Step 4 */
# 1315|->         if (pFont != origGC->font) {
# 1316|               ChangeGCVal val;
# 1317|   

Error: GCC_ANALYZER_WARNING (CWE-590): [#def50]
xwayland-24.1.6/redhat-linux-build/../dix/dixfonts.c:1346:9: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘c’ which points to memory on the stack
xwayland-24.1.6/redhat-linux-build/../dix/dixfonts.c:1352:1: enter_function: entry to ‘PolyText’
xwayland-24.1.6/redhat-linux-build/../dix/dixfonts.c:1368:12: call_function: calling ‘doPolyText’ from ‘PolyText’
# 1344|           FreeScratchGC(c->pGC);
# 1345|           free(c->data);
# 1346|->         free(c);
# 1347|       }
# 1348|       return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-590): [#def51]
xwayland-24.1.6/redhat-linux-build/../dix/dixfonts.c:1492:9: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘c’ which points to memory on the stack
xwayland-24.1.6/redhat-linux-build/../dix/dixfonts.c:1498:1: enter_function: entry to ‘ImageText’
xwayland-24.1.6/redhat-linux-build/../dix/dixfonts.c:1513:12: call_function: calling ‘doImageText’ from ‘ImageText’
# 1490|           FreeScratchGC(c->pGC);
# 1491|           free(c->data);
# 1492|->         free(c);
# 1493|       }
# 1494|       return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
xwayland-24.1.6/redhat-linux-build/../dix/enterleave.c:786:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘xi2event’
xwayland-24.1.6/redhat-linux-build/../dix/enterleave.c:1553:1: enter_function: entry to ‘DoFocusEvents’
xwayland-24.1.6/redhat-linux-build/../dix/enterleave.c:1555:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/enterleave.c:1558:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/enterleave.c:1562:5: call_function: calling ‘DeviceFocusEvents’ from ‘DoFocusEvents’
#  784|   
#  785|       xi2event = calloc(1, len);
#  786|->     xi2event->type = GenericEvent;
#  787|       xi2event->extension = IReqCode;
#  788|       xi2event->evtype = type;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
xwayland-24.1.6/redhat-linux-build/../dix/events.c:773:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pScreen’
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5049:1: enter_function: entry to ‘ProcChangeActivePointerGrab’
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5058:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5059:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5059:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5063:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5069:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5075:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5078:8: branch_false: following ‘false’ branch (when ‘grab’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5080:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5080:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5082:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5084:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5085:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5084:9: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5087:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/events.c:5089:5: call_function: calling ‘PostNewCursor’ from ‘ProcChangeActivePointerGrab’
#  771|               if (pScreen != pSprite->hotPhys.pScreen)
#  772|                   pSprite->hotPhys = new;
#  773|->             (*pScreen->SetCursorPosition)
#  774|                   (pDev, pScreen, new.x, new.y, generateEvents);
#  775|           }

Error: GCC_ANALYZER_WARNING (CWE-122): [#def54]
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:297:13: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:266:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:271:27: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:276:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:281:16: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:281:16: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:289:12: branch_false: following ‘false’ branch (when ‘bufptr’ is non-NULL)...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:291:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:294:55: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:294:16: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:297:48: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/extension.c:297:13: danger: out-of-bounds write at byte 0 but region ends at byte 0
#  295|                   continue;
#  296|   
#  297|->             *bufptr++ = len = strlen(extensions[i]->name);
#  298|               memcpy(bufptr, extensions[i]->name, len);
#  299|               bufptr += len;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def55]
xwayland-24.1.6/redhat-linux-build/../dix/gestures.c:242:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘inputMasks’
xwayland-24.1.6/redhat-linux-build/../dix/gestures.c:236:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/gestures.c:239:18: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/gestures.c:239:18: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/gestures.c:241:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/gestures.c:241:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/gestures.c:242:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/gestures.c:242:9: danger: dereference of NULL ‘inputMasks’
#  240|   
#  241|       if (mask & EVENT_XI2_MASK) {
#  242|->         nt_list_for_each_entry(iclients, inputMasks->inputClients, next) {
#  243|               if (!xi2mask_isset(iclients->xi2mask, dev, evtype))
#  244|                   continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:522:5: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:503:1: enter_function: entry to ‘dixAllocatePrivates’
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:508:5: branch_true: following ‘true’ branch (when ‘type != 0’)...
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:509:5: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:509:5: branch_true: following ‘true’ branch (when ‘type <= 16’)...
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:510:5: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:510:5: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:512:5: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:513:8: branch_false: following ‘false’ branch (when ‘size != 0’)...
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:517:19: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:517:19: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:517:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:521:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:521:5: call_function: calling ‘_dixInitPrivates’ from ‘dixAllocatePrivates’
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:521:5: return_function: returning to ‘dixAllocatePrivates’ from ‘_dixInitPrivates’
xwayland-24.1.6/redhat-linux-build/../dix/privates.c:522:5: danger: ‘p’ leaks here; was allocated at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
#  520|   
#  521|       _dixInitPrivates(privates, p, type);
#  522|->     ++global_keys[type].allocated;
#  523|   
#  524|       return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
xwayland-24.1.6/redhat-linux-build/../dix/property.c:299:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*pWin.optional’
xwayland-24.1.6/redhat-linux-build/../dix/property.c:203:1: enter_function: entry to ‘ProcChangeProperty’
xwayland-24.1.6/redhat-linux-build/../dix/property.c:213:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/property.c:214:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:231:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/property.c:234:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/property.c:236:20: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:236:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/property.c:240:20: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:240:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/property.c:246:66: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:245:11: call_function: calling ‘dixChangeWindowProperty’ from ‘ProcChangeProperty’
#  297|               return rc;
#  298|           }
#  299|->         pProp->next = pWin->optional->userProps;
#  300|           pWin->optional->userProps = pProp;
#  301|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
xwayland-24.1.6/redhat-linux-build/../dix/property.c:584:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pAtoms’
xwayland-24.1.6/redhat-linux-build/../dix/property.c:584:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/property.c:585:33: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:586:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/property.c:589:18: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:589:18: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/property.c:589:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:592:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.6/redhat-linux-build/../dix/property.c:593:18: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:593:18: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:594:12: branch_false: following ‘false’ branch (when ‘pAtoms’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../dix/property.c:599:22: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:599:22: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/property.c:599:14: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:616:8: branch_false: following ‘false’ branch (when ‘numProps == 0’)...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/property.c:584:5: danger: ‘pAtoms’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  582|       REQUEST(xResourceReq);
#  583|   
#  584|->     REQUEST_SIZE_MATCH(xResourceReq);
#  585|       rc = dixLookupWindow(&pWin, stuff->id, client, DixListPropAccess);
#  586|       if (rc != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:155:5: warning[-Wanalyzer-malloc-leak]: leak of ‘schemeData’
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:139:18: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:148:10: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitializePredictableAccelerationProperties’
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:148:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:155:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/ptrveloc.c:155:5: danger: ‘schemeData’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
#  153|       }
#  154|       /* all fine, assign scheme to device */
#  155|->     dev->valuator->accelScheme = scheme;
#  156|       return TRUE;
#  157|   }

Error: GCC_ANALYZER_WARNING (CWE-590): [#def60]
xwayland-24.1.6/redhat-linux-build/../dix/region.c:338:5: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘&RegionEmptyData’ which points to memory not on the heap
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1316:1: enter_function: entry to ‘RegionFromRects’
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1326:12: call_function: calling ‘RegionCreate’ from ‘RegionFromRects’
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1326:12: return_function: returning to ‘RegionFromRects’ from ‘RegionCreate’
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1327:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1329:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1329:8: branch_false: following ‘false’ branch (when ‘nrects != 0’)...
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1331:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1331:8: branch_false: following ‘false’ branch (when ‘nrects != 1’)...
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1347:15: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1349:8: branch_true: following ‘true’ branch (when ‘pData’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1350:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/region.c:1350:9: call_function: calling ‘RegionBreak’ from ‘RegionFromRects’
#  336|   RegionBreak(RegionPtr pReg)
#  337|   {
#  338|->     xfreeData(pReg);
#  339|       pReg->extents = RegionEmptyBox;
#  340|       pReg->data = &RegionBrokenData;

Error: GCC_ANALYZER_WARNING (CWE-131): [#def61]
xwayland-24.1.6/redhat-linux-build/../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): [#def62]
xwayland-24.1.6/redhat-linux-build/../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): [#def63]
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:765:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘inputMasks’
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:762:18: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:764:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:764:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:765:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:765:9: danger: dereference of NULL ‘inputMasks’
#  763|   
#  764|       if (mask & EVENT_XI2_MASK) {
#  765|->         nt_list_for_each_entry(iclients, inputMasks->inputClients, next) {
#  766|               if (!xi2mask_isset(iclients->xi2mask, dev, evtype))
#  767|                   continue;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:782:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘inputMasks’
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:739:1: enter_function: entry to ‘TouchAddRegularListener’
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:762:18: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:764:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:764:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:778:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:778:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:779:32: call_function: inlined call to ‘TouchGetPointerEventType’ from ‘TouchAddRegularListener’
xwayland-24.1.6/redhat-linux-build/../dix/touch.c:782:9: danger: dereference of NULL ‘inputMasks’
#  780|           Mask xi_filter = event_get_filter_from_type(dev, xitype);
#  781|   
#  782|->         nt_list_for_each_entry(iclients, inputMasks->inputClients, next) {
#  783|               if (!(iclients->mask[dev->id] & xi_filter))
#  784|                   continue;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3495:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pNewNode’
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3442:1: enter_function: entry to ‘ChangeWindowDeviceCursor’
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3449:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3465:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3467:9: call_function: calling ‘WindowSeekDeviceCursor’ from ‘ChangeWindowDeviceCursor’
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3467:9: return_function: returning to ‘ChangeWindowDeviceCursor’ from ‘WindowSeekDeviceCursor’
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3467:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3491:12: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3491:12: branch_false: following ‘false’ branch (when ‘pCursor’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3494:20: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3494:20: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../dix/window.c:3495:9: danger: ‘pNewNode’ could be NULL: unchecked value from [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
# 3493|   
# 3494|           pNewNode = malloc(sizeof(DevCursNodeRec));
# 3495|->         pNewNode->dev = pDev;
# 3496|           pNewNode->next = pWin->optional->deviceCursors;
# 3497|           pWin->optional->deviceCursors = pNewNode;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def66]
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:143:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:112:1: enter_function: entry to ‘dri3_fd_from_pixmap’
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:115:38: call_function: inlined call to ‘dri3_screen_priv’ from ‘dri3_fd_from_pixmap’
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:115:38: call_function: inlined call to ‘dri3_screen_priv’ from ‘dri3_fd_from_pixmap’
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:123:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:129:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:129:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:132:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:132:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:143:13: danger: out-of-bounds read from byte 16 till byte 19 but ‘fds’ ends at byte 16
#  141|           int i;
#  142|           for (i = 0; i < num_fds; i++)
#  143|->             close(fds[i]);
#  144|           return -1;
#  145|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:186:8: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)num_formats, 16)’
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:153:1: enter_function: entry to ‘cache_formats_and_modifiers’
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:155:38: call_function: inlined call to ‘dri3_screen_priv’ from ‘cache_formats_and_modifiers’
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:155:38: call_function: inlined call to ‘dri3_screen_priv’ from ‘cache_formats_and_modifiers’
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:166:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:166:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:169:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:169:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:176:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:179:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:179:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:185:19: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:185:19: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../dri3/dri3_screen.c:186:8: danger: ‘calloc((long unsigned int)num_formats, 16)’ leaks here; was allocated at [(22)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/21)
#  184|   
#  185|       ds->formats = calloc(num_formats, sizeof(dri3_dmabuf_format_rec));
#  186|->     if (!ds->formats) {
#  187|           free(formats);
#  188|           return BadAlloc;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def68]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:926:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ps’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:904:1: enter_function: entry to ‘glamor_close_screen’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:908:27: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:910:19: call_function: inlined call to ‘glamor_get_screen_private’ from ‘glamor_close_screen’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:910:19: call_function: inlined call to ‘glamor_get_screen_private’ from ‘glamor_close_screen’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:913:5: call_function: calling ‘glamor_set_glvnd_vendor’ from ‘glamor_close_screen’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:913:5: return_function: returning to ‘glamor_close_screen’ from ‘glamor_set_glvnd_vendor’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:926:5: danger: dereference of NULL ‘ps’
#  924|       screen->BlockHandler = glamor_priv->saved_procs.block_handler;
#  925|   
#  926|->     ps->Composite = glamor_priv->saved_procs.composite;
#  927|       ps->Trapezoids = glamor_priv->saved_procs.trapezoids;
#  928|       ps->Triangles = glamor_priv->saved_procs.triangles;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1024:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1013:1: enter_function: entry to ‘_glamor_fds_from_pixmap’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1018:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘_glamor_fds_from_pixmap’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1020:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1020:9: call_function: inlined call to ‘glamor_get_screen_private’ from ‘_glamor_fds_from_pixmap’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1020:9: call_function: inlined call to ‘glamor_get_screen_private’ from ‘_glamor_fds_from_pixmap’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1022:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1024:13: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1024:13: danger: dereference of NULL ‘<unknown>’
# 1022|       if (!glamor_priv->dri3_enabled)
# 1023|           return 0;
# 1024|->     switch (pixmap_priv->type) {
# 1025|       case GLAMOR_TEXTURE_DRM:
# 1026|       case GLAMOR_TEXTURE_ONLY:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1101:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1097:1: enter_function: entry to ‘glamor_name_from_pixmap’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1099:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_name_from_pixmap’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1101:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor.c:1101:13: danger: dereference of NULL ‘<unknown>’
# 1099|       glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap);
# 1100|   
# 1101|->     switch (pixmap_priv->type) {
# 1102|       case GLAMOR_TEXTURE_DRM:
# 1103|       case GLAMOR_TEXTURE_ONLY:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:432:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘glyph_atlas’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:356:1: enter_function: entry to ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:386:12: branch_true: following ‘true’ branch (when ‘nlist != 0’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:387:14: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:391:16: branch_true: following ‘true’ branch (when ‘n != 0’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:392:31: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:396:16: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:20: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:21: call_function: calling ‘glamor_pixmap_is_memory’ from ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:21: return_function: returning to ‘glamor_composite_glyphs’ from ‘glamor_pixmap_is_memory’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:20: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:417:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:417:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:422:24: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:432:25: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:432:25: danger: dereference of NULL ‘glyph_atlas’
#  430|                       /* Glyph not cached in current atlas?
#  431|                        */
#  432|->                     if (_X_UNLIKELY(glyph_priv->serial != glyph_atlas->serial)) {
#  433|                           if (!glamor_glyph_can_add(glyph_atlas, glyph_atlas_dim, glyph_draw)) {
#  434|                               if (glyphs_queued) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_compositerects.c:62:20: warning[-Wanalyzer-malloc-leak]: leak of ‘boxes’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_compositerects.c:101:1: enter_function: entry to ‘glamor_composite_rectangles’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_compositerects.c:122:8: branch_false: following ‘false’ branch (when ‘num_rects != 0’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_compositerects.c:125:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_compositerects.c:184:10: call_function: calling ‘_pixman_region_init_clipped_rectangles’ from ‘glamor_composite_rectangles’
#   60|           boxes = xallocarray(num_rects, sizeof(pixman_box16_t));
#   61|           if (boxes == NULL)
#   62|->             return FALSE;
#   63|       }
#   64|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_copy.c:704:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_copy.c:741:9: call_function: calling ‘glamor_copy_gl’ from ‘glamor_copy’
#  702|       glamor_pixmap_private *dst_priv = glamor_get_pixmap_private(dst_pixmap);
#  703|   
#  704|->     if (GLAMOR_PIXMAP_PRIV_HAS_FBO(dst_priv)) {
#  705|           if (GLAMOR_PIXMAP_PRIV_HAS_FBO(src_priv)) {
#  706|               if (glamor_copy_needs_temp(src, dst, box, nbox, dx, dy))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_copy.c:705:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_copy.c:741:9: call_function: calling ‘glamor_copy_gl’ from ‘glamor_copy’
#  703|   
#  704|       if (GLAMOR_PIXMAP_PRIV_HAS_FBO(dst_priv)) {
#  705|->         if (GLAMOR_PIXMAP_PRIV_HAS_FBO(src_priv)) {
#  706|               if (glamor_copy_needs_temp(src, dst, box, nbox, dx, dy))
#  707|                   return glamor_copy_fbo_fbo_temp(src, dst, gc, box, nbox, dx, dy,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:44:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:39:1: enter_function: entry to ‘glamor_get_drawable_location’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:42:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_get_drawable_location’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:44:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:44:9: danger: dereference of NULL ‘<unknown>’
#   42|       glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap);
#   43|   
#   44|->     if (pixmap_priv->gl_fbo == GLAMOR_FBO_UNATTACHED)
#   45|           return 'm';
#   46|       else

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:205:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:195:1: enter_function: entry to ‘glamor_validate_gc’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:201:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:202:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:202:12: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:204:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:204:17: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_validate_gc’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:205:19: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_core.c:205:19: danger: dereference of NULL ‘<unknown>’
#  203|               glamor_pixmap_private *pixmap_priv =
#  204|                   glamor_get_pixmap_private(gc->tile.pixmap);
#  205|->             if ((!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#  206|                   && FbEvenTile(gc->tile.pixmap->drawable.width *
#  207|                                 drawable->bitsPerPixel)) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def77]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_dash.c:143:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_dash.c:133:1: enter_function: entry to ‘glamor_dash_setup’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_dash.c:138:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_dash_setup’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_dash.c:143:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_dash.c:143:10: danger: dereference of NULL ‘<unknown>’
#  141|       glamor_program *prog;
#  142|   
#  143|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#  144|           goto bail;
#  145|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_dash.c:152:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_dash.c:320:1: enter_function: entry to ‘glamor_poly_segment_dash_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_dash.c:331:18: call_function: calling ‘glamor_dash_setup’ from ‘glamor_poly_segment_dash_gl’
#  150|       dash_priv = glamor_get_pixmap_private(dash_pixmap);
#  151|   
#  152|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(dash_priv))
#  153|           goto bail;
#  154|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:287:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:281:1: enter_function: entry to ‘glamor_pixmap_attach_fbo’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:285:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_attach_fbo’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:287:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:287:9: danger: dereference of NULL ‘<unknown>’
#  285|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#  286|   
#  287|->     if (pixmap_priv->fbo)
#  288|           return;
#  289|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:366:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:359:1: enter_function: entry to ‘glamor_pixmap_exchange_fbos’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:366:5: danger: dereference of NULL ‘<unknown>’
#  364|       front_priv = glamor_get_pixmap_private(front);
#  365|       back_priv = glamor_get_pixmap_private(back);
#  366|->     temp_fbo = front_priv->fbo;
#  367|       front_priv->fbo = back_priv->fbo;
#  368|       back_priv->fbo = temp_fbo;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:367:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:359:1: enter_function: entry to ‘glamor_pixmap_exchange_fbos’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:364:18: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_exchange_fbos’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:364:18: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_exchange_fbos’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:365:17: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_exchange_fbos’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:366:5: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:367:23: danger: dereference of NULL ‘<unknown>’
#  365|       back_priv = glamor_get_pixmap_private(back);
#  366|       temp_fbo = front_priv->fbo;
#  367|->     front_priv->fbo = back_priv->fbo;
#  368|       back_priv->fbo = temp_fbo;
#  369|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def82]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_glyphblt.c:56:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_glyphblt.c:42:1: enter_function: entry to ‘glamor_poly_glyph_blt_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_glyphblt.c:55:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_poly_glyph_blt_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_glyphblt.c:56:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_glyphblt.c:56:10: danger: dereference of NULL ‘<unknown>’
#   54|   
#   55|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#   56|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#   57|           goto bail;
#   58|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def83]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_glyphblt.c:191:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_glyphblt.c:169:1: enter_function: entry to ‘glamor_push_pixels_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_glyphblt.c:187:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_glyphblt.c:190:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_push_pixels_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_glyphblt.c:191:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_glyphblt.c:191:10: danger: dereference of NULL ‘<unknown>’
#  189|   
#  190|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#  191|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#  192|           goto bail;
#  193|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def84]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_gradient.c:671:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_gradient.c:656:1: enter_function: entry to ‘_glamor_gradient_set_pixmap_destination’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_gradient.c:669:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘_glamor_gradient_set_pixmap_destination’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_gradient.c:671:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_gradient.c:671:10: danger: dereference of NULL ‘<unknown>’
#  669|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#  670|   
#  671|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv)) {     /* should always have here. */
#  672|           return 0;
#  673|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def85]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_image.c:46:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_image.c:32:1: enter_function: entry to ‘glamor_put_image_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_image.c:44:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_put_image_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_image.c:46:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_image.c:46:10: danger: dereference of NULL ‘<unknown>’
#   44|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#   45|   
#   46|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#   47|           return FALSE;
#   48|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_image.c:116:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_image.c:106:1: enter_function: entry to ‘glamor_get_image_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_image.c:115:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_get_image_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_image.c:116:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_image.c:116:10: danger: dereference of NULL ‘<unknown>’
#  114|   
#  115|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#  116|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#  117|           goto bail;
#  118|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:130:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘clipped_regions’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1039:49: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1039:49: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1040:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1040:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1155:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1158:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1158:13: call_function: calling ‘glamor_compute_clipped_regions_ext’ from ‘glamor_composite_largepixmap_region’
#  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): [#def88]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:235:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result_regions’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1039:49: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1039:49: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1040:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1040:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1155:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1158:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1158:13: call_function: calling ‘glamor_compute_clipped_regions_ext’ from ‘glamor_composite_largepixmap_region’
#  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): [#def89]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:365:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘clipped_regions’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1109:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1132:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1132:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1155:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1155:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1155:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1155:9: branch_false: following ‘false’ branch (when ‘fixed_block_height >= dest_block_height’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1163:32: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1163:32: call_function: calling ‘glamor_compute_clipped_regions’ from ‘glamor_composite_largepixmap_region’
#  363|       if (glamor_pixmap_priv_is_small(pixmap_priv)) {
#  364|           clipped_regions = calloc(1, sizeof(*clipped_regions));
#  365|->         clipped_regions[0].region = RegionCreate(NULL, 1);
#  366|           clipped_regions[0].block_idx = 0;
#  367|           RegionCopy(clipped_regions[0].region, region);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def90]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1175:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘source_pixmap_priv’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1039:49: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1039:49: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1040:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1040:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1158:13: call_function: calling ‘glamor_compute_clipped_regions_ext’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1158:13: return_function: returning to ‘glamor_composite_largepixmap_region’ from ‘glamor_compute_clipped_regions_ext’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1168:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1169:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1168:9: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1171:12: call_function: inlined call to ‘glamor_pixmap_priv_is_large’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1174:30: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_largepixmap.c:1175:9: danger: ‘source_pixmap_priv’ could be NULL: unchecked value from [(62)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/61)
# 1173|           need_free_source_pixmap_priv = source_pixmap_priv;
# 1174|           source_pixmap_priv = malloc(sizeof(*source_pixmap_priv));
# 1175|->         *source_pixmap_priv = *need_free_source_pixmap_priv;
# 1176|           need_free_source_pixmap_priv = source_pixmap_priv;
# 1177|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def91]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_lines.c:52:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_lines.c:36:1: enter_function: entry to ‘glamor_poly_lines_solid_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_lines.c:51:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_poly_lines_solid_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_lines.c:52:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_lines.c:52:10: danger: dereference of NULL ‘<unknown>’
#   50|   
#   51|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#   52|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#   53|           goto bail;
#   54|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def92]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_pixmap.c:92:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_pixmap.c:100:1: enter_function: entry to ‘glamor_set_destination_pixmap’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_pixmap.c:103:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_set_destination_pixmap’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_pixmap.c:104:15: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_pixmap.c:107:11: call_function: inlined call to ‘glamor_set_destination_pixmap_priv’ from ‘glamor_set_destination_pixmap’
#   90|                                      glamor_pixmap_private *pixmap_priv)
#   91|   {
#   92|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#   93|           return -1;
#   94|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def93]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_points.c:54:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_points.c:40:1: enter_function: entry to ‘glamor_poly_point_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_points.c:53:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_poly_point_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_points.c:54:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_points.c:54:10: danger: dereference of NULL ‘<unknown>’
#   52|   
#   53|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#   54|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#   55|           goto bail;
#   56|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def94]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_prepare.c:44:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_prepare.c:275:1: enter_function: entry to ‘glamor_prepare_access_gc’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_prepare.c:279:16: call_function: calling ‘glamor_prepare_access’ from ‘glamor_prepare_access_gc’
#   42|       int                         off_x, off_y;
#   43|   
#   44|->     if (priv->type == GLAMOR_DRM_ONLY)
#   45|           return FALSE;
#   46|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def95]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_prepare.c:159:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_prepare.c:292:1: enter_function: entry to ‘glamor_finish_access_gc’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_prepare.c:296:9: call_function: calling ‘glamor_finish_access’ from ‘glamor_finish_access_gc’
#  157|       glamor_pixmap_private       *priv = glamor_get_pixmap_private(pixmap);
#  158|   
#  159|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(priv))
#  160|           return;
#  161|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_priv.h:458:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1701:1: enter_function: entry to ‘glamor_composite’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1720:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1721:25: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1722:13: call_function: calling ‘glamor_pixmap_drm_only’ from ‘glamor_composite’
#  456|       glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
#  457|   
#  458|->     return priv->type == GLAMOR_DRM_ONLY;
#  459|   }
#  460|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def97]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_priv.h:469:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:356:1: enter_function: entry to ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:379:17: branch_true: following ‘true’ branch (when ‘n < nlist’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:380:23: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:386:12: branch_true: following ‘true’ branch (when ‘nlist != 0’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:387:14: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:391:16: branch_true: following ‘true’ branch (when ‘n != 0’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:392:31: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:396:16: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:20: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:21: call_function: calling ‘glamor_pixmap_is_memory’ from ‘glamor_composite_glyphs’
#  467|       glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
#  468|   
#  469|->     return priv->type == GLAMOR_MEMORY;
#  470|   }
#  471|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def98]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_priv.h:502:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:356:1: enter_function: entry to ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:386:12: branch_true: following ‘true’ branch (when ‘nlist != 0’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:387:14: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:391:16: branch_true: following ‘true’ branch (when ‘n != 0’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:392:31: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:396:16: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:20: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:21: call_function: calling ‘glamor_pixmap_is_memory’ from ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:21: return_function: returning to ‘glamor_composite_glyphs’ from ‘glamor_pixmap_is_memory’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:20: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:417:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:417:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:422:24: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:423:28: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:423:28: branch_false: following ‘false’ branch (when ‘glyphs_queued == 0’)...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:432:24: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:433:30: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:443:28: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:444:29: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:444:29: call_function: calling ‘glamor_glyph_atlas_init’ from ‘glamor_composite_glyphs’
#  500|       glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
#  501|   
#  502|->     return priv->gl_fbo == GLAMOR_FBO_NORMAL;
#  503|   }
#  504|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def99]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_priv.h:517:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:356:1: enter_function: entry to ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:386:12: branch_true: following ‘true’ branch (when ‘nlist != 0’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:387:14: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:391:16: branch_true: following ‘true’ branch (when ‘n != 0’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:392:31: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:396:16: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:20: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:21: call_function: calling ‘glamor_pixmap_is_memory’ from ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:21: return_function: returning to ‘glamor_composite_glyphs’ from ‘glamor_pixmap_is_memory’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:402:20: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:417:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:417:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:422:24: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:423:28: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:423:28: branch_false: following ‘false’ branch (when ‘glyphs_queued == 0’)...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:453:24: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:454:29: call_function: inlined call to ‘glamor_glsl_has_ints’ from ‘glamor_composite_glyphs’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:466:28: branch_false: following ‘false’ branch (when ‘prog’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:468:29: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:391:16: branch_true: following ‘true’ branch (when ‘n != 0’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:392:31: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:396:16: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:406:24: branch_true: following ‘true’ branch (when ‘glyphs_queued != 0’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:407:25: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_composite_glyphs.c:407:25: call_function: calling ‘glamor_glyphs_flush’ from ‘glamor_composite_glyphs’
#  515|   glamor_pixmap_fbo_at(glamor_pixmap_private *priv, int box)
#  516|   {
#  517|->     assert(box < priv->block_wcnt * priv->block_hcnt);
#  518|       return priv->fbo_array[box];
#  519|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def100]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_priv.h:524:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_transform.c:37:1: enter_function: entry to ‘glamor_set_destination_drawable’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_transform.c:48:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_set_destination_drawable’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_transform.c:50:18: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_transform.c:50:18: call_function: calling ‘glamor_pixmap_box_at’ from ‘glamor_set_destination_drawable’
#  522|   glamor_pixmap_box_at(glamor_pixmap_private *priv, int box)
#  523|   {
#  524|->     assert(box < priv->block_wcnt * priv->block_hcnt);
#  525|       return &priv->box_array[box];
#  526|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_priv.h:537:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_copy.c:741:9: call_function: calling ‘glamor_copy_gl’ from ‘glamor_copy’
#  535|   glamor_pixmap_hcnt(glamor_pixmap_private *priv)
#  536|   {
#  537|->     return priv->block_hcnt;
#  538|   }
#  539|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def102]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_rects.c:61:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_rects.c:45:1: enter_function: entry to ‘glamor_poly_fill_rect_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_rects.c:60:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_poly_fill_rect_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_rects.c:61:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_rects.c:61:10: danger: dereference of NULL ‘<unknown>’
#   59|   
#   60|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#   61|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#   62|           goto bail;
#   63|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def103]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1577:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1701:1: enter_function: entry to ‘glamor_composite’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1720:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1726:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1726:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1728:13: call_function: calling ‘glamor_pixmap_drm_only’ from ‘glamor_composite’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1728:13: return_function: returning to ‘glamor_composite’ from ‘glamor_pixmap_drm_only’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1728:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1737:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1737:10: call_function: calling ‘glamor_pixmap_has_fbo’ from ‘glamor_composite’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1737:10: return_function: returning to ‘glamor_composite’ from ‘glamor_pixmap_has_fbo’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1737:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1740:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1740:8: branch_false: following ‘false’ branch (when ‘op <= 12’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1745:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1745:8: branch_true: following ‘true’ branch (when ‘mask’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1745:14: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1754:9: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1754:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1754:9: branch_true: following ‘true’ branch (when ‘mask’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1755:21: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1755:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1760:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1768:35: branch_true: following ‘true’ branch (when ‘mask_pixmap’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1769:50: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1764:35: branch_false: following ‘false’ branch (when ‘source_pixmap’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1762:35: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1760:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1775:12: call_function: inlined call to ‘RegionNumRects’ from ‘glamor_composite’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1803:23: call_function: calling ‘glamor_pixmap_is_large’ from ‘glamor_composite’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1803:23: return_function: returning to ‘glamor_composite’ from ‘glamor_pixmap_is_large’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1803:9: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1803:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1803:9: branch_false: following ‘false’ branch (when ‘source_pixmap’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1803:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1803:9: branch_true: following ‘true’ branch (when ‘mask_pixmap’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1806:28: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1806:28: call_function: calling ‘glamor_pixmap_is_large’ from ‘glamor_composite’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1806:28: return_function: returning to ‘glamor_composite’ from ‘glamor_pixmap_is_large’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1806:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1817:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_render.c:1817:14: call_function: calling ‘glamor_composite_clipped_region’ from ‘glamor_composite’
# 1575|                && (source->pSourcePict->type != SourcePictTypeSolidFill))
# 1576|               || (source->pDrawable
# 1577|->                 && !GLAMOR_PIXMAP_PRIV_HAS_FBO(source_pixmap_priv)
# 1578|                   && (source_pixmap->drawable.width != width
# 1579|                       || source_pixmap->drawable.height != height)))) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_segs.c:52:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_segs.c:36:1: enter_function: entry to ‘glamor_poly_segment_solid_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_segs.c:51:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_poly_segment_solid_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_segs.c:52:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_segs.c:52:10: danger: dereference of NULL ‘<unknown>’
#   50|   
#   51|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#   52|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#   53|           goto bail;
#   54|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def105]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:62:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:45:1: enter_function: entry to ‘glamor_fill_spans_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:61:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_fill_spans_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:62:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:62:10: danger: dereference of NULL ‘<unknown>’
#   60|   
#   61|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#   62|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#   63|           goto bail;
#   64|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def106]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:194:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:180:1: enter_function: entry to ‘glamor_get_spans_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:193:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_get_spans_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:194:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:194:10: danger: dereference of NULL ‘<unknown>’
#  192|   
#  193|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#  194|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#  195|           goto bail;
#  196|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:277:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:263:1: enter_function: entry to ‘glamor_set_spans_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:276:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_set_spans_gl’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:277:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_spans.c:277:10: danger: dereference of NULL ‘<unknown>’
#  275|   
#  276|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#  277|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#  278|           goto bail;
#  279|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def108]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_text.c:406:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_text.c:391:1: enter_function: entry to ‘glamor_image_text’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_text.c:405:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_image_text’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_text.c:406:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_text.c:406:10: danger: dereference of NULL ‘<unknown>’
#  404|   
#  405|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#  406|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#  407|           return FALSE;
#  408|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def109]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_transform.c:173:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_transform.c:167:1: enter_function: entry to ‘glamor_set_texture_pixmap’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_transform.c:171:20: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_set_texture_pixmap’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_transform.c:173:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_transform.c:173:10: danger: dereference of NULL ‘<unknown>’
#  171|       texture_priv = glamor_get_pixmap_private(texture);
#  172|   
#  173|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(texture_priv))
#  174|           return FALSE;
#  175|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_utils.h:671:26: warning[-Wanalyzer-malloc-leak]: leak of ‘glamor_create_fbo(glamor_get_screen_private(*pixmap.drawable.pScreen), pixmap, (int)*pixmap.drawable.width, (int)*pixmap.drawable.height,  flag)’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:326:1: enter_function: entry to ‘glamor_pixmap_ensure_fbo’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:333:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_ensure_fbo’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:333:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_ensure_fbo’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:334:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:337:33: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:336:15: call_function: calling ‘glamor_create_fbo’ from ‘glamor_pixmap_ensure_fbo’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:336:15: return_function: returning to ‘glamor_pixmap_ensure_fbo’ from ‘glamor_create_fbo’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:338:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:341:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_fbo.c:341:9: call_function: calling ‘glamor_pixmap_attach_fbo’ from ‘glamor_pixmap_ensure_fbo’
#  669|   glamor_make_current(glamor_screen_private *glamor_priv)
#  670|   {
#  671|->     if (lastGLContext != glamor_priv->ctx.ctx) {
#  672|           lastGLContext = glamor_priv->ctx.ctx;
#  673|           glamor_priv->ctx.make_current(&glamor_priv->ctx);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def111]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:488:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_pixmap_priv[1]’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:410:1: enter_function: entry to ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:415:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:417:18: call_function: inlined call to ‘RegionRects’ from ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:418:16: call_function: inlined call to ‘RegionNumRects’ from ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:427:15: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:457:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:458:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:458:12: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:460:17: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:460:17: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:457:17: branch_false: following ‘false’ branch (when ‘i == 3’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:467:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:488:38: danger: use of uninitialized value ‘src_pixmap_priv[1]’ here
#  486|   
#  487|           glActiveTexture(GL_TEXTURE1);
#  488|->         glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[1]->fbo->tex);
#  489|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
#  490|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def112]
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:510:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_pixmap_priv[1]’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:410:1: enter_function: entry to ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:415:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:417:18: call_function: inlined call to ‘RegionRects’ from ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:418:16: call_function: inlined call to ‘RegionNumRects’ from ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:427:15: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:457:17: branch_true: following ‘true’ branch (when ‘i != 3’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:458:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:458:12: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:460:17: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:460:17: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_xv_render’
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:457:17: branch_false: following ‘false’ branch (when ‘i == 3’)...
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:467:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glamor/glamor_xv.c:510:38: danger: use of uninitialized value ‘src_pixmap_priv[1]’ here
#  508|   
#  509|           glActiveTexture(GL_TEXTURE1);
#  510|->         glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[1]->fbo->tex);
#  511|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
#  512|           glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:174:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘attribs’
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:85:24: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:93:19: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:122:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:133:33: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:133:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:138:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:138:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:147:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:147:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:173:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:173:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:174:25: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:174:24: release_memory: ‘attribs’ is NULL
xwayland-24.1.6/redhat-linux-build/../glx/createcontext.c:174:17: danger: dereference of NULL ‘attribs + (long unsigned int)(i * 2) * 4’
#  172|   
#  173|       for (i = 0; i < req->numAttribs; i++) {
#  174|->         switch (attribs[i * 2]) {
#  175|           case GLX_CONTEXT_MAJOR_VERSION_ARB:
#  176|               major_version = attribs[2 * i + 1];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def114]
xwayland-24.1.6/redhat-linux-build/../glx/glxcmds.c:126:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pVisual’
#  124|   
#  125|       /* FIXME: What exactly should we check here... */
#  126|->     if (pVisual->class != glxConvertToXVisualType(config->visualType) ||
#  127|           !(config->drawableType & GLX_WINDOW_BIT)) {
#  128|           client->errorValue = pDraw->id;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def115]
xwayland-24.1.6/redhat-linux-build/../glx/glxdricommon.c:142:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘config’
xwayland-24.1.6/redhat-linux-build/../glx/glxdricommon.c:238:1: enter_function: entry to ‘glxConvertConfigs’
xwayland-24.1.6/redhat-linux-build/../glx/glxdricommon.c:247:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../glx/glxdricommon.c:248:22: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../glx/glxdricommon.c:248:22: call_function: calling ‘createModeFromConfig’ from ‘glxConvertConfigs’
#  140|       config = calloc(1, sizeof *config);
#  141|   
#  142|->     config->driConfig = driConfig;
#  143|   
#  144|       i = 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def116]
xwayland-24.1.6/redhat-linux-build/../hw/vfb/InitOutput.c:416:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ppix’
xwayland-24.1.6/redhat-linux-build/../hw/vfb/InitOutput.c:411:16: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../hw/vfb/InitOutput.c:415:21: branch_true: following ‘true’ branch (when ‘entries > i’)...
xwayland-24.1.6/redhat-linux-build/../hw/vfb/InitOutput.c:416:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/vfb/InitOutput.c:416:13: danger: ‘ppix + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  414|   
#  415|           for (i = 0; i < entries; i++)
#  416|->             ppix[i] = i;
#  417|           /* XXX truecolor */
#  418|           QueryColors(pmap, entries, ppix, prgb, serverClient);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def117]
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-drm-lease.c:458:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘device_data’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-drm-lease.c:456:48: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-drm-lease.c:458:5: danger: ‘device_data’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  456|       struct xwl_drm_lease_device *device_data = malloc(sizeof(struct xwl_drm_lease_device));
#  457|   
#  458|->     device_data->drm_lease_device = lease_device;
#  459|       device_data->xwl_screen = xwl_screen;
#  460|       device_data->drm_read_only_fd = -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-glamor-gbm.c:1185:12: warning[-Wanalyzer-malloc-leak]: leak of ‘syncobj’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-glamor-gbm.c:1148:1: enter_function: entry to ‘xwl_dri3_create_syncobj’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-glamor-gbm.c:1150:40: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-glamor-gbm.c:1154:8: branch_false: following ‘false’ branch (when ‘syncobj’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-glamor-gbm.c:1157:8: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-glamor-gbm.c:1160:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-glamor-gbm.c:1173:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-glamor-gbm.c:1185:12: danger: ‘syncobj’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
# 1183|       syncobj->base.signaled_eventfd = xwl_dri3_syncobj_signaled_eventfd;
# 1184|       syncobj->base.submitted_eventfd = xwl_dri3_syncobj_submitted_eventfd;
# 1185|->     return &syncobj->base;
# 1186|   
# 1187|   fail:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def119]
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3305:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘warp_emulator’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3481:1: enter_function: entry to ‘xwl_seat_maybe_lock_on_hidden_cursor’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3504:5: call_function: calling ‘xwl_seat_create_pointer_warp_emulator’ from ‘xwl_seat_maybe_lock_on_hidden_cursor’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3504:5: return_function: returning to ‘xwl_seat_maybe_lock_on_hidden_cursor’ from ‘xwl_seat_create_pointer_warp_emulator’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3505:5: call_function: calling ‘xwl_pointer_warp_emulator_lock’ from ‘xwl_seat_maybe_lock_on_hidden_cursor’
# 3303|   xwl_pointer_warp_emulator_lock(struct xwl_pointer_warp_emulator *warp_emulator)
# 3304|   {
# 3305|->     struct xwl_seat *xwl_seat = warp_emulator->xwl_seat;
# 3306|       struct xwl_screen *xwl_screen = xwl_seat->xwl_screen;
# 3307|       struct zwp_pointer_constraints_v1 *pointer_constraints =

Error: GCC_ANALYZER_WARNING (CWE-476): [#def120]
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3306:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xwl_seat’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3368:1: enter_function: entry to ‘xwl_pointer_warp_emulator_handle_motion’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3389:9: call_function: inlined call to ‘xwl_pointer_warp_emulator_is_locked’ from ‘xwl_pointer_warp_emulator_handle_motion’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3390:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3389:9: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3391:14: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3395:9: call_function: calling ‘xwl_seat_destroy_pointer_warp_emulator’ from ‘xwl_pointer_warp_emulator_handle_motion’
# 3304|   {
# 3305|       struct xwl_seat *xwl_seat = warp_emulator->xwl_seat;
# 3306|->     struct xwl_screen *xwl_screen = xwl_seat->xwl_screen;
# 3307|       struct zwp_pointer_constraints_v1 *pointer_constraints =
# 3308|           xwl_screen->pointer_constraints;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def121]
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3432:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*xwl_seat.pointer_warp_emulator’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3368:1: enter_function: entry to ‘xwl_pointer_warp_emulator_handle_motion’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3389:9: call_function: inlined call to ‘xwl_pointer_warp_emulator_is_locked’ from ‘xwl_pointer_warp_emulator_handle_motion’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3390:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3389:9: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3391:14: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-input.c:3395:9: call_function: calling ‘xwl_seat_destroy_pointer_warp_emulator’ from ‘xwl_pointer_warp_emulator_handle_motion’
# 3430|       xwl_seat->pointer_warp_emulator =
# 3431|           xwl_pointer_warp_emulator_create(xwl_seat);
# 3432|-> }
# 3433|   
# 3434|   static Bool

Error: GCC_ANALYZER_WARNING (CWE-476): [#def122]
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:307:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xwl_seat’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:288:1: enter_function: entry to ‘xwl_cursor_warped_to’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:295:37: call_function: inlined call to ‘xwl_screen_get’ from ‘xwl_cursor_warped_to’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:295:37: call_function: inlined call to ‘xwl_screen_get’ from ‘xwl_cursor_warped_to’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:300:8: branch_true: following ‘true’ branch (when ‘xwl_seat’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:301:20: call_function: inlined call to ‘xwl_screen_get_default_seat’ from ‘xwl_cursor_warped_to’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:303:8: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:307:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:307:24: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:307:24: danger: dereference of NULL ‘xwl_seat’
#  305|   
#  306|       xwl_window = xwl_window_from_window(window);
#  307|->     if (!xwl_window && xwl_seat->focus_window) {
#  308|           focus = xwl_seat->focus_window->toplevel;
#  309|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def123]
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:520:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘queued’
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:496:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:499:32: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:499:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:506:32: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:510:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:517:32: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:517:13: branch_true: following ‘true’ branch (when the strings are equal)...
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:518:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:518:12: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:519:58: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:519:58: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../hw/xwayland/xwayland-screen.c:520:13: danger: ‘queued’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#  518|           if (xwl_screen->screen->root == NULL) {
#  519|               struct xwl_queued_drm_lease_device *queued = malloc(sizeof(struct xwl_queued_drm_lease_device));
#  520|->             queued->id = id;
#  521|               xorg_list_append(&queued->link, &xwl_screen->queued_drm_lease_devices);
#  522|           } else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
xwayland-24.1.6/redhat-linux-build/../include/list.h:135:5: warning[-Wanalyzer-malloc-leak]: leak of ‘AllocBarrierDevice()’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:549:1: enter_function: entry to ‘CreatePointerBarrierClient’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:566:8: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:570:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:573:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:578:18: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:579:10: call_function: calling ‘dixLookupPrivate’ from ‘CreatePointerBarrierClient’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:579:10: return_function: returning to ‘CreatePointerBarrierClient’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:584:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:585:33: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:611:5: branch_true: following ‘true’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:614:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:614:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:617:15: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:617:15: call_function: calling ‘AllocBarrierDevice’ from ‘CreatePointerBarrierClient’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:617:15: return_function: returning to ‘CreatePointerBarrierClient’ from ‘AllocBarrierDevice’
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:618:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:622:25: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../Xi/xibarriers.c:625:9: call_function: inlined call to ‘xorg_list_add’ from ‘CreatePointerBarrierClient’
#  133|       entry->next = next;
#  134|       entry->prev = prev;
#  135|->     prev->next = entry;
#  136|   }
#  137|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def125]
xwayland-24.1.6/redhat-linux-build/../include/regionstr.h:74:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:190:1: enter_function: entry to ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:193:36: call_function: calling ‘dixLookupPrivate’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:193:36: return_function: returning to ‘fbOverlayCopyWindow’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
#   72|   RegionNil(RegionPtr reg)
#   73|   {
#   74|->     return ((reg)->data && !(reg)->data->numRects);
#   75|   }
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def126]
xwayland-24.1.6/redhat-linux-build/../include/regionstr.h:165:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:190:1: enter_function: entry to ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:193:36: call_function: calling ‘dixLookupPrivate’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:193:36: return_function: returning to ‘fbOverlayCopyWindow’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
#  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): [#def127]
xwayland-24.1.6/redhat-linux-build/../include/regionstr.h:166:9: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘&RegionEmptyData’ which points to memory not on the heap
xwayland-24.1.6/redhat-linux-build/../miext/damage/damage.c:1412:1: enter_function: entry to ‘damagePolyGlyphBlt’
xwayland-24.1.6/redhat-linux-build/../miext/damage/damage.c:1418:5: call_function: calling ‘dixLookupPrivate’ from ‘damagePolyGlyphBlt’
xwayland-24.1.6/redhat-linux-build/../miext/damage/damage.c:1418:5: return_function: returning to ‘damagePolyGlyphBlt’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../miext/damage/damage.c:1419:5: call_function: calling ‘damageDamageChars’ from ‘damagePolyGlyphBlt’
#  164|   {
#  165|       if ((_pReg)->data && (_pReg)->data->size) {
#  166|->         free((_pReg)->data);
#  167|           (_pReg)->data = NULL;
#  168|       }

Error: GCC_ANALYZER_WARNING (CWE-121): [#def128]
xwayland-24.1.6/redhat-linux-build/../include/regionstr.h:167:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:190:1: enter_function: entry to ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:193:36: call_function: calling ‘dixLookupPrivate’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:193:36: return_function: returning to ‘fbOverlayCopyWindow’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.6/redhat-linux-build/../fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
#  165|       if ((_pReg)->data && (_pReg)->data->size) {
#  166|           free((_pReg)->data);
#  167|->         (_pReg)->data = NULL;
#  168|       }
#  169|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def129]
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:814:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*span.lx’
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3596:1: enter_function: entry to ‘miPolyArc’
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3598:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3601:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3601:9: call_function: calling ‘miWideArc’ from ‘miPolyArc’
#  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): [#def130]
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:834:27: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*span.lx’
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3596:1: enter_function: entry to ‘miPolyArc’
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3598:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3601:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3601:9: call_function: calling ‘miWideArc’ from ‘miPolyArc’
#  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): [#def131]
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:853:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*span.rw’
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3596:1: enter_function: entry to ‘miPolyArc’
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3598:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3601:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3601:9: call_function: calling ‘miWideArc’ from ‘miPolyArc’
#  851|       }
#  852|       if (spdata->bot) {
#  853|->         if (span->rw <= 0) {
#  854|               pts[0].x = xorg + span->lx;
#  855|               pts[0].y = yorgu;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def132]
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:2157:29: warning[-Wanalyzer-out-of-bounds]: buffer over-read
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3596:1: enter_function: entry to ‘miPolyArc’
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3598:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3601:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miarc.c:3601:9: call_function: calling ‘miWideArc’ from ‘miPolyArc’
# 2155|               arc->join = arcs[iphase].njoins;
# 2156|               arc->cap = arcs[iphase].ncaps;
# 2157|->             arc->selfJoin = data[i].selfJoin;
# 2158|               prevphase = iphase;
# 2159|           }

Error: GCC_ANALYZER_WARNING (CWE-787): [#def133]
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:480:9: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:424:1: enter_function: entry to ‘miInitVisuals’
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:442:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:443:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:444:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:450:18: call_function: calling ‘miSetVisualTypes’ from ‘miInitVisuals’
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:450:18: return_function: returning to ‘miInitVisuals’ from ‘miSetVisualTypes’
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:450:16: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:443:54: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:456:31: branch_true: following ‘true’ branch (when ‘visuals’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:457:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:456:31: branch_false: following ‘false’ branch (when ‘visuals’ is NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:461:13: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:464:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:475:31: branch_true: following ‘true’ branch (when ‘visuals’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:476:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:483:12: branch_false: following ‘false’ branch (when ‘nvtype == 0’)...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:492:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:496:21: branch_true: following ‘true’ branch (when ‘i != 6’)...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:497:33: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:497:16: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:497:16: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:496:21: branch_false: following ‘false’ branch (when ‘i == 6’)...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:530:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:475:31: branch_true: following ‘true’ branch (when ‘visuals’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:476:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:480:9: danger: write of 4 bytes at offset ‘4’ exceeds ‘*preferredCVCs’
#  478|           vtype = visuals->visuals;
#  479|           nvtype = visuals->count;
#  480|->         *prefp = visuals->preferredCVC;
#  481|           prefp++;
#  482|           vid = NULL;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def134]
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:503:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘vid’
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:464:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:475:31: branch_true: following ‘true’ branch (when ‘visuals’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:476:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:483:12: branch_false: following ‘false’ branch (when ‘nvtype == 0’)...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:492:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:494:9: release_memory: ‘vid’ is NULL
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:496:21: branch_true: following ‘true’ branch (when ‘i != 6’)...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:497:33: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:497:16: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:499:13: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/micmap.c:503:27: danger: dereference of NULL ‘vid’
#  501|               visual->ColormapEntries = 1 << d;
#  502|               visual->nplanes = d;
#  503|->             visual->vid = *vid = FakeClientID(0);
#  504|               switch (visual->class) {
#  505|               case PseudoColor:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:553:42: warning[-Wanalyzer-malloc-leak]: leak of ‘prect’
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:398:1: enter_function: entry to ‘miPaintWindow’
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:438:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:441:17: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:538:13: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:539:8: branch_false: following ‘false’ branch (when ‘prect’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:542:11: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:543:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:548:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:551:16: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:552:12: call_function: inlined call to ‘RegionRects’ from ‘miPaintWindow’
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:553:24: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:554:20: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:553:42: danger: ‘prect’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  551|       numRects = RegionNumRects(prgn);
#  552|       pbox = RegionRects(prgn);
#  553|->     for (i = numRects; --i >= 0; pbox++, prect++) {
#  554|           prect->x = pbox->x1 - draw_x_off;
#  555|           prect->y = pbox->y1 - draw_y_off;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:563:5: warning[-Wanalyzer-malloc-leak]: leak of ‘prect’
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:398:1: enter_function: entry to ‘miPaintWindow’
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:438:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:441:17: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:538:13: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:539:8: branch_false: following ‘false’ branch (when ‘prect’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:542:11: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:543:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:548:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:551:16: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:552:12: call_function: inlined call to ‘RegionRects’ from ‘miPaintWindow’
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:553:24: branch_false: following ‘false’ branch (when ‘i < 0’)...
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:559:11: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miexpose.c:563:5: danger: ‘prect’ leaks here; was allocated at [(4)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/3)
#  561|       free(prect);
#  562|   
#  563|->     FreeScratchGC(pGC);
#  564|   }
#  565|   

Error: GCC_ANALYZER_WARNING (CWE-416): [#def137]
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:256:13: warning[-Wanalyzer-use-after-free]: use after ‘reallocarray’ of ‘ext’
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:247:1: enter_function: entry to ‘InitExtensions’
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:252:5: call_function: inlined call to ‘AddStaticExtensions’ from ‘InitExtensions’
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:252:5: call_function: inlined call to ‘AddStaticExtensions’ from ‘InitExtensions’
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:252:5: call_function: inlined call to ‘AddStaticExtensions’ from ‘InitExtensions’
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:254:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:255:15: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:256:13: danger: use after ‘reallocarray’ of ‘ext’; deallocated at [(17)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/16)
#  254|       for (i = 0; i < numExtensionModules; i++) {
#  255|           ext = &ExtensionModuleList[i];
#  256|->         if (ext->initFunc != NULL &&
#  257|               (ext->disablePtr == NULL || !*ext->disablePtr)) {
#  258|               LogMessageVerb(X_INFO, 3, "Initializing extension %s\n",

Error: GCC_ANALYZER_WARNING (CWE-415): [#def138]
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:277:27: warning[-Wanalyzer-double-free]: double-‘reallocarray’ of ‘save’
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:290:1: enter_function: entry to ‘LoadExtensionList’
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:297:5: call_function: calling ‘AddStaticExtensions’ from ‘LoadExtensionList’
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:297:5: return_function: returning to ‘LoadExtensionList’ from ‘AddStaticExtensions’
xwayland-24.1.6/redhat-linux-build/../mi/miinitext.c:299:20: call_function: calling ‘NewExtensionModuleList’ from ‘LoadExtensionList’
#  275|   
#  276|       n = numExtensionModules + size;
#  277|->     ExtensionModuleList = reallocarray(ExtensionModuleList, n,
#  278|                                          sizeof(ExtensionModule));
#  279|       if (ExtensionModuleList == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:593:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pAET’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:526:1: enter_function: entry to ‘miFillGeneralPoly’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:544:8: branch_false: following ‘false’ branch (when ‘count > 2’)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:547:19: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:547:8: branch_false: following ‘false’ branch (when ‘pETEs’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:551:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:551:10: call_function: calling ‘miCreateETandAET’ from ‘miFillGeneralPoly’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:551:10: return_function: returning to ‘miFillGeneralPoly’ from ‘miCreateETandAET’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:551:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:555:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:557:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:561:14: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:561:27: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:566:16: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:566:16: branch_true: following ‘true’ branch (when ‘pSLL’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:566:30: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:567:17: call_function: calling ‘miloadAET’ from ‘miFillGeneralPoly’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:567:17: return_function: returning to ‘miFillGeneralPoly’ from ‘miloadAET’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:576:20: branch_true: following ‘true’ branch (when ‘pAET’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:577:29: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:585:20: branch_false: following ‘false’ branch (when ‘nPts != 200’)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:592:17: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:592:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:592:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:592:17: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:593:17: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:593:17: danger: dereference of NULL ‘pAET’
#  591|                   }
#  592|                   EVALUATEEDGEEVENODD(pAET, pPrevAET, y);
#  593|->                 EVALUATEEDGEEVENODD(pAET, pPrevAET, y);
#  594|               }
#  595|               miInsertionSort(&AET);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def140]
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:646:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pWETE’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:526:1: enter_function: entry to ‘miFillGeneralPoly’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:544:8: branch_false: following ‘false’ branch (when ‘count > 2’)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:547:19: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:547:8: branch_false: following ‘false’ branch (when ‘pETEs’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:551:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:551:10: call_function: calling ‘miCreateETandAET’ from ‘miFillGeneralPoly’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:551:10: return_function: returning to ‘miFillGeneralPoly’ from ‘miCreateETandAET’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:551:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:555:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:557:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:603:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:603:27: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:608:16: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:608:16: branch_true: following ‘true’ branch (when ‘pSLL’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:608:30: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:609:17: call_function: calling ‘miloadAET’ from ‘miFillGeneralPoly’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:609:17: return_function: returning to ‘miFillGeneralPoly’ from ‘miloadAET’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:610:17: call_function: calling ‘micomputeWAET’ from ‘miFillGeneralPoly’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:610:17: return_function: returning to ‘miFillGeneralPoly’ from ‘micomputeWAET’
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:620:20: branch_true: following ‘true’ branch (when ‘pAET’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:626:20: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:626:20: branch_true: following ‘true’ branch (when ‘pAET == pWETE’)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:627:33: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:629:32: release_memory: ‘AET.back’ is NULL
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:635:24: branch_false: following ‘false’ branch (when ‘nPts != 200’)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:643:21: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:643:21: release_memory: ‘AET.back’ is NULL
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:644:28: branch_true: following ‘true’ branch (when ‘pAET != pWETE’)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:645:25: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:645:25: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:645:25: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:645:25: branch_false: following ‘false’ branch...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:644:28: branch_false: following ‘false’ branch (when ‘pAET == pWETE’)...
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:646:21: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../mi/mipoly.c:646:21: danger: dereference of NULL ‘pWETE’
#  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-401): [#def141]
xwayland-24.1.6/redhat-linux-build/../os/io.c:841:16: warning[-Wanalyzer-malloc-leak]: leak of ‘obuf’
xwayland-24.1.6/redhat-linux-build/../os/io.c:828:1: enter_function: entry to ‘FlushClient’
xwayland-24.1.6/redhat-linux-build/../os/io.c:840:8: branch_false: following ‘false’ branch (when ‘oco’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../os/io.c:843:15: call_function: inlined call to ‘padding_for_int32’ from ‘FlushClient’
xwayland-24.1.6/redhat-linux-build/../os/io.c:845:8: branch_false: following ‘false’ branch (when ‘notWritten != 0’)...
xwayland-24.1.6/redhat-linux-build/../os/io.c:848:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/io.c:852:12: branch_true: following ‘true’ branch (when ‘notWritten != 0’)...
xwayland-24.1.6/redhat-linux-build/../os/io.c:885:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/io.c:890:13: branch_false: following ‘false’ branch (when ‘len < 0’)...
xwayland-24.1.6/redhat-linux-build/../os/io.c:895:18: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/io.c:918:16: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/io.c:921:20: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/io.c:921:20: branch_true: following ‘true’ branch (when ‘notWritten <= 2147467263’)...
xwayland-24.1.6/redhat-linux-build/../os/io.c:922:46: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/io.c:924:20: branch_false: following ‘false’ branch (when ‘obuf’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../os/io.c:930:29: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/io.c:936:16: branch_false: following ‘false’ branch (when ‘len <= 0’)...
xwayland-24.1.6/redhat-linux-build/../os/io.c:940:13: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/io.c:841:16: danger: ‘obuf’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#  839|   
#  840|       if (!oco)
#  841|-> 	return 0;
#  842|       written = 0;
#  843|       padsize = padding_for_int32(extraCount);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def142]
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:323:1: warning[-Wanalyzer-file-leak]: leak of FILE ‘err’
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:172:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:177:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:195:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:196:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:195:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:196:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:204:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:215:13: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:237:12: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:240:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:249:25: acquire_resource: opened here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:249:16: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:251:25: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:251:17: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:262:13: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:323:1: danger: ‘err’ leaks here; was opened at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  321|       LogInit(NULL, NULL);
#  322|       SmartScheduleInit();
#  323|-> }
#  324|   
#  325|   void

Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:323:1: warning[-Wanalyzer-malloc-leak]: leak of ‘err’
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:172:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:177:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:195:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:196:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:195:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:196:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:204:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:215:13: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:237:12: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:240:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:249:25: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:249:16: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:251:25: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:251:17: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:262:13: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/osinit.c:323:1: danger: ‘err’ leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
#  321|       LogInit(NULL, NULL);
#  322|       SmartScheduleInit();
#  323|-> }
#  324|   
#  325|   void

Error: GCC_ANALYZER_WARNING (CWE-476): [#def144]
xwayland-24.1.6/redhat-linux-build/../os/ospoll.c:228:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ospoll’
xwayland-24.1.6/redhat-linux-build/../os/ospoll.c:226:35: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../os/ospoll.c:228:5: danger: ‘ospoll’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  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: COMPILER_WARNING: [#def145]
xwayland-24.1.6/redhat-linux-build/../os/rpcauth.c:48:10: warning[fatal error]: rpc/rpc.h: No such file or directory
#   46|   #include "rpcauth.h"
#   47|   
#   48|-> #include <rpc/rpc.h>
#   49|   
#   50|   #ifdef __sun

Error: GCC_ANALYZER_WARNING (CWE-762): [#def146]
xwayland-24.1.6/redhat-linux-build/../os/string.c:55:17: warning[-Wanalyzer-mismatching-deallocation]: ‘list’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’
xwayland-24.1.6/redhat-linux-build/../os/string.c:46:8: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../os/string.c:48:12: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/string.c:48:12: acquire_memory: allocated here (expects deallocation with ‘free’)
xwayland-24.1.6/redhat-linux-build/../os/string.c:49:8: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../os/string.c:51:11: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/string.c:52:8: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../os/string.c:54:16: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/string.c:54:41: branch_true: following ‘true’ branch (when ‘tok’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../os/string.c:55:36: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/string.c:55:17: danger: deallocated with ‘reallocarray’ here; allocation at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) expects deallocation with ‘free’
#   53|           goto error;
#   54|       for (tok = strtok(tmp, separators); tok; tok = strtok(NULL, separators)) {
#   55|->         nlist = reallocarray(list, num + 2, sizeof(*list));
#   56|           if (!nlist)
#   57|               goto error;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def147]
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1108:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1072:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1077:33: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1105:18: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1108:9: danger: ‘malloc((long unsigned int)len + 18)’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 1106|   
# 1107|           p = result;
# 1108|->         *p++ = sizeof(AUTHORIZATION_NAME) >> 8;
# 1109|           *p++ = sizeof(AUTHORIZATION_NAME) & 0xff;
# 1110|           *p++ = (len) >> 8;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def148]
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1409:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(file,  type)’ where non-null expected
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1403:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1406:11: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1406:11: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1408:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1409:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/utils.c:1409:9: danger: argument 1 (‘fopen(file,  type)’) from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
# 1407|   
# 1408|       if (seteuid(euid) == -1) {
# 1409|->         fclose(iop);
# 1410|           return NULL;
# 1411|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1514:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mcastinfo’
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1487:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1488:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1496:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1497:14: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1497:28: branch_true: following ‘true’ branch (when ‘ai’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1498:19: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1506:12: branch_false: following ‘false’ branch (when ‘ai’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1513:25: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1513:25: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../os/xdmcp.c:1514:13: danger: ‘mcastinfo’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
# 1512|   
# 1513|               mcastinfo = malloc(sizeof(struct multicastinfo));
# 1514|->             mcastinfo->next = NULL;
# 1515|               mcastinfo->ai = firstai;
# 1516|               mcastinfo->hops = hopcount;

Error: COMPILER_WARNING (CWE-477): [#def150]
xwayland-24.1.6/redhat-linux-build/../os/xsha1.c:270:5: warning[-Wdeprecated-declarations]: ‘SHA1_Init’ is deprecated: Since OpenSSL 3.0
#  268|       if (!ctx)
#  269|           return NULL;
#  270|->     ret = SHA1_Init(ctx);
#  271|       if (!ret) {
#  272|           free(ctx);

Error: COMPILER_WARNING (CWE-477): [#def151]
xwayland-24.1.6/redhat-linux-build/../os/xsha1.c:284:5: warning[-Wdeprecated-declarations]: ‘SHA1_Update’ is deprecated: Since OpenSSL 3.0
#  282|       SHA_CTX *sha_ctx = ctx;
#  283|   
#  284|->     ret = SHA1_Update(sha_ctx, data, size);
#  285|       if (!ret)
#  286|           free(sha_ctx);

Error: COMPILER_WARNING (CWE-477): [#def152]
xwayland-24.1.6/redhat-linux-build/../os/xsha1.c:296:5: warning[-Wdeprecated-declarations]: ‘SHA1_Final’ is deprecated: Since OpenSSL 3.0
#  294|       SHA_CTX *sha_ctx = ctx;
#  295|   
#  296|->     ret = SHA1_Final(result, sha_ctx);
#  297|       free(sha_ctx);
#  298|       return ret;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
xwayland-24.1.6/redhat-linux-build/../present/present_notify.c:83:17: warning[-Wanalyzer-malloc-leak]: leak of ‘notifies’
xwayland-24.1.6/redhat-linux-build/../present/present_notify.c:79:16: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../present/present_notify.c:80:8: branch_false: following ‘false’ branch (when ‘notifies’ is non-NULL)...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../present/present_notify.c:83:17: branch_false: following ‘false’ branch (when ‘i >= num_notifies’)...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../present/present_notify.c:83:17: danger: ‘notifies’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   81|           return BadAlloc;
#   82|   
#   83|->     for (i = 0; i < num_notifies; i++) {
#   84|           status = dixLookupWindow(&notifies[i].window, x_notifies[i].window, client, DixGetAttrAccess);
#   85|           if (status != Success)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def154]
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:750:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outputs’
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1291:1: enter_function: entry to ‘ProcRRSetCrtcConfig’
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1307:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1308:19: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1310:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1312:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1312:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1315:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1315:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1316:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1317:12: branch_false: following ‘false’ branch (when ‘numOutputs == 0’)...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1334:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1334:17: branch_false: following ‘false’ branch...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1369:17: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1386:19: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1387:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSetCrtcConfig’
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1387:16: return_function: returning to ‘ProcRRSetCrtcConfig’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1391:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1400:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1418:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1475:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1475:10: call_function: calling ‘RRCrtcSet’ from ‘ProcRRSetCrtcConfig’
#  748|       crtcChanged = FALSE;
#  749|       for (o = 0; o < numOutputs; o++) {
#  750|->         if (outputs[o]) {
#  751|               if (rrCheckEmulated(outputs[o]) || (outputs[o]->crtc != crtc)) {
#  752|                   crtcChanged = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def155]
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:764:10: warning[-Wanalyzer-null-argument]: use of NULL ‘outputs’ where non-null expected
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1291:1: enter_function: entry to ‘ProcRRSetCrtcConfig’
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1307:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1308:19: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1310:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1312:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1312:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1315:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1315:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1316:9: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1317:12: branch_false: following ‘false’ branch (when ‘numOutputs == 0’)...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1334:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1334:17: branch_false: following ‘false’ branch...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1369:17: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1386:19: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1387:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSetCrtcConfig’
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1387:16: return_function: returning to ‘ProcRRSetCrtcConfig’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1391:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1400:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1418:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1475:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1475:10: call_function: calling ‘RRCrtcSet’ from ‘ProcRRSetCrtcConfig’
#  762|           crtc->rotation == rotation &&
#  763|           crtc->numOutputs == numOutputs &&
#  764|->         !memcmp(crtc->outputs, outputs, numOutputs * sizeof(RROutputPtr)) &&
#  765|           !RRCrtcPendingProperties(crtc) && !RRCrtcPendingTransform(crtc) &&
#  766|           !crtcChanged) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1686:5: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1686:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1687:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1687:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1690:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1690:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1693:15: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1695:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1696:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1696:17: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1697:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1703:27: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1713:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrcrtc.c:1686:5: danger: ‘extra’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
# 1684|       char *extra = NULL;
# 1685|   
# 1686|->     REQUEST_SIZE_MATCH(xRRGetCrtcGammaReq);
# 1687|       VERIFY_RR_CRTC(stuff->crtc, crtc, DixReadAccess);
# 1688|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:466:5: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:450:1: enter_function: entry to ‘ProcRRGetOutputInfo’
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:466:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:467:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:467:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:469:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:472:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRGetOutputInfo’
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:472:16: return_function: returning to ‘ProcRRGetOutputInfo’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:474:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:478:31: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:493:12: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:494:27: call_function: inlined call to ‘bytes_to_int32’ from ‘ProcRRGetOutputInfo’
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:495:21: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:496:16: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:558:32: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:573:8: branch_false: following ‘false’ branch (when ‘extraLen == 0’)...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:466:5: danger: ‘extra’ leaks here; was allocated at [(22)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/21)
#  464|       Bool leased;
#  465|   
#  466|->     REQUEST_SIZE_MATCH(xRRGetOutputInfoReq);
#  467|       VERIFY_RR_OUTPUT(stuff->output, output, DixReadAccess);
#  468|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def158]
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:540:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:450:1: enter_function: entry to ‘ProcRRGetOutputInfo’
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:466:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:467:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:467:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:469:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:472:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRGetOutputInfo’
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:472:16: return_function: returning to ‘ProcRRGetOutputInfo’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:474:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:507:31: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:525:12: branch_false: following ‘false’ branch (when ‘extraLen == 0’)...
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:535:37: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:539:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:540:24: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:540:18: release_memory: ‘0’ is NULL
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:540:18: release_memory: ‘0’ is NULL
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:540:18: release_memory: ‘0’ is NULL
xwayland-24.1.6/redhat-linux-build/../randr/rroutput.c:540:13: danger: dereference of NULL ‘extra + (long unsigned int)i * 4’
#  538|   
#  539|           for (i = 0; i < output->numCrtcs; i++) {
#  540|->             crtcs[i] = output->crtcs[i]->id;
#  541|               if (client->swapped)
#  542|                   swapl(&crtcs[i]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def159]
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:419:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘temppAtoms’
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:396:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:398:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:398:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:400:25: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:402:8: branch_false: following ‘false’ branch (when ‘numProps == 0’)...
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:408:27: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:412:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:418:25: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:418:39: branch_true: following ‘true’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:419:10: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrproviderproperty.c:419:9: danger: dereference of NULL ‘temppAtoms’
#  417|       temppAtoms = pAtoms;
#  418|       for (prop = provider->properties; prop; prop = prop->next)
#  419|->         *temppAtoms++ = prop->propertyName;
#  420|   
#  421|       WriteToClient(client, sizeof(xRRListProviderPropertiesReply), (char *) &rep);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def160]
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:848:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘size’
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:755:1: enter_function: entry to ‘ProcRRGetScreenInfo’
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:767:5: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:768:33: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:769:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:772:19: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:773:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRGetScreenInfo’
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:773:16: return_function: returning to ‘ProcRRGetScreenInfo’ from ‘dixLookupPrivate’
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:776:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:779:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:781:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:804:25: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:808:17: call_function: calling ‘RR10GetData’ from ‘ProcRRGetScreenInfo’
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:808:17: return_function: returning to ‘ProcRRGetScreenInfo’ from ‘RR10GetData’
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:809:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:814:31: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:831:12: branch_false: following ‘false’ branch (when ‘extraLen == 0’)...
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:845:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:846:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:847:22: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../randr/rrscreen.c:848:13: danger: dereference of NULL ‘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: GCC_ANALYZER_WARNING (CWE-476): [#def161]
xwayland-24.1.6/redhat-linux-build/../render/filter.c:348:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_params’
xwayland-24.1.6/redhat-linux-build/../render/filter.c:331:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../render/filter.c:338:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../render/filter.c:339:30: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../render/filter.c:339:30: acquire_memory: this call could return NULL
xwayland-24.1.6/redhat-linux-build/../render/filter.c:341:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../render/filter.c:343:14: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../render/filter.c:347:17: branch_true: following ‘true’ branch (when ‘i < nparams’)...
xwayland-24.1.6/redhat-linux-build/../render/filter.c:348:44: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../render/filter.c:348:9: danger: ‘*pPicture.filter_params + (long unsigned int)i * 4’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  346|       }
#  347|       for (i = 0; i < nparams; i++)
#  348|->         pPicture->filter_params[i] = params[i];
#  349|       pPicture->filter = pFilter->id;
#  350|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def162]
xwayland-24.1.6/redhat-linux-build/../render/glyph.c:388:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hashSet’
xwayland-24.1.6/redhat-linux-build/../render/glyph.c:438:1: enter_function: entry to ‘ResizeGlyphSet’
xwayland-24.1.6/redhat-linux-build/../render/glyph.c:440:13: call_function: calling ‘ResizeGlyphHash’ from ‘ResizeGlyphSet’
#  386|   AllocateGlyphHash(GlyphHashPtr hash, GlyphHashSetPtr hashSet)
#  387|   {
#  388|->     hash->table = calloc(hashSet->size, sizeof(GlyphRefRec));
#  389|       if (!hash->table)
#  390|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
xwayland-24.1.6/redhat-linux-build/../render/glyph.c:411:16: warning[-Wanalyzer-malloc-leak]: leak of ‘newHash.table’
xwayland-24.1.6/redhat-linux-build/../render/glyph.c:469:1: enter_function: entry to ‘FreeGlyphSet’
xwayland-24.1.6/redhat-linux-build/../render/glyph.c:473:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../render/glyph.c:474:31: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../render/glyph.c:483:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../render/glyph.c:489:29: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../render/glyph.c:489:13: call_function: calling ‘ResizeGlyphHash’ from ‘FreeGlyphSet’
#  409|       hashSet = FindGlyphHashSet(tableEntries);
#  410|       if (hashSet == hash->hashSet)
#  411|->         return TRUE;
#  412|       if (global)
#  413|           CheckDuplicates(hash, "ResizeGlyphHash top");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:68:43: warning[-Wanalyzer-malloc-leak]: leak of ‘get_image(setup, *setup.d)’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:334:5: enter_function: entry to ‘main’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:341:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:346:23: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:359:5: call_function: calling ‘create_start_pixmap’ from ‘main’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:359:5: return_function: returning to ‘main’ from ‘create_start_pixmap’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:364:5: call_function: calling ‘damage_test’ from ‘main’
#   66|       xcb_get_image_cookie_t cookie =
#   67|           xcb_get_image(setup->c, XCB_IMAGE_FORMAT_Z_PIXMAP, drawable,
#   68|->                       0, 0, setup->width, setup->height, ~0);
#   69|       xcb_get_image_reply_t *reply =
#   70|           xcb_get_image_reply(setup->c, cookie, NULL);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def165]
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:97:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘get_image(setup, *setup.d) + (long unsigned int)i * 4’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:334:5: enter_function: entry to ‘main’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:341:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:346:23: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:359:5: call_function: calling ‘create_start_pixmap’ from ‘main’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:359:5: return_function: returning to ‘main’ from ‘create_start_pixmap’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:364:5: call_function: calling ‘damage_test’ from ‘main’
#   95|   
#   96|       for (int i = 0; i < setup->width * setup->height; i++) {
#   97|->         if (results[i] != setup->start_drawable_contents[i]) {
#   98|               setup->expected[i / 32] |= 1 << (i % 32);
#   99|               any_modified_pixels = true;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:97:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘setup.start_drawable_contents’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:334:5: enter_function: entry to ‘main’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:341:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:346:23: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:359:5: call_function: calling ‘create_start_pixmap’ from ‘main’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:359:5: return_function: returning to ‘main’ from ‘create_start_pixmap’
xwayland-24.1.6/redhat-linux-build/../test/damage/primitives.c:364:5: call_function: calling ‘damage_test’ from ‘main’
#   95|   
#   96|       for (int i = 0; i < setup->width * setup->height; i++) {
#   97|->         if (results[i] != setup->start_drawable_contents[i]) {
#   98|               setup->expected[i / 32] |= 1 << (i % 32);
#   99|               any_modified_pixels = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:141:20: warning[-Wanalyzer-malloc-leak]: leak of ‘*type.level_names’
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:124:8: branch_false: following ‘false’ branch (when ‘xkb’ is non-NULL)...
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:126:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:126:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:131:5: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:132:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:138:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:139:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:139:16: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:138:46: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:138:21: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:139:17: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:139:16: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:140:44: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:140:37: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../xkb/XKBAlloc.c:141:20: danger: ‘*type.level_names’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#  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): [#def168]
xwayland-24.1.6/redhat-linux-build/../xkb/XKBGAlloc.c:557:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.value’
xwayland-24.1.6/redhat-linux-build/../xkb/XKBGAlloc.c:552:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/XKBGAlloc.c:554:42: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/XKBGAlloc.c:555:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/XKBGAlloc.c:554:42: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/XKBGAlloc.c:555:13: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/XKBGAlloc.c:557:27: acquire_memory: allocated here
xwayland-24.1.6/redhat-linux-build/../xkb/XKBGAlloc.c:557:13: danger: ‘*prop.value’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  555|           if ((prop->name) && (strcmp(name, prop->name) == 0)) {
#  556|               free(prop->value);
#  557|->             prop->value = strdup(value);
#  558|               return prop;
#  559|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
xwayland-24.1.6/redhat-linux-build/../xkb/ddxLoad.c:390:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘keybd’
xwayland-24.1.6/redhat-linux-build/../xkb/ddxLoad.c:496:1: enter_function: entry to ‘KeymapOrDefaults’
xwayland-24.1.6/redhat-linux-build/../xkb/ddxLoad.c:510:11: call_function: calling ‘XkbCompileKeymapForDevice’ from ‘KeymapOrDefaults’
#  388|           (names->geometry == NULL)) {
#  389|           LogMessage(X_ERROR, "XKB: No components provided for device %s\n",
#  390|->                    keybd->name ? keybd->name : "(unnamed keyboard)");
#  391|           return 0;
#  392|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def170]
xwayland-24.1.6/redhat-linux-build/../xkb/xkbActions.c:239:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pAction’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbActions.c:1462:1: enter_function: entry to ‘SrvXkbLatchGroup’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbActions.c:1468:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/xkbActions.c:1474:9: call_function: calling ‘_XkbFilterLatchState’ from ‘SrvXkbLatchGroup’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbActions.c:1474:9: return_function: returning to ‘SrvXkbLatchGroup’ from ‘_XkbFilterLatchState’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbActions.c:1475:9: call_function: calling ‘_XkbFilterLatchState’ from ‘SrvXkbLatchGroup’
#  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): [#def171]
xwayland-24.1.6/redhat-linux-build/../xkb/xkbActions.c:1146:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*((struct _XkbSrvInfo *)xkbi).filters’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbActions.c:1462:1: enter_function: entry to ‘SrvXkbLatchGroup’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbActions.c:1468:8: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/xkbActions.c:1473:18: call_function: calling ‘_XkbNextFreeFilter’ from ‘SrvXkbLatchGroup’
# 1144|       }
# 1145|       for (i = 0; i < xkbi->szFilters; i++) {
# 1146|->         if (!xkbi->filters[i].active) {
# 1147|               xkbi->filters[i].keycode = 0;
# 1148|               return &xkbi->filters[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  525|       XkbRMLVOSet rmlvo_dflts = { NULL };
#  526|   
#  527|->     BUG_RETURN_VAL(dev == NULL, FALSE);
#  528|       BUG_RETURN_VAL(dev->key != NULL, FALSE);
#  529|       BUG_RETURN_VAL(dev->kbdfeed != NULL, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  525|       XkbRMLVOSet rmlvo_dflts = { NULL };
#  526|   
#  527|->     BUG_RETURN_VAL(dev == NULL, FALSE);
#  528|       BUG_RETURN_VAL(dev->key != NULL, FALSE);
#  529|       BUG_RETURN_VAL(dev->kbdfeed != NULL, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.options’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  525|       XkbRMLVOSet rmlvo_dflts = { NULL };
#  526|   
#  527|->     BUG_RETURN_VAL(dev == NULL, FALSE);
#  528|       BUG_RETURN_VAL(dev->key != NULL, FALSE);
#  529|       BUG_RETURN_VAL(dev->kbdfeed != NULL, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  525|       XkbRMLVOSet rmlvo_dflts = { NULL };
#  526|   
#  527|->     BUG_RETURN_VAL(dev == NULL, FALSE);
#  528|       BUG_RETURN_VAL(dev->key != NULL, FALSE);
#  529|       BUG_RETURN_VAL(dev->kbdfeed != NULL, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.variant’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.6/redhat-linux-build/../xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  525|       XkbRMLVOSet rmlvo_dflts = { NULL };
#  526|   
#  527|->     BUG_RETURN_VAL(dev == NULL, FALSE);
#  528|       BUG_RETURN_VAL(dev->key != NULL, FALSE);
#  529|       BUG_RETURN_VAL(dev->kbdfeed != NULL, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-823): [#def177]
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:152:9: warning[-Wanalyzer-tainted-offset]: use of attacker-controlled value as offset without upper-bounds checking
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1209:1: enter_function: entry to ‘XkmReadFile’
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1217:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1219:10: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1219:8: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1224:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1226:17: branch_true: following ‘true’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1227:21: branch_true: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1230:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1230:13: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1234:28: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1234:12: branch_false: following ‘false’ branch...
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1237:9: branch_false: ...to here
xwayland-24.1.6/redhat-linux-build/../xkb/xkmread.c:1242:19: call_function: calling ‘ReadXkmKeyTypes’ from ‘XkmReadFile’
#  150|           str[max_len - 1] = '\0';
#  151|       else
#  152|->         str[count] = '\0';
#  153|       count = XkbPaddedSize(nRead) - nRead;
#  154|       if (count > 0)

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

Error: CPPCHECK_WARNING (CWE-476): [#def179]
xwayland-24.1.6/test/damage/primitives.c:80: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
#   78|       uint32_t *result = malloc(sizeof(uint32_t) *
#   79|                                 setup->width * setup->height);
#   80|->     memcpy(result, data, len);
#   81|       free(reply);
#   82|   

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

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

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

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-114.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namexorg-x11-server-Xwayland-24.1.6-1.fc43
store-results-to/tmp/tmp_tb093zu/xorg-x11-server-Xwayland-24.1.6-1.fc43.tar.xz
time-created2025-04-25 16:11:22
time-finished2025-04-25 16:14:29
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp_tb093zu/xorg-x11-server-Xwayland-24.1.6-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp_tb093zu/xorg-x11-server-Xwayland-24.1.6-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9