xorg-x11-server-Xwayland-24.1.9-1.fc44

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
xwayland-24.1.9/Xext/dpms.c:154:26: warning[-Wanalyzer-malloc-leak]: leak of ‘pNewEvent’
xwayland-24.1.9/Xext/dpms.c:463:1: enter_function: entry to ‘ProcDPMSDispatch’
xwayland-24.1.9/Xext/dpms.c:485:16: call_function: calling ‘ProcDPMSSelectInput’ from ‘ProcDPMSDispatch’
#  152|            * the client goes away
#  153|            */
#  154|->         clientResource = FakeClientID(client->index);
#  155|           pNewEvent->clientResource = clientResource;
#  156|           if (!AddResource(clientResource, ClientType, (void *)pNewEvent))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
xwayland-24.1.9/Xext/dpms.c:156:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pNewEvent’
xwayland-24.1.9/Xext/dpms.c:463:1: enter_function: entry to ‘ProcDPMSDispatch’
xwayland-24.1.9/Xext/dpms.c:485:16: call_function: calling ‘ProcDPMSSelectInput’ from ‘ProcDPMSDispatch’
#  154|           clientResource = FakeClientID(client->index);
#  155|           pNewEvent->clientResource = clientResource;
#  156|->         if (!AddResource(clientResource, ClientType, (void *)pNewEvent))
#  157|               return BadAlloc;
#  158|           /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
xwayland-24.1.9/Xext/dpms.c:165:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pHead’
xwayland-24.1.9/Xext/dpms.c:463:1: enter_function: entry to ‘ProcDPMSDispatch’
xwayland-24.1.9/Xext/dpms.c:485:16: call_function: calling ‘ProcDPMSSelectInput’ from ‘ProcDPMSDispatch’
#  163|               pHead = (DPMSEventPtr *)malloc(sizeof(DPMSEventPtr));
#  164|               if (!pHead ||
#  165|->                     !AddResource(eventResource, DPMSEventType, (void *)pHead)) {
#  166|                   FreeResource(clientResource, RT_NONE);
#  167|                   return BadAlloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
xwayland-24.1.9/Xext/hashtable.c:108:33: warning[-Wanalyzer-malloc-leak]: leak of ‘newBuckets’
xwayland-24.1.9/Xext/hashtable.c:98:18: acquire_memory: allocated here
xwayland-24.1.9/Xext/hashtable.c:99:8: branch_true: following ‘true’ branch (when ‘newBuckets’ is non-NULL)...
xwayland-24.1.9/Xext/hashtable.c:99:8: branch_true: ...to here
xwayland-24.1.9/Xext/hashtable.c:104:21: branch_true: following ‘true’ branch (when ‘c < numBuckets’)...
xwayland-24.1.9/Xext/hashtable.c:106:13: branch_true: ...to here
xwayland-24.1.9/Xext/hashtable.c:108:33: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/hashtable.c:108:33: danger: ‘newBuckets’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  106|               xorg_list_for_each_entry_safe(it, tmp, &ht->buckets[c], l) {
#  107|                   struct xorg_list *newBucket =
#  108|->                     &newBuckets[ht->hash(ht->cdata, it->key, newBucketBits)];
#  109|                   xorg_list_del(&it->l);
#  110|                   xorg_list_add(&it->l, newBucket);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def5]
xwayland-24.1.9/Xext/panoramiX.c:748:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘PanoramiXDepths’
xwayland-24.1.9/Xext/panoramiX.c:802:1: enter_function: entry to ‘PanoramiXConsolidate’
xwayland-24.1.9/Xext/panoramiX.c:813:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiX.c:814:9: branch_true: ...to here
xwayland-24.1.9/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): [#def6]
xwayland-24.1.9/Xext/panoramiX.c:820:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘root’
xwayland-24.1.9/Xext/panoramiX.c:819:12: acquire_memory: this call could return NULL
xwayland-24.1.9/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): [#def7]
xwayland-24.1.9/Xext/panoramiX.c:822:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘defmap’
xwayland-24.1.9/Xext/panoramiX.c:821:14: acquire_memory: this call could return NULL
xwayland-24.1.9/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): [#def8]
xwayland-24.1.9/Xext/panoramiX.c:824:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘saver’
xwayland-24.1.9/Xext/panoramiX.c:823:13: acquire_memory: this call could return NULL
xwayland-24.1.9/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-401): [#def9]
xwayland-24.1.9/Xext/panoramiX.c:838:5: warning[-Wanalyzer-malloc-leak]: leak of ‘defmap’
xwayland-24.1.9/Xext/panoramiX.c:821:14: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiX.c:838:5: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/panoramiX.c:838:5: danger: ‘defmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  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-401): [#def10]
xwayland-24.1.9/Xext/panoramiX.c:838:5: warning[-Wanalyzer-malloc-leak]: leak of ‘root’
xwayland-24.1.9/Xext/panoramiX.c:819:12: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiX.c:838:5: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/panoramiX.c:838:5: danger: ‘root’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  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-401): [#def11]
xwayland-24.1.9/Xext/panoramiX.c:838:5: warning[-Wanalyzer-malloc-leak]: leak of ‘saver’
xwayland-24.1.9/Xext/panoramiX.c:823:13: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiX.c:838:5: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/panoramiX.c:838:5: danger: ‘saver’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  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-401): [#def12]
xwayland-24.1.9/Xext/panoramiX.c:839:5: warning[-Wanalyzer-malloc-leak]: leak of ‘defmap’
xwayland-24.1.9/Xext/panoramiX.c:821:14: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiX.c:839:5: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/panoramiX.c:839:5: danger: ‘defmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  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);
#  841|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
xwayland-24.1.9/Xext/panoramiX.c:839:5: warning[-Wanalyzer-malloc-leak]: leak of ‘saver’
xwayland-24.1.9/Xext/panoramiX.c:823:13: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiX.c:839:5: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/panoramiX.c:839:5: danger: ‘saver’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  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);
#  841|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
xwayland-24.1.9/Xext/panoramiX.c:840:5: warning[-Wanalyzer-malloc-leak]: leak of ‘defmap’
xwayland-24.1.9/Xext/panoramiX.c:821:14: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiX.c:840:5: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/panoramiX.c:840:5: danger: ‘defmap’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  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);
#  841|   }
#  842|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
xwayland-24.1.9/Xext/panoramiXprocs.c:148:29: warning[-Wanalyzer-malloc-leak]: leak of ‘newWin’
xwayland-24.1.9/Xext/panoramiXprocs.c:69:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:71:11: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:72:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:75:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:77:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:80:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:118:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:118:8: branch_false: following ‘false’ branch (when ‘newWin’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:121:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:134:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:135:22: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:141:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:143:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:143:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:145:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:145:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:147:12: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:148:29: throw: if ‘PanoramiXTranslateVisualID’ throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:148:29: danger: ‘newWin’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  146|               *((CARD32 *) &stuff[1] + cmap_offset) = cmap->info[j].id;
#  147|           if (orig_visual != CopyFromParent)
#  148|->             stuff->visual = PanoramiXTranslateVisualID(j, orig_visual);
#  149|           result = (*SavedProcVector[X_CreateWindow]) (client);
#  150|           if (result != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def16]
xwayland-24.1.9/Xext/panoramiXprocs.c:149:18: warning[-Wanalyzer-malloc-leak]: leak of ‘newWin’
xwayland-24.1.9/Xext/panoramiXprocs.c:69:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:71:11: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:72:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:75:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:77:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:80:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:118:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:118:8: branch_false: following ‘false’ branch (when ‘newWin’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:121:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:134:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:135:22: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:141:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:143:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:143:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:145:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:145:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:147:12: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:149:18: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:149:18: danger: ‘newWin’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#  147|           if (orig_visual != CopyFromParent)
#  148|               stuff->visual = PanoramiXTranslateVisualID(j, orig_visual);
#  149|->         result = (*SavedProcVector[X_CreateWindow]) (client);
#  150|           if (result != Success)
#  151|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
xwayland-24.1.9/Xext/panoramiXprocs.c:155:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newWin’
xwayland-24.1.9/Xext/panoramiXprocs.c:69:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:71:11: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:72:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:75:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:77:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:80:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:118:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:118:8: branch_false: following ‘false’ branch (when ‘newWin’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:121:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:154:8: branch_true: following ‘true’ branch (when ‘result == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:155:9: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:155:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:155:9: danger: ‘newWin’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#  153|   
#  154|       if (result == Success)
#  155|->         AddResource(newWin->info[0].id, XRT_WINDOW, newWin);
#  156|       else
#  157|           free(newWin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
xwayland-24.1.9/Xext/panoramiXprocs.c:705:18: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/Xext/panoramiXprocs.c:687:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:688:26: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:692:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:695:20: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:695:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:695:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:698:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:702:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:703:22: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:705:18: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:705:18: danger: ‘newPix’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  703|           stuff->pid = newPix->info[j].id;
#  704|           stuff->drawable = refDraw->info[j].id;
#  705|->         result = (*SavedProcVector[X_CreatePixmap]) (client);
#  706|           if (result != Success)
#  707|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
xwayland-24.1.9/Xext/panoramiXprocs.c:711:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/Xext/panoramiXprocs.c:687:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:688:26: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:692:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:695:20: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:695:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:695:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:698:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:710:8: branch_true: following ‘true’ branch (when ‘result == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:711:9: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:711:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:711:9: danger: ‘newPix’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  709|   
#  710|       if (result == Success)
#  711|->         AddResource(newPix->info[0].id, XRT_PIXMAP, newPix);
#  712|       else
#  713|           free(newPix);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
xwayland-24.1.9/Xext/panoramiXprocs.c:817:18: warning[-Wanalyzer-malloc-leak]: leak of ‘newGC’
xwayland-24.1.9/Xext/panoramiXprocs.c:762:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:764:26: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:766:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:769:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:771:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:774:16: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:802:19: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:802:8: branch_false: following ‘false’ branch (when ‘newGC’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:805:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:808:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:809:21: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:811:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:813:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:813:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:815:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:815:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:817:18: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:817:18: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:817:18: danger: ‘newGC’ leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
#  815|           if (clip)
#  816|               *((CARD32 *) &stuff[1] + clip_offset) = clip->info[j].id;
#  817|->         result = (*SavedProcVector[X_CreateGC]) (client);
#  818|           if (result != Success)
#  819|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
xwayland-24.1.9/Xext/panoramiXprocs.c:823:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newGC’
xwayland-24.1.9/Xext/panoramiXprocs.c:762:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:764:26: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:766:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:769:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:771:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:774:16: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:802:19: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:802:8: branch_false: following ‘false’ branch (when ‘newGC’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:805:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:822:8: branch_true: following ‘true’ branch (when ‘result == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:823:9: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:823:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:823:9: danger: ‘newGC’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
#  821|   
#  822|       if (result == Success)
#  823|->         AddResource(newGC->info[0].id, XRT_GC, newGC);
#  824|       else
#  825|           free(newGC);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
xwayland-24.1.9/Xext/panoramiXprocs.c:1118:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
xwayland-24.1.9/Xext/panoramiXprocs.c:1061:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1063:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1065:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1068:17: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1072:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1075:17: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1077:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1080:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1082:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1085:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1096:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1115:22: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:1115:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1118:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1118:9: throw: if ‘XineramaGetImageData’ throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:1118:9: danger: ‘data’ leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
# 1116|               return BadAlloc;
# 1117|   
# 1118|->         XineramaGetImageData(drawables, srcx, srcy, width, height, ZPixmap, ~0,
# 1119|                                data, pitch, srcIsRoot);
# 1120|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def23]
xwayland-24.1.9/Xext/panoramiXprocs.c:1399:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origPts’ where non-null expected
xwayland-24.1.9/Xext/panoramiXprocs.c:1380:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1382:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1384:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1387:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1392:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1395:19: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1397:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1398:19: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1398:19: acquire_memory: this call could return NULL
xwayland-24.1.9/Xext/panoramiXprocs.c:1399:9: danger: argument 1 (‘origPts’) from [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
# 1397|       if (npoint > 0) {
# 1398|           origPts = xallocarray(npoint, sizeof(xPoint));
# 1399|->         memcpy((char *) origPts, (char *) &stuff[1], npoint * sizeof(xPoint));
# 1400|           FOR_NSCREENS_FORWARD(j) {
# 1401|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
xwayland-24.1.9/Xext/panoramiXprocs.c:1424:22: warning[-Wanalyzer-malloc-leak]: leak of ‘origPts’
xwayland-24.1.9/Xext/panoramiXprocs.c:1380:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1382:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1384:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1387:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1392:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1395:19: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1397:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1398:19: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1398:19: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:1400:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1402:16: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1402:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1405:16: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1424:22: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:1424:22: danger: ‘origPts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
# 1422|               stuff->drawable = draw->info[j].id;
# 1423|               stuff->gc = gc->info[j].id;
# 1424|->             result = (*SavedProcVector[X_PolyPoint]) (client);
# 1425|               if (result != Success)
# 1426|                   break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def25]
xwayland-24.1.9/Xext/panoramiXprocs.c:1464:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origPts’ where non-null expected
xwayland-24.1.9/Xext/panoramiXprocs.c:1445:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1447:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1449:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1452:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1457:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1460:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1462:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1463:19: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1463:19: acquire_memory: this call could return NULL
xwayland-24.1.9/Xext/panoramiXprocs.c:1464:9: danger: argument 1 (‘origPts’) from [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
# 1462|       if (npoint > 0) {
# 1463|           origPts = xallocarray(npoint, sizeof(xPoint));
# 1464|->         memcpy((char *) origPts, (char *) &stuff[1], npoint * sizeof(xPoint));
# 1465|           FOR_NSCREENS_FORWARD(j) {
# 1466|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
xwayland-24.1.9/Xext/panoramiXprocs.c:1489:22: warning[-Wanalyzer-malloc-leak]: leak of ‘origPts’
xwayland-24.1.9/Xext/panoramiXprocs.c:1445:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1447:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1449:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1452:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1457:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1460:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1462:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1463:19: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1463:19: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:1465:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1467:16: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1467:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1470:16: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1489:22: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:1489:22: danger: ‘origPts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
# 1487|               stuff->drawable = draw->info[j].id;
# 1488|               stuff->gc = gc->info[j].id;
# 1489|->             result = (*SavedProcVector[X_PolyLine]) (client);
# 1490|               if (result != Success)
# 1491|                   break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def27]
xwayland-24.1.9/Xext/panoramiXprocs.c:1533:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origSegs’ where non-null expected
xwayland-24.1.9/Xext/panoramiXprocs.c:1510:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1512:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1514:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1517:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1522:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1525:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1528:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1530:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1531:8: branch_true: following ‘true’ branch (when ‘nsegs > 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1532:20: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1532:20: acquire_memory: this call could return NULL
xwayland-24.1.9/Xext/panoramiXprocs.c:1533:9: danger: argument 1 (‘origSegs’) from [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
# 1531|       if (nsegs > 0) {
# 1532|           origSegs = xallocarray(nsegs, sizeof(xSegment));
# 1533|->         memcpy((char *) origSegs, (char *) &stuff[1], nsegs * sizeof(xSegment));
# 1534|           FOR_NSCREENS_FORWARD(j) {
# 1535|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def28]
xwayland-24.1.9/Xext/panoramiXprocs.c:1557:22: warning[-Wanalyzer-malloc-leak]: leak of ‘origSegs’
xwayland-24.1.9/Xext/panoramiXprocs.c:1510:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1512:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1514:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1517:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1522:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1525:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1528:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1530:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1531:8: branch_true: following ‘true’ branch (when ‘nsegs > 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1532:20: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1532:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:1534:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1536:16: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1536:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1539:16: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1557:22: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:1557:22: danger: ‘origSegs’ leaks here; was allocated at [(11)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/10)
# 1555|               stuff->drawable = draw->info[j].id;
# 1556|               stuff->gc = gc->info[j].id;
# 1557|->             result = (*SavedProcVector[X_PolySegment]) (client);
# 1558|               if (result != Success)
# 1559|                   break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def29]
xwayland-24.1.9/Xext/panoramiXprocs.c:1601:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origRecs’ where non-null expected
xwayland-24.1.9/Xext/panoramiXprocs.c:1578:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1580:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1582:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1585:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1590:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1593:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1596:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1598:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1599:8: branch_true: following ‘true’ branch (when ‘nrects > 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1600:20: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1600:20: acquire_memory: this call could return NULL
xwayland-24.1.9/Xext/panoramiXprocs.c:1601:9: danger: argument 1 (‘origRecs’) from [(11)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
# 1599|       if (nrects > 0) {
# 1600|           origRecs = xallocarray(nrects, sizeof(xRectangle));
# 1601|->         memcpy((char *) origRecs, (char *) &stuff[1],
# 1602|                  nrects * sizeof(xRectangle));
# 1603|           FOR_NSCREENS_FORWARD(j) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def30]
xwayland-24.1.9/Xext/panoramiXprocs.c:1624:22: warning[-Wanalyzer-malloc-leak]: leak of ‘origRecs’
xwayland-24.1.9/Xext/panoramiXprocs.c:1578:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1580:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1582:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1585:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1590:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1593:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1596:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1598:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1599:8: branch_true: following ‘true’ branch (when ‘nrects > 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1600:20: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1600:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:1603:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1605:16: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1605:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1608:16: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1624:22: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:1624:22: danger: ‘origRecs’ leaks here; was allocated at [(11)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/10)
# 1622|               stuff->drawable = draw->info[j].id;
# 1623|               stuff->gc = gc->info[j].id;
# 1624|->             result = (*SavedProcVector[X_PolyRectangle]) (client);
# 1625|               if (result != Success)
# 1626|                   break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def31]
xwayland-24.1.9/Xext/panoramiXprocs.c:1668:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origArcs’ where non-null expected
xwayland-24.1.9/Xext/panoramiXprocs.c:1645:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1647:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1649:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1652:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1657:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1660:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1663:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1665:11: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1666:8: branch_true: following ‘true’ branch (when ‘narcs != 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1667:20: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1667:20: acquire_memory: this call could return NULL
xwayland-24.1.9/Xext/panoramiXprocs.c:1668:9: danger: argument 1 (‘origArcs’) from [(11)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
# 1666|       if (narcs > 0) {
# 1667|           origArcs = xallocarray(narcs, sizeof(xArc));
# 1668|->         memcpy((char *) origArcs, (char *) &stuff[1], narcs * sizeof(xArc));
# 1669|           FOR_NSCREENS_FORWARD(j) {
# 1670|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
xwayland-24.1.9/Xext/panoramiXprocs.c:1689:22: warning[-Wanalyzer-malloc-leak]: leak of ‘origArcs’
xwayland-24.1.9/Xext/panoramiXprocs.c:1645:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1647:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1649:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1652:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1657:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1660:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1663:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1665:11: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1666:8: branch_true: following ‘true’ branch (when ‘narcs != 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1667:20: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1667:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:1669:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1671:16: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1671:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1674:16: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1689:22: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:1689:22: danger: ‘origArcs’ leaks here; was allocated at [(11)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/10)
# 1687|               stuff->drawable = draw->info[j].id;
# 1688|               stuff->gc = gc->info[j].id;
# 1689|->             result = (*SavedProcVector[X_PolyArc]) (client);
# 1690|               if (result != Success)
# 1691|                   break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def33]
xwayland-24.1.9/Xext/panoramiXprocs.c:1730:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘locPts’ where non-null expected
xwayland-24.1.9/Xext/panoramiXprocs.c:1710:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1712:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1714:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1717:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1722:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1725:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1728:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1729:18: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1729:18: acquire_memory: this call could return NULL
xwayland-24.1.9/Xext/panoramiXprocs.c:1730:9: danger: argument 1 (‘locPts’) from [(9)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
# 1728|       if (count > 0) {
# 1729|           locPts = xallocarray(count, sizeof(DDXPointRec));
# 1730|->         memcpy((char *) locPts, (char *) &stuff[1],
# 1731|                  count * sizeof(DDXPointRec));
# 1732|           FOR_NSCREENS_FORWARD(j) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def34]
xwayland-24.1.9/Xext/panoramiXprocs.c:1755:22: warning[-Wanalyzer-malloc-leak]: leak of ‘locPts’
xwayland-24.1.9/Xext/panoramiXprocs.c:1710:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1712:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1714:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1717:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1722:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1725:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1728:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1729:18: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1729:18: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:1732:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1734:16: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1734:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1737:16: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1755:22: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:1755:22: danger: ‘locPts’ leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
# 1753|               stuff->drawable = draw->info[j].id;
# 1754|               stuff->gc = gc->info[j].id;
# 1755|->             result = (*SavedProcVector[X_FillPoly]) (client);
# 1756|               if (result != Success)
# 1757|                   break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def35]
xwayland-24.1.9/Xext/panoramiXprocs.c:1799:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origRects’ where non-null expected
xwayland-24.1.9/Xext/panoramiXprocs.c:1776:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1778:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1780:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1783:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1788:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1791:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1794:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1796:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1797:8: branch_true: following ‘true’ branch (when ‘things > 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1798:21: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1798:21: acquire_memory: this call could return NULL
xwayland-24.1.9/Xext/panoramiXprocs.c:1799:9: danger: argument 1 (‘origRects’) from [(11)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
# 1797|       if (things > 0) {
# 1798|           origRects = xallocarray(things, sizeof(xRectangle));
# 1799|->         memcpy((char *) origRects, (char *) &stuff[1],
# 1800|                  things * sizeof(xRectangle));
# 1801|           FOR_NSCREENS_FORWARD(j) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
xwayland-24.1.9/Xext/panoramiXprocs.c:1822:22: warning[-Wanalyzer-malloc-leak]: leak of ‘origRects’
xwayland-24.1.9/Xext/panoramiXprocs.c:1776:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1778:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1780:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1783:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1788:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1791:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1794:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1796:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1797:8: branch_true: following ‘true’ branch (when ‘things > 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1798:21: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1798:21: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:1801:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1803:16: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1803:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1806:16: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1822:22: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:1822:22: danger: ‘origRects’ leaks here; was allocated at [(11)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/10)
# 1820|               stuff->drawable = draw->info[j].id;
# 1821|               stuff->gc = gc->info[j].id;
# 1822|->             result = (*SavedProcVector[X_PolyFillRectangle]) (client);
# 1823|               if (result != Success)
# 1824|                   break;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def37]
xwayland-24.1.9/Xext/panoramiXprocs.c:1866:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origArcs’ where non-null expected
xwayland-24.1.9/Xext/panoramiXprocs.c:1843:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1845:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1847:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1850:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1855:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1858:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1861:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1863:11: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1864:8: branch_true: following ‘true’ branch (when ‘narcs != 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1865:20: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1865:20: acquire_memory: this call could return NULL
xwayland-24.1.9/Xext/panoramiXprocs.c:1866:9: danger: argument 1 (‘origArcs’) from [(11)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
# 1864|       if (narcs > 0) {
# 1865|           origArcs = xallocarray(narcs, sizeof(xArc));
# 1866|->         memcpy((char *) origArcs, (char *) &stuff[1], narcs * sizeof(xArc));
# 1867|           FOR_NSCREENS_FORWARD(j) {
# 1868|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
xwayland-24.1.9/Xext/panoramiXprocs.c:1888:22: warning[-Wanalyzer-malloc-leak]: leak of ‘origArcs’
xwayland-24.1.9/Xext/panoramiXprocs.c:1843:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1845:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1847:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1850:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1855:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1858:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1861:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1863:11: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1864:8: branch_true: following ‘true’ branch (when ‘narcs != 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1865:20: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1865:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:1867:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1869:16: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1869:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:1872:16: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1888:22: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:1888:22: danger: ‘origArcs’ leaks here; was allocated at [(11)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/10)
# 1886|               stuff->drawable = draw->info[j].id;
# 1887|               stuff->gc = gc->info[j].id;
# 1888|->             result = (*SavedProcVector[X_PolyFillArc]) (client);
# 1889|               if (result != Success)
# 1890|                   break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
xwayland-24.1.9/Xext/panoramiXprocs.c:2054:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pBuf’
xwayland-24.1.9/Xext/panoramiXprocs.c:1957:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1959:10: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1959:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1964:10: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1966:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1969:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1969:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1972:36: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1973:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1976:10: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1976:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1979:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1990:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1990:13: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2007:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2051:18: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:2051:8: branch_false: following ‘false’ branch (when ‘pBuf’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2054:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2054:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2054:5: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2054:5: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:2054:5: danger: ‘pBuf’ leaks here; was allocated at [(17)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/16)
# 2052|           return BadAlloc;
# 2053|   
# 2054|->     WriteReplyToClient(client, sizeof(xGetImageReply), &xgi);
# 2055|   
# 2056|       if (linesPerBuf == 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def40]
xwayland-24.1.9/Xext/panoramiXprocs.c:2067:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pBuf’
xwayland-24.1.9/Xext/panoramiXprocs.c:1957:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1959:10: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1959:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1964:10: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1966:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1969:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1969:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1972:36: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1973:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1976:10: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1976:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1979:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1990:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1990:13: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2007:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2051:18: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:2051:8: branch_false: following ‘false’ branch (when ‘pBuf’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2054:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2056:8: branch_false: following ‘false’ branch (when ‘linesPerBuf != 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2059:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2059:13: branch_true: following ‘true’ branch (when ‘format == 2’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2059:13: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2061:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2062:13: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2067:13: throw: if ‘XineramaGetImageData’ throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:2067:13: danger: ‘pBuf’ leaks here; was allocated at [(17)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/16)
# 2065|                   memset(pBuf, 0, nlines * widthBytesLine);
# 2066|   
# 2067|->             XineramaGetImageData(drawables, x, y + linesDone, w, nlines,
# 2068|                                    format, planemask, pBuf, widthBytesLine,
# 2069|                                    isRoot);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
xwayland-24.1.9/Xext/panoramiXprocs.c:2084:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pBuf’
xwayland-24.1.9/Xext/panoramiXprocs.c:1957:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1959:10: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1959:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1964:10: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1966:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1969:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1969:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1972:36: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1973:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1976:10: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1976:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1979:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:1990:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:1990:13: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2007:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2051:18: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:2051:8: branch_false: following ‘false’ branch (when ‘pBuf’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2054:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2056:8: branch_false: following ‘false’ branch (when ‘linesPerBuf != 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2059:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2059:13: branch_false: following ‘false’ branch (when ‘format != 2’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2059:13: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2076:16: branch_true: following ‘true’ branch (when ‘plane != 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2077:17: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2084:21: throw: if ‘XineramaGetImageData’ throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:2084:21: danger: ‘pBuf’ leaks here; was allocated at [(17)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/16)
# 2082|                       memset(pBuf, 0, nlines * widthBytesLine);
# 2083|   
# 2084|->                     XineramaGetImageData(drawables, x, y + linesDone, w,
# 2085|                                            nlines, format, plane, pBuf,
# 2086|                                            widthBytesLine, isRoot);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def42]
xwayland-24.1.9/Xext/panoramiXprocs.c:2300:25: warning[-Wanalyzer-malloc-leak]: leak of ‘newCmap’
xwayland-24.1.9/Xext/panoramiXprocs.c:2283:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2285:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2287:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:21: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:21: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:8: branch_false: following ‘false’ branch (when ‘newCmap’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2293:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2297:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2298:22: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2300:25: throw: if ‘PanoramiXTranslateVisualID’ throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:2300:25: danger: ‘newCmap’ leaks here; was allocated at [(5)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/4)
# 2298|           stuff->mid = newCmap->info[j].id;
# 2299|           stuff->window = win->info[j].id;
# 2300|->         stuff->visual = PanoramiXTranslateVisualID(j, orig_visual);
# 2301|           result = (*SavedProcVector[X_CreateColormap]) (client);
# 2302|           if (result != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
xwayland-24.1.9/Xext/panoramiXprocs.c:2301:18: warning[-Wanalyzer-malloc-leak]: leak of ‘newCmap’
xwayland-24.1.9/Xext/panoramiXprocs.c:2283:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2285:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2287:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:21: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:21: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:8: branch_false: following ‘false’ branch (when ‘newCmap’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2293:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2297:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2298:22: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2301:18: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:2301:18: danger: ‘newCmap’ leaks here; was allocated at [(5)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/4)
# 2299|           stuff->window = win->info[j].id;
# 2300|           stuff->visual = PanoramiXTranslateVisualID(j, orig_visual);
# 2301|->         result = (*SavedProcVector[X_CreateColormap]) (client);
# 2302|           if (result != Success)
# 2303|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def44]
xwayland-24.1.9/Xext/panoramiXprocs.c:2307:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newCmap’
xwayland-24.1.9/Xext/panoramiXprocs.c:2283:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2285:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2287:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:21: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:21: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:8: branch_false: following ‘false’ branch (when ‘newCmap’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2293:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2306:8: branch_true: following ‘true’ branch (when ‘result == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2307:9: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2307:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:2307:9: danger: ‘newCmap’ leaks here; was allocated at [(5)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/4)
# 2305|   
# 2306|       if (result == Success)
# 2307|->         AddResource(newCmap->info[0].id, XRT_COLORMAP, newCmap);
# 2308|       else
# 2309|           free(newCmap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
xwayland-24.1.9/Xext/panoramiXprocs.c:2371:18: warning[-Wanalyzer-malloc-leak]: leak of ‘newCmap’
xwayland-24.1.9/Xext/panoramiXprocs.c:2352:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2354:26: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2359:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2362:21: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2362:21: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:2362:8: branch_false: following ‘false’ branch (when ‘newCmap’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2365:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2368:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2369:30: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2371:18: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:2371:18: danger: ‘newCmap’ leaks here; was allocated at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
# 2369|           stuff->srcCmap = cmap->info[j].id;
# 2370|           stuff->mid = newCmap->info[j].id;
# 2371|->         result = (*SavedProcVector[X_CopyColormapAndFree]) (client);
# 2372|           if (result != Success)
# 2373|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
xwayland-24.1.9/Xext/panoramiXprocs.c:2377:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newCmap’
xwayland-24.1.9/Xext/panoramiXprocs.c:2352:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2354:26: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2359:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2362:21: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2362:21: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:2362:8: branch_false: following ‘false’ branch (when ‘newCmap’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2365:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2376:8: branch_true: following ‘true’ branch (when ‘result == 0’)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2377:9: branch_true: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2377:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/panoramiXprocs.c:2377:9: danger: ‘newCmap’ leaks here; was allocated at [(5)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/4)
# 2375|   
# 2376|       if (result == Success)
# 2377|->         AddResource(newCmap->info[0].id, XRT_COLORMAP, newCmap);
# 2378|       else
# 2379|           free(newCmap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
xwayland-24.1.9/Xext/panoramiXsrv.h:59:32: warning[-Wanalyzer-malloc-leak]: leak of ‘newCmap’
xwayland-24.1.9/Xext/panoramiXprocs.c:2276:1: enter_function: entry to ‘PanoramiXCreateColormap’
xwayland-24.1.9/Xext/panoramiXprocs.c:2283:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2285:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2287:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:21: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:21: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:2290:8: branch_false: following ‘false’ branch (when ‘newCmap’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:2293:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:2294:5: call_function: calling ‘panoramix_setup_ids’ from ‘PanoramiXCreateColormap’
#   57|       resource->info[0].id = base_id;
#   58|       FOR_NSCREENS_FORWARD_SKIP(j) {
#   59|->         resource->info[j].id = FakeClientID(client->index);
#   60|       }
#   61|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def48]
xwayland-24.1.9/Xext/panoramiXsrv.h:59:32: warning[-Wanalyzer-malloc-leak]: leak of ‘newGC’
xwayland-24.1.9/Xext/panoramiXprocs.c:749:1: enter_function: entry to ‘PanoramiXCreateGC’
xwayland-24.1.9/Xext/panoramiXprocs.c:762:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:764:26: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:766:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:769:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:771:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:774:16: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:802:19: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:802:8: branch_false: following ‘false’ branch (when ‘newGC’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:805:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:806:5: call_function: calling ‘panoramix_setup_ids’ from ‘PanoramiXCreateGC’
#   57|       resource->info[0].id = base_id;
#   58|       FOR_NSCREENS_FORWARD_SKIP(j) {
#   59|->         resource->info[j].id = FakeClientID(client->index);
#   60|       }
#   61|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
xwayland-24.1.9/Xext/panoramiXsrv.h:59:32: warning[-Wanalyzer-malloc-leak]: leak of ‘newPict’
xwayland-24.1.9/render/render.c:3245:1: enter_function: entry to ‘PanoramiXRenderCreateConicalGradient’
xwayland-24.1.9/render/render.c:3251:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3253:38: branch_false: ...to here
xwayland-24.1.9/render/render.c:3253:38: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3253:8: branch_false: following ‘false’ branch (when ‘newPict’ is non-NULL)...
xwayland-24.1.9/render/render.c:3256:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3257:5: call_function: calling ‘panoramix_setup_ids’ from ‘PanoramiXRenderCreateConicalGradient’
#   57|       resource->info[0].id = base_id;
#   58|       FOR_NSCREENS_FORWARD_SKIP(j) {
#   59|->         resource->info[j].id = FakeClientID(client->index);
#   60|       }
#   61|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def50]
xwayland-24.1.9/Xext/panoramiXsrv.h:59:32: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/composite/compext.c:701:1: enter_function: entry to ‘PanoramiXCompositeNameWindowPixmap’
xwayland-24.1.9/composite/compext.c:712:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:714:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:714:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:720:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:720:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:722:20: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:722:20: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:722:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:725:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:727:5: call_function: calling ‘panoramix_setup_ids’ from ‘PanoramiXCompositeNameWindowPixmap’
#   57|       resource->info[0].id = base_id;
#   58|       FOR_NSCREENS_FORWARD_SKIP(j) {
#   59|->         resource->info[j].id = FakeClientID(client->index);
#   60|       }
#   61|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
xwayland-24.1.9/Xext/panoramiXsrv.h:59:32: warning[-Wanalyzer-malloc-leak]: leak of ‘newWin’
xwayland-24.1.9/Xext/panoramiXprocs.c:55:1: enter_function: entry to ‘PanoramiXCreateWindow’
xwayland-24.1.9/Xext/panoramiXprocs.c:69:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:71:11: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:72:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:75:14: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:77:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/panoramiXprocs.c:80:9: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:118:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/panoramiXprocs.c:118:8: branch_false: following ‘false’ branch (when ‘newWin’ is non-NULL)...
xwayland-24.1.9/Xext/panoramiXprocs.c:121:5: branch_false: ...to here
xwayland-24.1.9/Xext/panoramiXprocs.c:125:5: call_function: calling ‘panoramix_setup_ids’ from ‘PanoramiXCreateWindow’
#   57|       resource->info[0].id = base_id;
#   58|       FOR_NSCREENS_FORWARD_SKIP(j) {
#   59|->         resource->info[j].id = FakeClientID(client->index);
#   60|       }
#   61|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def52]
xwayland-24.1.9/Xext/saver.c:901:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pAttr’
xwayland-24.1.9/Xext/saver.c:1094:1: enter_function: entry to ‘ProcScreenSaverSetAttributes’
xwayland-24.1.9/Xext/saver.c:1107:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1109:18: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1111:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1115:13: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1117:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1120:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1120:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1121:28: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1123:16: branch_true: following ‘true’ branch (when ‘tmp > 1’)...
xwayland-24.1.9/Xext/saver.c:1124:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1127:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1132:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1135:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1136:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1139:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1144:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1147:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1148:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1151:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1156:9: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1158:9: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/Xext/saver.c:1159:35: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1170:22: call_function: calling ‘ScreenSaverSetAttributes’ from ‘ProcScreenSaverSetAttributes’
#  899|               else {
#  900|                   ret =
#  901|->                     dixLookupResourceByType((void **) &pPixmap, pixID,
#  902|                                               RT_PIXMAP, client, DixReadAccess);
#  903|                   if (ret == Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
xwayland-24.1.9/Xext/saver.c:901:21: warning[-Wanalyzer-malloc-leak]: leak of ‘values’
xwayland-24.1.9/Xext/saver.c:1094:1: enter_function: entry to ‘ProcScreenSaverSetAttributes’
xwayland-24.1.9/Xext/saver.c:1107:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1109:18: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1111:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1115:13: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1117:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1120:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1120:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1121:28: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1123:16: branch_true: following ‘true’ branch (when ‘tmp > 1’)...
xwayland-24.1.9/Xext/saver.c:1124:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1127:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1132:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1135:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1136:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1139:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1144:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1147:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1148:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1151:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1156:9: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1158:9: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/Xext/saver.c:1159:35: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1170:22: call_function: calling ‘ScreenSaverSetAttributes’ from ‘ProcScreenSaverSetAttributes’
#  899|               else {
#  900|                   ret =
#  901|->                     dixLookupResourceByType((void **) &pPixmap, pixID,
#  902|                                               RT_PIXMAP, client, DixReadAccess);
#  903|                   if (ret == Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
xwayland-24.1.9/Xext/saver.c:933:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pAttr’
xwayland-24.1.9/Xext/saver.c:1094:1: enter_function: entry to ‘ProcScreenSaverSetAttributes’
xwayland-24.1.9/Xext/saver.c:1107:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1109:18: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1111:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1115:13: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1117:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1120:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1120:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1121:28: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1123:16: branch_true: following ‘true’ branch (when ‘tmp > 1’)...
xwayland-24.1.9/Xext/saver.c:1124:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1127:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1132:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1135:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1136:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1139:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1144:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1147:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1148:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1151:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1156:9: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1158:9: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/Xext/saver.c:1159:35: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1170:22: call_function: calling ‘ScreenSaverSetAttributes’ from ‘ProcScreenSaverSetAttributes’
#  931|               else {
#  932|                   ret =
#  933|->                     dixLookupResourceByType((void **) &pPixmap, pixID,
#  934|                                               RT_PIXMAP, client, DixReadAccess);
#  935|                   if (ret == Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
xwayland-24.1.9/Xext/saver.c:933:21: warning[-Wanalyzer-malloc-leak]: leak of ‘values’
xwayland-24.1.9/Xext/saver.c:1094:1: enter_function: entry to ‘ProcScreenSaverSetAttributes’
xwayland-24.1.9/Xext/saver.c:1107:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1109:18: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1111:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1115:13: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1117:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1120:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1120:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1121:28: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1123:16: branch_true: following ‘true’ branch (when ‘tmp > 1’)...
xwayland-24.1.9/Xext/saver.c:1124:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1127:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1132:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1135:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1136:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1139:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1144:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1147:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1148:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1151:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1156:9: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1158:9: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/Xext/saver.c:1159:35: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1170:22: call_function: calling ‘ScreenSaverSetAttributes’ from ‘ProcScreenSaverSetAttributes’
#  931|               else {
#  932|                   ret =
#  933|->                     dixLookupResourceByType((void **) &pPixmap, pixID,
#  934|                                               RT_PIXMAP, client, DixReadAccess);
#  935|                   if (ret == Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def56]
xwayland-24.1.9/Xext/saver.c:1017:19: warning[-Wanalyzer-malloc-leak]: leak of ‘pAttr’
xwayland-24.1.9/Xext/saver.c:1094:1: enter_function: entry to ‘ProcScreenSaverSetAttributes’
xwayland-24.1.9/Xext/saver.c:1107:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1109:18: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1111:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1115:13: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1117:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1120:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1120:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1121:28: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1123:16: branch_true: following ‘true’ branch (when ‘tmp > 1’)...
xwayland-24.1.9/Xext/saver.c:1124:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1127:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1132:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1135:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1136:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1139:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1144:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1147:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1148:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1151:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1156:9: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1158:9: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/Xext/saver.c:1159:35: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1170:22: call_function: calling ‘ScreenSaverSetAttributes’ from ‘ProcScreenSaverSetAttributes’
# 1015|           case CWColormap:
# 1016|               cmap = (Colormap) * pVlist;
# 1017|->             ret = dixLookupResourceByType((void **) &pCmap, cmap, RT_COLORMAP,
# 1018|                                             client, DixUseAccess);
# 1019|               if (ret != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def57]
xwayland-24.1.9/Xext/saver.c:1017:19: warning[-Wanalyzer-malloc-leak]: leak of ‘values’
xwayland-24.1.9/Xext/saver.c:1094:1: enter_function: entry to ‘ProcScreenSaverSetAttributes’
xwayland-24.1.9/Xext/saver.c:1107:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1109:18: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1111:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1115:13: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1117:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1120:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1120:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1121:28: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1123:16: branch_true: following ‘true’ branch (when ‘tmp > 1’)...
xwayland-24.1.9/Xext/saver.c:1124:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1127:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1132:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1135:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1136:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1139:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1144:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1147:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1148:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1151:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1156:9: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1158:9: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/Xext/saver.c:1159:35: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1170:22: call_function: calling ‘ScreenSaverSetAttributes’ from ‘ProcScreenSaverSetAttributes’
# 1015|           case CWColormap:
# 1016|               cmap = (Colormap) * pVlist;
# 1017|->             ret = dixLookupResourceByType((void **) &pCmap, cmap, RT_COLORMAP,
# 1018|                                             client, DixUseAccess);
# 1019|               if (ret != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def58]
xwayland-24.1.9/Xext/saver.c:1036:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pAttr’
xwayland-24.1.9/Xext/saver.c:1094:1: enter_function: entry to ‘ProcScreenSaverSetAttributes’
xwayland-24.1.9/Xext/saver.c:1107:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1109:18: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1111:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1115:13: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1117:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1120:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1120:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1121:28: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1123:16: branch_true: following ‘true’ branch (when ‘tmp > 1’)...
xwayland-24.1.9/Xext/saver.c:1124:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1127:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1132:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1135:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1136:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1139:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1144:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1147:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1148:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1151:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1156:9: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1158:9: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/Xext/saver.c:1159:35: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1170:22: call_function: calling ‘ScreenSaverSetAttributes’ from ‘ProcScreenSaverSetAttributes’
# 1034|               }
# 1035|               else {
# 1036|->                 ret = dixLookupResourceByType((void **) &pCursor, cursorID,
# 1037|                                                 RT_CURSOR, client, DixUseAccess);
# 1038|                   if (ret != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
xwayland-24.1.9/Xext/saver.c:1036:23: warning[-Wanalyzer-malloc-leak]: leak of ‘values’
xwayland-24.1.9/Xext/saver.c:1094:1: enter_function: entry to ‘ProcScreenSaverSetAttributes’
xwayland-24.1.9/Xext/saver.c:1107:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1109:18: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1111:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1115:13: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1117:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1120:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1120:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1121:28: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1123:16: branch_true: following ‘true’ branch (when ‘tmp > 1’)...
xwayland-24.1.9/Xext/saver.c:1124:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1127:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1132:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1135:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1136:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1139:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1144:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1147:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1148:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1151:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1156:9: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1158:9: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/Xext/saver.c:1159:35: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1170:22: call_function: calling ‘ScreenSaverSetAttributes’ from ‘ProcScreenSaverSetAttributes’
# 1034|               }
# 1035|               else {
# 1036|->                 ret = dixLookupResourceByType((void **) &pCursor, cursorID,
# 1037|                                                 RT_CURSOR, client, DixUseAccess);
# 1038|                   if (ret != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
xwayland-24.1.9/Xext/saver.c:1042:34: warning[-Wanalyzer-malloc-leak]: leak of ‘pAttr’
xwayland-24.1.9/Xext/saver.c:1094:1: enter_function: entry to ‘ProcScreenSaverSetAttributes’
xwayland-24.1.9/Xext/saver.c:1107:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1109:18: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1111:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1115:13: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1117:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1120:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1120:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1121:28: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1123:16: branch_true: following ‘true’ branch (when ‘tmp > 1’)...
xwayland-24.1.9/Xext/saver.c:1124:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1127:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1132:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1135:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1136:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1139:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1144:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1147:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1148:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1151:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1156:9: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1158:9: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/Xext/saver.c:1159:35: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1170:22: call_function: calling ‘ScreenSaverSetAttributes’ from ‘ProcScreenSaverSetAttributes’
# 1040|                       goto PatchUp;
# 1041|                   }
# 1042|->                 pAttr->pCursor = RefCursor(pCursor);
# 1043|                   pAttr->mask &= ~CWCursor;
# 1044|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
xwayland-24.1.9/Xext/saver.c:1042:34: warning[-Wanalyzer-malloc-leak]: leak of ‘values’
xwayland-24.1.9/Xext/saver.c:1094:1: enter_function: entry to ‘ProcScreenSaverSetAttributes’
xwayland-24.1.9/Xext/saver.c:1107:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1109:18: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1111:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1115:13: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1117:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1120:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1120:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1121:28: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1123:16: branch_true: following ‘true’ branch (when ‘tmp > 1’)...
xwayland-24.1.9/Xext/saver.c:1124:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1127:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1132:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1132:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1135:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1136:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1139:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1144:20: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/saver.c:1144:12: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1147:16: branch_true: following ‘true’ branch (when ‘tmp != 0’)...
xwayland-24.1.9/Xext/saver.c:1148:26: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1151:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1156:9: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1158:9: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/Xext/saver.c:1159:35: branch_true: ...to here
xwayland-24.1.9/Xext/saver.c:1170:22: call_function: calling ‘ScreenSaverSetAttributes’ from ‘ProcScreenSaverSetAttributes’
# 1040|                       goto PatchUp;
# 1041|                   }
# 1042|->                 pAttr->pCursor = RefCursor(pCursor);
# 1043|                   pAttr->mask &= ~CWCursor;
# 1044|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
xwayland-24.1.9/Xext/saver.c:1257:28: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
xwayland-24.1.9/Xext/saver.c:1349:1: enter_function: entry to ‘SProcScreenSaverSuspend’
xwayland-24.1.9/Xext/saver.c:1354:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1355:5: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1356:12: call_function: calling ‘ProcScreenSaverSuspend’ from ‘SProcScreenSaverSuspend’
# 1255|       this->pClient = client;
# 1256|       this->count = 1;
# 1257|->     this->clientResource = FakeClientID(client->index);
# 1258|   
# 1259|       if (!AddResource(this->clientResource, SuspendType, (void *) this)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
xwayland-24.1.9/Xext/saver.c:1259:10: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
xwayland-24.1.9/Xext/saver.c:1349:1: enter_function: entry to ‘SProcScreenSaverSuspend’
xwayland-24.1.9/Xext/saver.c:1354:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/saver.c:1355:5: branch_false: ...to here
xwayland-24.1.9/Xext/saver.c:1356:12: call_function: calling ‘ProcScreenSaverSuspend’ from ‘SProcScreenSaverSuspend’
# 1257|       this->clientResource = FakeClientID(client->index);
# 1258|   
# 1259|->     if (!AddResource(this->clientResource, SuspendType, (void *) this)) {
# 1260|           free(this);
# 1261|           return BadAlloc;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def64]
xwayland-24.1.9/Xext/security.c:111:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
xwayland-24.1.9/Xext/security.c:108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:110:5: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:110:5: acquire_resource: ‘va_start’ called here
xwayland-24.1.9/Xext/security.c:111:5: throw: if ‘VAuditF’ throws an exception...
xwayland-24.1.9/Xext/security.c:111:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  109|           return;
#  110|       va_start(args, format);
#  111|->     VAuditF(format, args);
#  112|       va_end(args);
#  113|   }                               /* SecurityAudit */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def65]
xwayland-24.1.9/Xext/security.c:384:30: warning[-Wanalyzer-malloc-leak]: leak of ‘pAuth’
xwayland-24.1.9/Xext/security.c:396:1: enter_function: entry to ‘ProcSecurityGenerateAuthorization’
xwayland-24.1.9/Xext/security.c:417:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:419:27: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:423:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:427:9: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:427:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:434:9: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:473:12: branch_false: following ‘false’ branch (when ‘eventMask <= 1’)...
xwayland-24.1.9/Xext/security.c:479:5: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:487:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:499:13: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:499:13: acquire_memory: allocated here
xwayland-24.1.9/Xext/security.c:500:8: branch_false: following ‘false’ branch (when ‘pAuth’ is non-NULL)...
xwayland-24.1.9/Xext/security.c:507:5: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:517:8: branch_true: following ‘true’ branch (when ‘eventMask != 0’)...
xwayland-24.1.9/Xext/security.c:518:15: branch_true: ...to here
xwayland-24.1.9/Xext/security.c:518:15: call_function: calling ‘SecurityEventSelectForAuthorization’ from ‘ProcSecurityGenerateAuthorization’
#  382|           return BadAlloc;
#  383|       pEventClient->mask = mask;
#  384|->     pEventClient->resource = FakeClientID(client->index);
#  385|       pEventClient->next = pAuth->eventClients;
#  386|       if (!AddResource(pEventClient->resource, RTEventClient, (void *) pAuth)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
xwayland-24.1.9/Xext/security.c:384:30: warning[-Wanalyzer-malloc-leak]: leak of ‘pEventClient’
xwayland-24.1.9/Xext/security.c:380:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/security.c:381:8: branch_false: following ‘false’ branch (when ‘pEventClient’ is non-NULL)...
xwayland-24.1.9/Xext/security.c:383:5: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:384:30: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/Xext/security.c:384:30: danger: ‘pEventClient’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  382|           return BadAlloc;
#  383|       pEventClient->mask = mask;
#  384|->     pEventClient->resource = FakeClientID(client->index);
#  385|       pEventClient->next = pAuth->eventClients;
#  386|       if (!AddResource(pEventClient->resource, RTEventClient, (void *) pAuth)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def67]
xwayland-24.1.9/Xext/security.c:386:10: warning[-Wanalyzer-malloc-leak]: leak of ‘pAuth’
xwayland-24.1.9/Xext/security.c:396:1: enter_function: entry to ‘ProcSecurityGenerateAuthorization’
xwayland-24.1.9/Xext/security.c:417:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:419:27: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:423:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:427:9: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:427:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:434:9: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:473:12: branch_false: following ‘false’ branch (when ‘eventMask <= 1’)...
xwayland-24.1.9/Xext/security.c:479:5: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:487:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:499:13: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:499:13: acquire_memory: allocated here
xwayland-24.1.9/Xext/security.c:500:8: branch_false: following ‘false’ branch (when ‘pAuth’ is non-NULL)...
xwayland-24.1.9/Xext/security.c:507:5: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:517:8: branch_true: following ‘true’ branch (when ‘eventMask != 0’)...
xwayland-24.1.9/Xext/security.c:518:15: branch_true: ...to here
xwayland-24.1.9/Xext/security.c:518:15: call_function: calling ‘SecurityEventSelectForAuthorization’ from ‘ProcSecurityGenerateAuthorization’
#  384|       pEventClient->resource = FakeClientID(client->index);
#  385|       pEventClient->next = pAuth->eventClients;
#  386|->     if (!AddResource(pEventClient->resource, RTEventClient, (void *) pAuth)) {
#  387|           free(pEventClient);
#  388|           return BadAlloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
xwayland-24.1.9/Xext/security.c:386:10: warning[-Wanalyzer-malloc-leak]: leak of ‘pEventClient’
xwayland-24.1.9/Xext/security.c:380:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/security.c:381:8: branch_false: following ‘false’ branch (when ‘pEventClient’ is non-NULL)...
xwayland-24.1.9/Xext/security.c:383:5: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:386:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/security.c:386:10: danger: ‘pEventClient’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  384|       pEventClient->resource = FakeClientID(client->index);
#  385|       pEventClient->next = pAuth->eventClients;
#  386|->     if (!AddResource(pEventClient->resource, RTEventClient, (void *) pAuth)) {
#  387|           free(pEventClient);
#  388|           return BadAlloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def69]
xwayland-24.1.9/Xext/security.c:523:10: warning[-Wanalyzer-malloc-leak]: leak of ‘pAuth’
xwayland-24.1.9/Xext/security.c:417:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:419:27: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:423:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:427:9: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:427:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:434:9: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:487:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:499:13: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:499:13: acquire_memory: allocated here
xwayland-24.1.9/Xext/security.c:500:8: branch_false: following ‘false’ branch (when ‘pAuth’ is non-NULL)...
xwayland-24.1.9/Xext/security.c:507:5: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:517:8: branch_false: following ‘false’ branch (when ‘eventMask == 0’)...
xwayland-24.1.9/Xext/security.c:523:10: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:523:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/security.c:523:10: danger: ‘pAuth’ leaks here; was allocated at [(9)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/8)
#  521|       }
#  522|   
#  523|->     if (!AddResource(authId, SecurityAuthorizationResType, pAuth)) {
#  524|           err = BadAlloc;
#  525|           goto bailout;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
xwayland-24.1.9/Xext/security.c:563:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pAuth’
xwayland-24.1.9/Xext/security.c:396:1: enter_function: entry to ‘ProcSecurityGenerateAuthorization’
xwayland-24.1.9/Xext/security.c:417:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:419:27: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:423:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:427:9: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:427:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:434:9: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:473:12: branch_false: following ‘false’ branch (when ‘eventMask <= 1’)...
xwayland-24.1.9/Xext/security.c:479:5: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:487:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/security.c:499:13: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:499:13: acquire_memory: allocated here
xwayland-24.1.9/Xext/security.c:500:8: branch_false: following ‘false’ branch (when ‘pAuth’ is non-NULL)...
xwayland-24.1.9/Xext/security.c:507:5: branch_false: ...to here
xwayland-24.1.9/Xext/security.c:517:8: branch_true: following ‘true’ branch (when ‘eventMask != 0’)...
xwayland-24.1.9/Xext/security.c:518:15: branch_true: ...to here
xwayland-24.1.9/Xext/security.c:518:15: call_function: calling ‘SecurityEventSelectForAuthorization’ from ‘ProcSecurityGenerateAuthorization’
xwayland-24.1.9/Xext/security.c:518:15: return_function: returning to ‘ProcSecurityGenerateAuthorization’ from ‘SecurityEventSelectForAuthorization’
xwayland-24.1.9/Xext/security.c:519:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/security.c:520:13: branch_true: ...to here
xwayland-24.1.9/Xext/security.c:563:9: throw: if ‘RemoveAuthorization’ throws an exception...
xwayland-24.1.9/Xext/security.c:563:9: danger: ‘pAuth’ leaks here; was allocated at [(12)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/11)
#  561|    bailout:
#  562|       if (removeAuth)
#  563|->         RemoveAuthorization(stuff->nbytesAuthProto, protoname,
#  564|                               authdata_len, pAuthdata);
#  565|       free(pAuth);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def71]
xwayland-24.1.9/Xext/shape.c:771:26: warning[-Wanalyzer-malloc-leak]: leak of ‘pNewShapeEvent’
xwayland-24.1.9/Xext/shape.c:1168:1: enter_function: entry to ‘SProcShapeSelectInput’
xwayland-24.1.9/Xext/shape.c:1173:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shape.c:1174:5: branch_false: ...to here
xwayland-24.1.9/Xext/shape.c:1175:12: call_function: calling ‘ProcShapeSelectInput’ from ‘SProcShapeSelectInput’
#  769|            * the client goes away
#  770|            */
#  771|->         clientResource = FakeClientID(client->index);
#  772|           pNewShapeEvent->clientResource = clientResource;
#  773|           if (!AddResource(clientResource, ClientType, (void *) pNewShapeEvent))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
xwayland-24.1.9/Xext/shape.c:773:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pNewShapeEvent’
xwayland-24.1.9/Xext/shape.c:1168:1: enter_function: entry to ‘SProcShapeSelectInput’
xwayland-24.1.9/Xext/shape.c:1173:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shape.c:1174:5: branch_false: ...to here
xwayland-24.1.9/Xext/shape.c:1175:12: call_function: calling ‘ProcShapeSelectInput’ from ‘SProcShapeSelectInput’
#  771|           clientResource = FakeClientID(client->index);
#  772|           pNewShapeEvent->clientResource = clientResource;
#  773|->         if (!AddResource(clientResource, ClientType, (void *) pNewShapeEvent))
#  774|               return BadAlloc;
#  775|           /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def73]
xwayland-24.1.9/Xext/shape.c:784:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pHead’
xwayland-24.1.9/Xext/shape.c:1168:1: enter_function: entry to ‘SProcShapeSelectInput’
xwayland-24.1.9/Xext/shape.c:1173:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shape.c:1174:5: branch_false: ...to here
xwayland-24.1.9/Xext/shape.c:1175:12: call_function: calling ‘ProcShapeSelectInput’ from ‘SProcShapeSelectInput’
#  782|               pHead = malloc(sizeof(ShapeEventPtr));
#  783|               if (!pHead ||
#  784|->                 !AddResource(pWin->drawable.id, ShapeEventType,
#  785|                                (void *) pHead)) {
#  786|                   FreeResource(clientResource, RT_NONE);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
xwayland-24.1.9/Xext/shape.c:1004:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rects’
xwayland-24.1.9/Xext/shape.c:1190:1: enter_function: entry to ‘SProcShapeGetRectangles’
xwayland-24.1.9/Xext/shape.c:1194:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shape.c:1195:5: branch_false: ...to here
xwayland-24.1.9/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-401): [#def75]
xwayland-24.1.9/Xext/shape.c:1021:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rects’
xwayland-24.1.9/Xext/shape.c:1190:1: enter_function: entry to ‘SProcShapeGetRectangles’
xwayland-24.1.9/Xext/shape.c:1194:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shape.c:1195:5: branch_false: ...to here
xwayland-24.1.9/Xext/shape.c:1196:12: call_function: calling ‘ProcShapeGetRectangles’ from ‘SProcShapeGetRectangles’
# 1019|           swapl(&rep.length);
# 1020|           swapl(&rep.nrects);
# 1021|->         SwapShorts((short *) rects, (unsigned long) nrects * 4);
# 1022|       }
# 1023|       WriteToClient(client, sizeof(rep), &rep);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
xwayland-24.1.9/Xext/shape.c:1023:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rects’
xwayland-24.1.9/Xext/shape.c:1190:1: enter_function: entry to ‘SProcShapeGetRectangles’
xwayland-24.1.9/Xext/shape.c:1194:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shape.c:1195:5: branch_false: ...to here
xwayland-24.1.9/Xext/shape.c:1196:12: call_function: calling ‘ProcShapeGetRectangles’ from ‘SProcShapeGetRectangles’
# 1021|           SwapShorts((short *) rects, (unsigned long) nrects * 4);
# 1022|       }
# 1023|->     WriteToClient(client, sizeof(rep), &rep);
# 1024|       WriteToClient(client, nrects * sizeof(xRectangle), rects);
# 1025|       free(rects);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
xwayland-24.1.9/Xext/shape.c:1024:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rects’
xwayland-24.1.9/Xext/shape.c:1190:1: enter_function: entry to ‘SProcShapeGetRectangles’
xwayland-24.1.9/Xext/shape.c:1194:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shape.c:1195:5: branch_false: ...to here
xwayland-24.1.9/Xext/shape.c:1196:12: call_function: calling ‘ProcShapeGetRectangles’ from ‘SProcShapeGetRectangles’
# 1022|       }
# 1023|       WriteToClient(client, sizeof(rep), &rep);
# 1024|->     WriteToClient(client, nrects * sizeof(xRectangle), rects);
# 1025|       free(rects);
# 1026|       return Success;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
xwayland-24.1.9/Xext/shape.c:1027:1: warning[-Wanalyzer-malloc-leak]: leak of ‘rects’
xwayland-24.1.9/Xext/shape.c:1190:1: enter_function: entry to ‘SProcShapeGetRectangles’
xwayland-24.1.9/Xext/shape.c:1194:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shape.c:1195:5: branch_false: ...to here
xwayland-24.1.9/Xext/shape.c:1196:12: call_function: calling ‘ProcShapeGetRectangles’ from ‘SProcShapeGetRectangles’
# 1025|       free(rects);
# 1026|       return Success;
# 1027|-> }
# 1028|   
# 1029|   static int

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
xwayland-24.1.9/Xext/shm.c:317:9: warning[-Wanalyzer-malloc-leak]: leak of ‘shmdesc’
xwayland-24.1.9/Xext/shm.c:1334:1: enter_function: entry to ‘ProcShmDispatch’
xwayland-24.1.9/Xext/shm.c:1338:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1341:9: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1341:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1344:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1346:16: call_function: calling ‘ProcShmAttach’ from ‘ProcShmDispatch’
#  315|       LocalClientCredRec *lcc;
#  316|   
#  317|->     if (GetLocalClientCreds(client, &lcc) != -1) {
#  318|   
#  319|           if (lcc->fieldsSet & LCC_UID_SET) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
xwayland-24.1.9/Xext/shm.c:335:9: warning[-Wanalyzer-malloc-leak]: leak of ‘shmdesc’
xwayland-24.1.9/Xext/shm.c:1334:1: enter_function: entry to ‘ProcShmDispatch’
xwayland-24.1.9/Xext/shm.c:1338:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1341:9: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1341:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1344:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1346:16: call_function: calling ‘ProcShmAttach’ from ‘ProcShmDispatch’
#  333|           }
#  334|   #endif
#  335|->         FreeLocalClientCreds(lcc);
#  336|   
#  337|           if (uidset) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
xwayland-24.1.9/Xext/shm.c:862:14: warning[-Wanalyzer-malloc-leak]: leak of ‘drawables’
xwayland-24.1.9/Xext/shm.c:792:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:794:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:794:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:799:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:801:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:804:13: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:804:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:807:36: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:808:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:811:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:811:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:823:12: branch_false: following ‘false’ branch (when ‘x >= 0’)...
xwayland-24.1.9/Xext/shm.c:824:25: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:824:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:824:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:843:8: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:854:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:856:17: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:856:17: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:857:8: branch_false: following ‘false’ branch (when ‘drawables’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:860:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:861:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:862:51: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:862:14: throw: if ‘dixLookupDrawable’ throws an exception...
xwayland-24.1.9/Xext/shm.c:862:14: danger: ‘drawables’ leaks here; was allocated at [(21)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/20)
#  860|       drawables[0] = pDraw;
#  861|       FOR_NSCREENS_FORWARD_SKIP(i) {
#  862|->         rc = dixLookupDrawable(drawables + i, draw->info[i].id, client, 0,
#  863|                                  DixReadAccess);
#  864|           if (rc != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def82]
xwayland-24.1.9/Xext/shm.c:870:9: warning[-Wanalyzer-malloc-leak]: leak of ‘drawables’
xwayland-24.1.9/Xext/shm.c:792:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:794:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:794:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:799:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:801:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:804:13: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:804:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:807:36: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:808:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:811:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:811:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:823:12: branch_false: following ‘false’ branch (when ‘x >= 0’)...
xwayland-24.1.9/Xext/shm.c:824:25: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:824:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:824:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:843:8: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:854:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:856:17: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:856:17: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:857:8: branch_false: following ‘false’ branch (when ‘drawables’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:860:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:861:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:861:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:869:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:870:18: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:870:9: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/shm.c:870:9: danger: ‘drawables’ leaks here; was allocated at [(21)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/20)
#  868|       }
#  869|       FOR_NSCREENS_FORWARD(i) {
#  870|->         drawables[i]->pScreen->SourceValidate(drawables[i], 0, 0,
#  871|                                                 drawables[i]->width,
#  872|                                                 drawables[i]->height,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def83]
xwayland-24.1.9/Xext/shm.c:880:19: warning[-Wanalyzer-malloc-leak]: leak of ‘drawables’
xwayland-24.1.9/Xext/shm.c:792:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:794:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:794:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:799:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:801:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:804:13: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:804:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:807:36: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:808:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:811:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:811:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:823:12: branch_false: following ‘false’ branch (when ‘x >= 0’)...
xwayland-24.1.9/Xext/shm.c:824:25: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:824:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:824:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:843:8: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:854:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:856:17: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:856:17: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:857:8: branch_false: following ‘false’ branch (when ‘drawables’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:860:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:861:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:861:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:880:19: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:880:19: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:880:19: throw: if ‘FindWindowWithOptional’ throws an exception...
xwayland-24.1.9/Xext/shm.c:880:19: danger: ‘drawables’ leaks here; was allocated at [(21)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/20)
#  878|           .sequenceNumber = client->sequence,
#  879|           .length = 0,
#  880|->         .visual = wVisual(((WindowPtr) pDraw)),
#  881|           .depth = pDraw->depth
#  882|       };

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
xwayland-24.1.9/Xext/shm.c:889:9: warning[-Wanalyzer-malloc-leak]: leak of ‘drawables’
xwayland-24.1.9/Xext/shm.c:792:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:794:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:794:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:799:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:801:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:804:13: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:804:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:807:36: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:808:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:811:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:811:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:823:12: branch_false: following ‘false’ branch (when ‘x >= 0’)...
xwayland-24.1.9/Xext/shm.c:824:25: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:824:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:824:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:843:8: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:854:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:856:17: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:856:17: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:857:8: branch_false: following ‘false’ branch (when ‘drawables’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:860:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:861:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:861:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:886:8: branch_false: following ‘false’ branch (when ‘length != 0’)...
xwayland-24.1.9/Xext/shm.c:888:13: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:888:13: branch_true: following ‘true’ branch (when ‘format == 2’)...
xwayland-24.1.9/Xext/shm.c:889:9: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:889:9: throw: if ‘XineramaGetImageData’ throws an exception...
xwayland-24.1.9/Xext/shm.c:889:9: danger: ‘drawables’ leaks here; was allocated at [(21)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/20)
#  887|       }
#  888|       else if (format == ZPixmap) {
#  889|->         XineramaGetImageData(drawables, x, y, w, h, format, planemask,
#  890|                                shmdesc->addr + stuff->offset,
#  891|                                widthBytesLine, isRoot);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def85]
xwayland-24.1.9/Xext/shm.c:898:17: warning[-Wanalyzer-malloc-leak]: leak of ‘drawables’
xwayland-24.1.9/Xext/shm.c:792:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:794:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:794:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:799:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:801:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:804:13: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:804:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:807:36: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:808:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:811:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:811:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:823:12: branch_false: following ‘false’ branch (when ‘x >= 0’)...
xwayland-24.1.9/Xext/shm.c:824:25: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:824:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:824:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:843:8: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:854:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:856:17: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:856:17: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:857:8: branch_false: following ‘false’ branch (when ‘drawables’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:860:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:861:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:861:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:886:8: branch_false: following ‘false’ branch (when ‘length != 0’)...
xwayland-24.1.9/Xext/shm.c:888:13: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:888:13: branch_false: following ‘false’ branch (when ‘format != 2’)...
xwayland-24.1.9/Xext/shm.c:895:18: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:896:16: branch_true: following ‘true’ branch (when ‘plane != 0’)...
xwayland-24.1.9/Xext/shm.c:897:17: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:898:17: throw: if ‘XineramaGetImageData’ throws an exception...
xwayland-24.1.9/Xext/shm.c:898:17: danger: ‘drawables’ leaks here; was allocated at [(21)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/20)
#  896|           for (; plane; plane >>= 1) {
#  897|               if (planemask & plane) {
#  898|->                 XineramaGetImageData(drawables, x, y, w, h,
#  899|                                        format, plane, shmdesc->addr + length,
#  900|                                        widthBytesLine, isRoot);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def86]
xwayland-24.1.9/Xext/shm.c:991:16: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/Xext/shm.c:919:1: enter_function: entry to ‘ProcPanoramiXShmCreatePixmap’
xwayland-24.1.9/Xext/shm.c:933:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:934:26: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:935:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:937:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:937:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:938:36: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:940:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:943:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:943:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:948:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:952:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:955:8: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:974:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:976:20: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:976:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:976:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:979:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:985:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:988:9: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:990:23: call_function: calling ‘dixLookupPrivate’ from ‘ProcPanoramiXShmCreatePixmap’
xwayland-24.1.9/Xext/shm.c:990:23: return_function: returning to ‘ProcPanoramiXShmCreatePixmap’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xext/shm.c:991:16: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/shm.c:991:16: danger: ‘newPix’ leaks here; was allocated at [(18)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/17)
#  989|   
#  990|           screen_priv = ShmGetScreenPriv(pScreen);
#  991|->         pMap = (*screen_priv->shmFuncs->CreatePixmap) (pScreen,
#  992|                                                          stuff->width,
#  993|                                                          stuff->height,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
xwayland-24.1.9/Xext/shm.c:999:22: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/Xext/shm.c:919:1: enter_function: entry to ‘ProcPanoramiXShmCreatePixmap’
xwayland-24.1.9/Xext/shm.c:933:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:934:26: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:935:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:937:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:937:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:938:36: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:940:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:943:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:943:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:948:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:952:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:955:8: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:974:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:976:20: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:976:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:976:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:979:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:985:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:988:9: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:990:23: call_function: calling ‘dixLookupPrivate’ from ‘ProcPanoramiXShmCreatePixmap’
xwayland-24.1.9/Xext/shm.c:990:23: return_function: returning to ‘ProcPanoramiXShmCreatePixmap’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xext/shm.c:998:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:999:22: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:999:22: throw: if ‘XaceHook’ throws an exception...
xwayland-24.1.9/Xext/shm.c:999:22: danger: ‘newPix’ leaks here; was allocated at [(18)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/17)
#  997|   
#  998|           if (pMap) {
#  999|->             result = XaceHook(XACE_RESOURCE_ACCESS, client, stuff->pid,
# 1000|                                 RT_PIXMAP, pMap, RT_NONE, NULL, DixCreateAccess);
# 1001|               if (result != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
xwayland-24.1.9/Xext/shm.c:1002:17: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/Xext/shm.c:919:1: enter_function: entry to ‘ProcPanoramiXShmCreatePixmap’
xwayland-24.1.9/Xext/shm.c:933:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:934:26: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:935:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:937:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:937:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:938:36: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:940:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:943:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:943:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:948:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:952:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:955:8: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:974:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:976:20: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:976:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:976:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:979:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:985:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:988:9: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:990:23: call_function: calling ‘dixLookupPrivate’ from ‘ProcPanoramiXShmCreatePixmap’
xwayland-24.1.9/Xext/shm.c:990:23: return_function: returning to ‘ProcPanoramiXShmCreatePixmap’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xext/shm.c:998:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:999:22: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:1001:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:1002:22: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:1002:17: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/shm.c:1002:17: danger: ‘newPix’ leaks here; was allocated at [(18)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/17)
# 1000|                                 RT_PIXMAP, pMap, RT_NONE, NULL, DixCreateAccess);
# 1001|               if (result != Success) {
# 1002|->                 pDraw->pScreen->DestroyPixmap(pMap);
# 1003|                   break;
# 1004|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
xwayland-24.1.9/Xext/shm.c:1009:18: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/Xext/shm.c:919:1: enter_function: entry to ‘ProcPanoramiXShmCreatePixmap’
xwayland-24.1.9/Xext/shm.c:933:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:934:26: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:935:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:937:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:937:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:938:36: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:940:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:943:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:943:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:948:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:952:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:955:8: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:974:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:976:20: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:976:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:976:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:979:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:985:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:988:9: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:990:23: call_function: calling ‘dixLookupPrivate’ from ‘ProcPanoramiXShmCreatePixmap’
xwayland-24.1.9/Xext/shm.c:990:23: return_function: returning to ‘ProcPanoramiXShmCreatePixmap’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xext/shm.c:998:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:999:22: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:1001:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1005:13: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1005:13: call_function: calling ‘dixSetPrivate’ from ‘ProcPanoramiXShmCreatePixmap’
xwayland-24.1.9/Xext/shm.c:1005:13: return_function: returning to ‘ProcPanoramiXShmCreatePixmap’ from ‘dixSetPrivate’
xwayland-24.1.9/Xext/shm.c:1007:43: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:1007:43: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:1009:18: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/shm.c:1009:18: danger: ‘newPix’ leaks here; was allocated at [(18)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/17)
# 1007|               pMap->drawable.serialNumber = NEXT_SERIAL_NUMBER;
# 1008|               pMap->drawable.id = newPix->info[j].id;
# 1009|->             if (!AddResource(newPix->info[j].id, RT_PIXMAP, (void *) pMap)) {
# 1010|                   result = BadAlloc;
# 1011|                   break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
xwayland-24.1.9/Xext/shm.c:1026:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/Xext/shm.c:933:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:934:26: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:935:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:937:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:937:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:938:36: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:940:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:943:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:943:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:948:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:952:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:955:8: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:974:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:976:20: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:976:20: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:976:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:979:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1020:8: branch_false: following ‘false’ branch (when ‘result == 0’)...
xwayland-24.1.9/Xext/shm.c:1026:9: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1026:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/shm.c:1026:9: danger: ‘newPix’ leaks here; was allocated at [(17)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/16)
# 1024|       }
# 1025|       else
# 1026|->         AddResource(stuff->pid, XRT_PIXMAP, newPix);
# 1027|   
# 1028|       return result;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
xwayland-24.1.9/Xext/shm.c:1180:5: warning[-Wanalyzer-malloc-leak]: leak of ‘shmdesc’
xwayland-24.1.9/Xext/shm.c:1154:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1155:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1155:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1156:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1156:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1160:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1161:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1164:9: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1164:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1169:15: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:1170:8: branch_false: following ‘false’ branch (when ‘shmdesc’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:1174:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1180:5: throw: if ‘close’ throws an exception...
xwayland-24.1.9/Xext/shm.c:1180:5: danger: ‘shmdesc’ leaks here; was allocated at [(11)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/10)
# 1178|                            fd, 0);
# 1179|   
# 1180|->     close(fd);
# 1181|       if (shmdesc->addr == ((char *) -1)) {
# 1182|           free(shmdesc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
xwayland-24.1.9/Xext/shm.c:1191:25: warning[-Wanalyzer-malloc-leak]: leak of ‘shmdesc’
xwayland-24.1.9/Xext/shm.c:1154:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1155:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1155:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1156:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1156:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1160:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1161:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1164:9: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1164:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1169:15: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:1170:8: branch_false: following ‘false’ branch (when ‘shmdesc’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:1174:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1181:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1186:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1191:25: throw: if ‘busfault_register_mmap’ throws an exception...
xwayland-24.1.9/Xext/shm.c:1191:25: danger: ‘shmdesc’ leaks here; was allocated at [(11)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/10)
# 1189|       shmdesc->resource = stuff->shmseg;
# 1190|   
# 1191|->     shmdesc->busfault = busfault_register_mmap(shmdesc->addr, shmdesc->size, ShmBusfaultNotify, shmdesc);
# 1192|       if (!shmdesc->busfault) {
# 1193|           munmap(shmdesc->addr, shmdesc->size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
xwayland-24.1.9/Xext/shm.c:1298:9: warning[-Wanalyzer-malloc-leak]: leak of ‘shmdesc’
xwayland-24.1.9/Xext/shm.c:1273:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1274:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1274:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1275:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1275:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1279:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1280:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1282:23: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1282:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1286:15: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1286:15: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:1287:8: branch_false: following ‘false’ branch (when ‘shmdesc’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:1291:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1297:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/shm.c:1298:9: branch_true: ...to here
xwayland-24.1.9/Xext/shm.c:1298:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/Xext/shm.c:1298:9: danger: ‘shmdesc’ leaks here; was allocated at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
# 1296|   
# 1297|       if (shmdesc->addr == ((char *) -1)) {
# 1298|->         close(fd);
# 1299|           free(shmdesc);
# 1300|           return BadAccess;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
xwayland-24.1.9/Xext/shm.c:1307:25: warning[-Wanalyzer-malloc-leak]: leak of ‘shmdesc’
xwayland-24.1.9/Xext/shm.c:1273:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1274:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1274:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1275:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1275:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1279:10: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1280:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1282:23: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1282:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1286:15: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1286:15: acquire_memory: allocated here
xwayland-24.1.9/Xext/shm.c:1287:8: branch_false: following ‘false’ branch (when ‘shmdesc’ is non-NULL)...
xwayland-24.1.9/Xext/shm.c:1291:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1297:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/shm.c:1303:5: branch_false: ...to here
xwayland-24.1.9/Xext/shm.c:1307:25: throw: if ‘busfault_register_mmap’ throws an exception...
xwayland-24.1.9/Xext/shm.c:1307:25: danger: ‘shmdesc’ leaks here; was allocated at [(11)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/10)
# 1305|       shmdesc->size = stuff->size;
# 1306|   
# 1307|->     shmdesc->busfault = busfault_register_mmap(shmdesc->addr, shmdesc->size, ShmBusfaultNotify, shmdesc);
# 1308|       if (!shmdesc->busfault) {
# 1309|           close(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
xwayland-24.1.9/Xext/sleepuntil.c:92:20: warning[-Wanalyzer-malloc-leak]: leak of ‘pRequest’
xwayland-24.1.9/Xext/sleepuntil.c:87:16: acquire_memory: allocated here
xwayland-24.1.9/Xext/sleepuntil.c:88:8: branch_false: following ‘false’ branch (when ‘pRequest’ is non-NULL)...
xwayland-24.1.9/Xext/sleepuntil.c:90:5: branch_false: ...to here
xwayland-24.1.9/Xext/sleepuntil.c:92:20: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/Xext/sleepuntil.c:92:20: danger: ‘pRequest’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   90|       pRequest->pClient = client;
#   91|       pRequest->revive = *revive;
#   92|->     pRequest->id = FakeClientID(client->index);
#   93|       pRequest->closure = closure;
#   94|       if (!BlockHandlerRegistered) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
xwayland-24.1.9/Xext/sleepuntil.c:95:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pRequest’
xwayland-24.1.9/Xext/sleepuntil.c:87:16: acquire_memory: allocated here
xwayland-24.1.9/Xext/sleepuntil.c:88:8: branch_false: following ‘false’ branch (when ‘pRequest’ is non-NULL)...
xwayland-24.1.9/Xext/sleepuntil.c:90:5: branch_false: ...to here
xwayland-24.1.9/Xext/sleepuntil.c:94:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/sleepuntil.c:95:14: branch_true: ...to here
xwayland-24.1.9/Xext/sleepuntil.c:95:14: throw: if ‘RegisterBlockAndWakeupHandlers’ throws an exception...
xwayland-24.1.9/Xext/sleepuntil.c:95:14: danger: ‘pRequest’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   93|       pRequest->closure = closure;
#   94|       if (!BlockHandlerRegistered) {
#   95|->         if (!RegisterBlockAndWakeupHandlers(SertafiedBlockHandler,
#   96|                                               SertafiedWakeupHandler,
#   97|                                               (void *) 0)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def97]
xwayland-24.1.9/Xext/sleepuntil.c:104:10: warning[-Wanalyzer-malloc-leak]: leak of ‘pRequest’
xwayland-24.1.9/Xext/sleepuntil.c:87:16: acquire_memory: allocated here
xwayland-24.1.9/Xext/sleepuntil.c:88:8: branch_false: following ‘false’ branch (when ‘pRequest’ is non-NULL)...
xwayland-24.1.9/Xext/sleepuntil.c:90:5: branch_false: ...to here
xwayland-24.1.9/Xext/sleepuntil.c:104:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/sleepuntil.c:104:10: danger: ‘pRequest’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  102|       }
#  103|       pRequest->notifyFunc = 0;
#  104|->     if (!AddResource(pRequest->id, SertafiedResType, (void *) pRequest))
#  105|           return FALSE;
#  106|       if (!notifyFunc)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def98]
xwayland-24.1.9/Xext/sync.c:780:27: warning[-Wanalyzer-malloc-leak]: leak of ‘pClients’
xwayland-24.1.9/Xext/sync.c:2274:1: enter_function: entry to ‘SProcSyncChangeAlarm’
xwayland-24.1.9/Xext/sync.c:2278:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/sync.c:2279:5: branch_false: ...to here
xwayland-24.1.9/Xext/sync.c:2282:12: call_function: calling ‘ProcSyncChangeAlarm’ from ‘SProcSyncChangeAlarm’
#  778|        */
#  779|   
#  780|->     pClients->delete_id = FakeClientID(client->index);
#  781|   
#  782|       /* link it into list after we know all the allocations succeed */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def99]
xwayland-24.1.9/Xext/sync.c:924:10: warning[-Wanalyzer-malloc-leak]: leak of ‘pSync’
xwayland-24.1.9/Xext/sync.c:2633:1: enter_function: entry to ‘SyncInitServerTime’
xwayland-24.1.9/Xext/sync.c:2638:25: call_function: calling ‘SyncCreateSystemCounter’ from ‘SyncInitServerTime’
#  922|       pSync->initialized = FALSE;
#  923|   
#  924|->     if (!AddResource(id, resType, (void *) pSync))
#  925|           return NULL;
#  926|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
xwayland-24.1.9/Xext/sync.c:1526:37: warning[-Wanalyzer-malloc-leak]: leak of ‘pAwaitUnion’
xwayland-24.1.9/Xext/sync.c:2387:1: enter_function: entry to ‘SProcSyncAwaitFence’
xwayland-24.1.9/Xext/sync.c:2391:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/sync.c:2392:5: branch_false: ...to here
xwayland-24.1.9/Xext/sync.c:2394:12: call_function: calling ‘ProcSyncAwaitFence’ from ‘SProcSyncAwaitFence’
# 1524|       /* first item is the header, remainder are real wait conditions */
# 1525|   
# 1526|->     pAwaitUnion->header.delete_id = FakeClientID(client->index);
# 1527|       pAwaitUnion->header.client = client;
# 1528|       pAwaitUnion->header.num_waitconditions = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
xwayland-24.1.9/Xext/sync.c:1530:10: warning[-Wanalyzer-malloc-leak]: leak of ‘pAwaitUnion’
xwayland-24.1.9/Xext/sync.c:2387:1: enter_function: entry to ‘SProcSyncAwaitFence’
xwayland-24.1.9/Xext/sync.c:2391:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/sync.c:2392:5: branch_false: ...to here
xwayland-24.1.9/Xext/sync.c:2394:12: call_function: calling ‘ProcSyncAwaitFence’ from ‘SProcSyncAwaitFence’
# 1528|       pAwaitUnion->header.num_waitconditions = 0;
# 1529|   
# 1530|->     if (!AddResource(pAwaitUnion->header.delete_id, RTAwait, pAwaitUnion))
# 1531|           return NULL;
# 1532|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
xwayland-24.1.9/Xext/vidmode.c:580:13: warning[-Wanalyzer-malloc-leak]: leak of ‘mode’
xwayland-24.1.9/Xext/vidmode.c:1739:1: enter_function: entry to ‘SProcVidModeAddModeLine’
xwayland-24.1.9/Xext/vidmode.c:1746:11: call_function: calling ‘ClientMajorVersion’ from ‘SProcVidModeAddModeLine’
xwayland-24.1.9/Xext/vidmode.c:1746:11: return_function: returning to ‘SProcVidModeAddModeLine’ from ‘ClientMajorVersion’
xwayland-24.1.9/Xext/vidmode.c:1749:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/vidmode.c:1750:9: branch_false: ...to here
xwayland-24.1.9/Xext/vidmode.c:1780:12: call_function: calling ‘ProcVidModeAddModeLine’ from ‘SProcVidModeAddModeLine’
#  578|   
#  579|       /* Check that the mode is consistent with the monitor specs */
#  580|->     switch (pVidMode->CheckModeForMonitor(pScreen, mode)) {
#  581|       case MODE_OK:
#  582|           break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
xwayland-24.1.9/Xext/vidmode.c:813:5: warning[-Wanalyzer-malloc-leak]: leak of ‘VidModeCreateMode()’
xwayland-24.1.9/Xext/vidmode.c:1829:1: enter_function: entry to ‘SProcVidModeModModeLine’
xwayland-24.1.9/Xext/vidmode.c:1836:11: call_function: calling ‘ClientMajorVersion’ from ‘SProcVidModeModModeLine’
xwayland-24.1.9/Xext/vidmode.c:1836:11: return_function: returning to ‘SProcVidModeModModeLine’ from ‘ClientMajorVersion’
xwayland-24.1.9/Xext/vidmode.c:1839:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/vidmode.c:1840:9: branch_false: ...to here
xwayland-24.1.9/Xext/vidmode.c:1870:12: call_function: calling ‘ProcVidModeModModeLine’ from ‘SProcVidModeModModeLine’
#  811|       if (modetmp == NULL)
#  812|           return BadAlloc;
#  813|->     VidModeCopyMode(mode, modetmp);
#  814|   
#  815|       VidModeSetModeValue(modetmp, VIDMODE_H_DISPLAY, stuff->hdisplay);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
xwayland-24.1.9/Xext/vidmode.c:958:5: warning[-Wanalyzer-malloc-leak]: leak of ‘VidModeCreateMode()’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1665:16: call_function: calling ‘ProcVidModeValidateModeLine’ from ‘ProcVidModeDispatch’
#  956|       if (modetmp == NULL)
#  957|           return BadAlloc;
#  958|->     VidModeCopyMode(mode, modetmp);
#  959|   
#  960|       VidModeSetModeValue(modetmp, VIDMODE_H_DISPLAY, stuff->hdisplay);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
xwayland-24.1.9/Xext/vidmode.c:1219:41: warning[-Wanalyzer-malloc-leak]: leak of ‘hsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1217|   
# 1218|       for (i = 0; i < nHsync; i++) {
# 1219|->         hsyncdata[i] = (unsigned short) (pVidMode->GetMonitorValue(pScreen,
# 1220|                                                                      VIDMODE_MON_HSYNC_LO,
# 1221|                                                                      i)).f |

Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
xwayland-24.1.9/Xext/vidmode.c:1219:41: warning[-Wanalyzer-malloc-leak]: leak of ‘vsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1217|   
# 1218|       for (i = 0; i < nHsync; i++) {
# 1219|->         hsyncdata[i] = (unsigned short) (pVidMode->GetMonitorValue(pScreen,
# 1220|                                                                      VIDMODE_MON_HSYNC_LO,
# 1221|                                                                      i)).f |

Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
xwayland-24.1.9/Xext/vidmode.c:1223:21: warning[-Wanalyzer-malloc-leak]: leak of ‘hsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1221|                                                                      i)).f |
# 1222|               (unsigned
# 1223|->              short) (pVidMode->GetMonitorValue(pScreen, VIDMODE_MON_HSYNC_HI,
# 1224|                                                  i)).f << 16;
# 1225|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def108]
xwayland-24.1.9/Xext/vidmode.c:1223:21: warning[-Wanalyzer-malloc-leak]: leak of ‘vsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1221|                                                                      i)).f |
# 1222|               (unsigned
# 1223|->              short) (pVidMode->GetMonitorValue(pScreen, VIDMODE_MON_HSYNC_HI,
# 1224|                                                  i)).f << 16;
# 1225|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
xwayland-24.1.9/Xext/vidmode.c:1227:41: warning[-Wanalyzer-malloc-leak]: leak of ‘hsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1225|       }
# 1226|       for (i = 0; i < nVrefresh; i++) {
# 1227|->         vsyncdata[i] = (unsigned short) (pVidMode->GetMonitorValue(pScreen,
# 1228|                                                                      VIDMODE_MON_VREFRESH_LO,
# 1229|                                                                      i)).f |

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
xwayland-24.1.9/Xext/vidmode.c:1227:41: warning[-Wanalyzer-malloc-leak]: leak of ‘vsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1225|       }
# 1226|       for (i = 0; i < nVrefresh; i++) {
# 1227|->         vsyncdata[i] = (unsigned short) (pVidMode->GetMonitorValue(pScreen,
# 1228|                                                                      VIDMODE_MON_VREFRESH_LO,
# 1229|                                                                      i)).f |

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
xwayland-24.1.9/Xext/vidmode.c:1231:21: warning[-Wanalyzer-malloc-leak]: leak of ‘hsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1229|                                                                      i)).f |
# 1230|               (unsigned
# 1231|->              short) (pVidMode->GetMonitorValue(pScreen, VIDMODE_MON_VREFRESH_HI,
# 1232|                                                  i)).f << 16;
# 1233|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
xwayland-24.1.9/Xext/vidmode.c:1231:21: warning[-Wanalyzer-malloc-leak]: leak of ‘vsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1229|                                                                      i)).f |
# 1230|               (unsigned
# 1231|->              short) (pVidMode->GetMonitorValue(pScreen, VIDMODE_MON_VREFRESH_HI,
# 1232|                                                  i)).f << 16;
# 1233|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
xwayland-24.1.9/Xext/vidmode.c:1239:5: warning[-Wanalyzer-malloc-leak]: leak of ‘hsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1237|           swapl(&rep.length);
# 1238|       }
# 1239|->     WriteToClient(client, SIZEOF(xXF86VidModeGetMonitorReply), &rep);
# 1240|       client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
# 1241|       WriteSwappedDataToClient(client, nHsync * sizeof(CARD32), hsyncdata);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def114]
xwayland-24.1.9/Xext/vidmode.c:1239:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1237|           swapl(&rep.length);
# 1238|       }
# 1239|->     WriteToClient(client, SIZEOF(xXF86VidModeGetMonitorReply), &rep);
# 1240|       client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
# 1241|       WriteSwappedDataToClient(client, nHsync * sizeof(CARD32), hsyncdata);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def115]
xwayland-24.1.9/Xext/vidmode.c:1241:5: warning[-Wanalyzer-malloc-leak]: leak of ‘hsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1239|       WriteToClient(client, SIZEOF(xXF86VidModeGetMonitorReply), &rep);
# 1240|       client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
# 1241|->     WriteSwappedDataToClient(client, nHsync * sizeof(CARD32), hsyncdata);
# 1242|       WriteSwappedDataToClient(client, nVrefresh * sizeof(CARD32), vsyncdata);
# 1243|       if (rep.vendorLength)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
xwayland-24.1.9/Xext/vidmode.c:1241:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1239|       WriteToClient(client, SIZEOF(xXF86VidModeGetMonitorReply), &rep);
# 1240|       client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
# 1241|->     WriteSwappedDataToClient(client, nHsync * sizeof(CARD32), hsyncdata);
# 1242|       WriteSwappedDataToClient(client, nVrefresh * sizeof(CARD32), vsyncdata);
# 1243|       if (rep.vendorLength)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def117]
xwayland-24.1.9/Xext/vidmode.c:1242:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1240|       client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
# 1241|       WriteSwappedDataToClient(client, nHsync * sizeof(CARD32), hsyncdata);
# 1242|->     WriteSwappedDataToClient(client, nVrefresh * sizeof(CARD32), vsyncdata);
# 1243|       if (rep.vendorLength)
# 1244|           WriteToClient(client, rep.vendorLength,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
xwayland-24.1.9/Xext/vidmode.c:1244:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1242|       WriteSwappedDataToClient(client, nVrefresh * sizeof(CARD32), vsyncdata);
# 1243|       if (rep.vendorLength)
# 1244|->         WriteToClient(client, rep.vendorLength,
# 1245|                    (pVidMode->GetMonitorValue(pScreen, VIDMODE_MON_VENDOR, 0)).ptr);
# 1246|       if (rep.modelLength)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
xwayland-24.1.9/Xext/vidmode.c:1245:18: warning[-Wanalyzer-malloc-leak]: leak of ‘vsyncdata’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1661:16: call_function: calling ‘ProcVidModeGetMonitor’ from ‘ProcVidModeDispatch’
# 1243|       if (rep.vendorLength)
# 1244|           WriteToClient(client, rep.vendorLength,
# 1245|->                  (pVidMode->GetMonitorValue(pScreen, VIDMODE_MON_VENDOR, 0)).ptr);
# 1246|       if (rep.modelLength)
# 1247|           WriteToClient(client, rep.modelLength,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def120]
xwayland-24.1.9/Xext/vidmode.c:1363:14: warning[-Wanalyzer-malloc-leak]: leak of ‘Clocks’
xwayland-24.1.9/Xext/vidmode.c:1652:1: enter_function: entry to ‘ProcVidModeDispatch’
xwayland-24.1.9/Xext/vidmode.c:1669:16: call_function: calling ‘ProcVidModeGetDotClocks’ from ‘ProcVidModeDispatch’
# 1361|           if (!Clocks)
# 1362|               return BadValue;
# 1363|->         if (!pVidMode->GetClocks(pScreen, Clocks)) {
# 1364|               free(Clocks);
# 1365|               return BadValue;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
xwayland-24.1.9/Xext/vidmode.c:1381:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘Clocks’
xwayland-24.1.9/Xext/vidmode.c:1983:1: enter_function: entry to ‘SProcVidModeGetDotClocks’
xwayland-24.1.9/Xext/vidmode.c:1987:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/vidmode.c:1988:5: branch_false: ...to here
xwayland-24.1.9/Xext/vidmode.c:1989:12: call_function: calling ‘ProcVidModeGetDotClocks’ from ‘SProcVidModeGetDotClocks’
# 1379|       if (!ClockProg) {
# 1380|           for (n = 0; n < numClocks; n++) {
# 1381|->             dotclock = Clocks[n];
# 1382|               if (client->swapped) {
# 1383|                   WriteSwappedDataToClient(client, 4, (char *) &dotclock);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
xwayland-24.1.9/Xext/vidmode.c:1533:14: warning[-Wanalyzer-malloc-leak]: leak of ‘ramp’
xwayland-24.1.9/Xext/vidmode.c:2043:1: enter_function: entry to ‘SProcVidModeGetGammaRamp’
xwayland-24.1.9/Xext/vidmode.c:2047:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/vidmode.c:2048:5: branch_false: ...to here
xwayland-24.1.9/Xext/vidmode.c:2050:12: call_function: calling ‘ProcVidModeGetGammaRamp’ from ‘SProcVidModeGetGammaRamp’
# 1531|           ramplen = length * 3 * sizeof(CARD16);
# 1532|   
# 1533|->         if (!pVidMode->GetGammaRamp(pScreen, stuff->size,
# 1534|                                    ramp, ramp + length, ramp + (length * 2))) {
# 1535|               free(ramp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
xwayland-24.1.9/Xext/xace.c:280:16: warning[-Wanalyzer-malloc-leak]: leak of ‘pRects’
xwayland-24.1.9/Xext/xace.c:228:1: enter_function: entry to ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:248:14: call_function: inlined call to ‘RegionNumRects’ from ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:261:18: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:261:18: acquire_memory: allocated here
xwayland-24.1.9/Xext/xace.c:262:12: branch_false: following ‘false’ branch (when ‘pRects’ is non-NULL)...
xwayland-24.1.9/Xext/xace.c:266:21: call_function: inlined call to ‘RegionRects’ from ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:266:9: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:266:56: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xace.c:267:27: branch_true: ...to here
xwayland-24.1.9/Xext/xace.c:275:12: branch_false: following ‘false’ branch (when ‘format != 2’)...
xwayland-24.1.9/Xext/xace.c:280:16: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:280:16: throw: if ‘GetScratchPixmapHeader’ throws an exception...
xwayland-24.1.9/Xext/xace.c:280:16: danger: ‘pRects’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  278|           }
#  279|   
#  280|->         pPix = GetScratchPixmapHeader(pDraw->pScreen, w, h,
#  281|                                         depth, bitsPerPixel,
#  282|                                         widthBytesLine, (void *) pBuf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
xwayland-24.1.9/Xext/xace.c:288:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pRects’
xwayland-24.1.9/Xext/xace.c:228:1: enter_function: entry to ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:248:14: call_function: inlined call to ‘RegionNumRects’ from ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:261:18: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:261:18: acquire_memory: allocated here
xwayland-24.1.9/Xext/xace.c:262:12: branch_false: following ‘false’ branch (when ‘pRects’ is non-NULL)...
xwayland-24.1.9/Xext/xace.c:266:21: call_function: inlined call to ‘RegionRects’ from ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:266:9: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:266:56: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xace.c:267:27: branch_true: ...to here
xwayland-24.1.9/Xext/xace.c:275:12: branch_false: following ‘false’ branch (when ‘format != 2’)...
xwayland-24.1.9/Xext/xace.c:280:16: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:283:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xace.c:288:22: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:288:22: throw: if ‘GetScratchGC’ throws an exception...
xwayland-24.1.9/Xext/xace.c:288:22: danger: ‘pRects’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  286|           }
#  287|   
#  288|->         pScratchGC = GetScratchGC(depth, pPix->drawable.pScreen);
#  289|           if (!pScratchGC) {
#  290|               failed = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def125]
xwayland-24.1.9/Xext/xace.c:294:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pRects’
xwayland-24.1.9/Xext/xace.c:228:1: enter_function: entry to ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:248:14: call_function: inlined call to ‘RegionNumRects’ from ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:261:18: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:261:18: acquire_memory: allocated here
xwayland-24.1.9/Xext/xace.c:262:12: branch_false: following ‘false’ branch (when ‘pRects’ is non-NULL)...
xwayland-24.1.9/Xext/xace.c:266:21: call_function: inlined call to ‘RegionRects’ from ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:266:9: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:266:56: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xace.c:267:27: branch_true: ...to here
xwayland-24.1.9/Xext/xace.c:275:12: branch_false: following ‘false’ branch (when ‘format != 2’)...
xwayland-24.1.9/Xext/xace.c:280:16: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:283:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xace.c:288:22: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:289:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xace.c:294:20: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:294:9: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/Xext/xace.c:294:9: danger: ‘pRects’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  292|           }
#  293|   
#  294|->         ValidateGC(&pPix->drawable, pScratchGC);
#  295|           (*pScratchGC->ops->PolyFillRect) (&pPix->drawable,
#  296|                                             pScratchGC, nRects, pRects);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def126]
xwayland-24.1.9/Xext/xace.c:295:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pRects’
xwayland-24.1.9/Xext/xace.c:228:1: enter_function: entry to ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:248:14: call_function: inlined call to ‘RegionNumRects’ from ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:261:18: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:261:18: acquire_memory: allocated here
xwayland-24.1.9/Xext/xace.c:262:12: branch_false: following ‘false’ branch (when ‘pRects’ is non-NULL)...
xwayland-24.1.9/Xext/xace.c:266:21: call_function: inlined call to ‘RegionRects’ from ‘XaceCensorImage’
xwayland-24.1.9/Xext/xace.c:266:9: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:266:56: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xace.c:267:27: branch_true: ...to here
xwayland-24.1.9/Xext/xace.c:275:12: branch_false: following ‘false’ branch (when ‘format != 2’)...
xwayland-24.1.9/Xext/xace.c:280:16: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:283:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xace.c:288:22: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:289:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xace.c:294:20: branch_false: ...to here
xwayland-24.1.9/Xext/xace.c:295:9: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/xace.c:295:9: danger: ‘pRects’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  293|   
#  294|           ValidateGC(&pPix->drawable, pScratchGC);
#  295|->         (*pScratchGC->ops->PolyFillRect) (&pPix->drawable,
#  296|                                             pScratchGC, nRects, pRects);
#  297|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def127]
xwayland-24.1.9/Xext/xcmisc.c:108:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pids’
xwayland-24.1.9/Xext/xcmisc.c:99:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xcmisc.c:101:9: branch_false: ...to here
xwayland-24.1.9/Xext/xcmisc.c:101:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xcmisc.c:104:12: branch_false: ...to here
xwayland-24.1.9/Xext/xcmisc.c:104:12: acquire_memory: allocated here
xwayland-24.1.9/Xext/xcmisc.c:105:8: branch_false: following ‘false’ branch (when ‘pids’ is non-NULL)...
xwayland-24.1.9/Xext/xcmisc.c:108:32: branch_false: ...to here
xwayland-24.1.9/Xext/xcmisc.c:108:13: throw: if ‘GetXIDList’ throws an exception...
xwayland-24.1.9/Xext/xcmisc.c:108:13: danger: ‘pids’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  106|           return BadAlloc;
#  107|       }
#  108|->     count = GetXIDList(client, stuff->count, pids);
#  109|       rep = (xXCMiscGetXIDListReply) {
#  110|           .type = X_Reply,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def128]
xwayland-24.1.9/Xext/xres.c:251:5: warning[-Wanalyzer-malloc-leak]: leak of ‘current_clients’
xwayland-24.1.9/Xext/xres.c:228:23: acquire_memory: allocated here
xwayland-24.1.9/Xext/xres.c:229:8: branch_false: following ‘false’ branch (when ‘current_clients’ is non-NULL)...
xwayland-24.1.9/Xext/xres.c:229:8: branch_false: ...to here
xwayland-24.1.9/Xext/xres.c:251:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/Xext/xres.c:251:5: danger: ‘current_clients’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  249|           swapl(&rep.num_clients);
#  250|       }
#  251|->     WriteToClient(client, sizeof(xXResQueryClientsReply), &rep);
#  252|   
#  253|       if (num_clients) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
xwayland-24.1.9/Xext/xres.c:258:37: warning[-Wanalyzer-malloc-leak]: leak of ‘current_clients’
xwayland-24.1.9/Xext/xres.c:228:23: acquire_memory: allocated here
xwayland-24.1.9/Xext/xres.c:229:8: branch_false: following ‘false’ branch (when ‘current_clients’ is non-NULL)...
xwayland-24.1.9/Xext/xres.c:229:8: branch_false: ...to here
xwayland-24.1.9/Xext/xres.c:253:8: branch_true: following ‘true’ branch (when ‘num_clients != 0’)...
xwayland-24.1.9/Xext/xres.c:253:8: branch_true: ...to here
xwayland-24.1.9/Xext/xres.c:256:21: branch_true: following ‘true’ branch (when ‘num_clients > i’)...
xwayland-24.1.9/Xext/xres.c:257:60: branch_true: ...to here
xwayland-24.1.9/Xext/xres.c:258:37: throw: if ‘ResourceClientBits’ throws an exception...
xwayland-24.1.9/Xext/xres.c:258:37: danger: ‘current_clients’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  256|           for (i = 0; i < num_clients; i++) {
#  257|               scratch.resource_base = clients[current_clients[i]]->clientAsMask;
#  258|->             scratch.resource_mask = RESOURCE_ID_MASK;
#  259|   
#  260|               if (client->swapped) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def130]
xwayland-24.1.9/Xext/xres.c:264:13: warning[-Wanalyzer-malloc-leak]: leak of ‘current_clients’
xwayland-24.1.9/Xext/xres.c:228:23: acquire_memory: allocated here
xwayland-24.1.9/Xext/xres.c:229:8: branch_false: following ‘false’ branch (when ‘current_clients’ is non-NULL)...
xwayland-24.1.9/Xext/xres.c:229:8: branch_false: ...to here
xwayland-24.1.9/Xext/xres.c:253:8: branch_true: following ‘true’ branch (when ‘num_clients != 0’)...
xwayland-24.1.9/Xext/xres.c:253:8: branch_true: ...to here
xwayland-24.1.9/Xext/xres.c:256:21: branch_true: following ‘true’ branch (when ‘num_clients > i’)...
xwayland-24.1.9/Xext/xres.c:257:60: branch_true: ...to here
xwayland-24.1.9/Xext/xres.c:260:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xres.c:264:13: branch_false: ...to here
xwayland-24.1.9/Xext/xres.c:264:13: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/Xext/xres.c:264:13: danger: ‘current_clients’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  262|                   swapl(&scratch.resource_mask);
#  263|               }
#  264|->             WriteToClient(client, sz_xXResClient, &scratch);
#  265|           }
#  266|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def131]
xwayland-24.1.9/Xext/xres.c:318:5: warning[-Wanalyzer-malloc-leak]: leak of ‘counts’
xwayland-24.1.9/Xext/xres.c:1032:1: enter_function: entry to ‘SProcXResQueryClientResources’
xwayland-24.1.9/Xext/xres.c:1035:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xres.c:1036:5: branch_false: ...to here
xwayland-24.1.9/Xext/xres.c:1037:12: call_function: calling ‘ProcXResQueryClientResources’ from ‘SProcXResQueryClientResources’
#  316|       counts = calloc(lastResourceType + 1, sizeof(int));
#  317|   
#  318|->     FindAllClientResources(clients[clientID], ResFindAllRes, counts);
#  319|   
#  320|       num_types = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
xwayland-24.1.9/Xext/xselinux_ext.c:57:25: warning[-Wanalyzer-malloc-leak]: leak of ‘SELinuxCopyContext(stuff + 12, *stuff.context_len)’
xwayland-24.1.9/Xext/xselinux_ext.c:625:1: enter_function: entry to ‘SProcSELinuxDispatch’
xwayland-24.1.9/Xext/xselinux_ext.c:639:16: call_function: calling ‘SProcSELinuxSetDeviceContext’ from ‘SProcSELinuxDispatch’
#   55|   SELinuxCopyContext(char *ptr, unsigned len)
#   56|   {
#   57|->     char *copy = malloc(len + 1);
#   58|   
#   59|       if (!copy)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def133]
xwayland-24.1.9/Xext/xselinux_ext.c:142:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
xwayland-24.1.9/Xext/xselinux_ext.c:625:1: enter_function: entry to ‘SProcSELinuxDispatch’
xwayland-24.1.9/Xext/xselinux_ext.c:635:16: call_function: calling ‘SProcSELinuxSetCreateContext’ from ‘SProcSELinuxDispatch’
#  140|       rc = Success;
#  141|       if (stuff->context_len > 0) {
#  142|->         if (security_check_context_raw(ctx) < 0 ||
#  143|               avc_context_to_sid_raw(ctx, pSid) < 0)
#  144|               rc = BadValue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
xwayland-24.1.9/Xext/xselinux_ext.c:143:13: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx’
xwayland-24.1.9/Xext/xselinux_ext.c:625:1: enter_function: entry to ‘SProcSELinuxDispatch’
xwayland-24.1.9/Xext/xselinux_ext.c:635:16: call_function: calling ‘SProcSELinuxSetCreateContext’ from ‘SProcSELinuxDispatch’
#  141|       if (stuff->context_len > 0) {
#  142|           if (security_check_context_raw(ctx) < 0 ||
#  143|->             avc_context_to_sid_raw(ctx, pSid) < 0)
#  144|               rc = BadValue;
#  145|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
xwayland-24.1.9/Xext/xselinux_ext.c:317:9: warning[-Wanalyzer-malloc-leak]: leak of ‘items’
xwayland-24.1.9/Xext/xselinux_ext.c:445:1: enter_function: entry to ‘ProcSELinuxListSelections’
xwayland-24.1.9/Xext/xselinux_ext.c:458:8: branch_false: following ‘false’ branch (when ‘count != 0’)...
xwayland-24.1.9/Xext/xselinux_ext.c:460:13: branch_false: ...to here
xwayland-24.1.9/Xext/xselinux_ext.c:460:13: acquire_memory: allocated here
xwayland-24.1.9/Xext/xselinux_ext.c:461:8: branch_false: following ‘false’ branch (when ‘items’ is non-NULL)...
xwayland-24.1.9/Xext/xselinux_ext.c:466:5: branch_false: ...to here
xwayland-24.1.9/Xext/xselinux_ext.c:467:36: branch_true: following ‘true’ branch (when ‘pSel’ is non-NULL)...
xwayland-24.1.9/Xext/xselinux_ext.c:468:9: branch_true: ...to here
xwayland-24.1.9/Xext/xselinux_ext.c:469:14: call_function: calling ‘SELinuxPopulateItem’ from ‘ProcSELinuxListSelections’
#  315|       SELinuxObjectRec *data = dixLookupPrivate(privPtr, dataKey);
#  316|   
#  317|->     if (avc_sid_to_context_raw(obj->sid, &i->octx) < 0)
#  318|           return BadValue;
#  319|       if (avc_sid_to_context_raw(data->sid, &i->dctx) < 0)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def136]
xwayland-24.1.9/Xext/xselinux_ext.c:322:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘i’
xwayland-24.1.9/Xext/xselinux_ext.c:625:1: enter_function: entry to ‘SProcSELinuxDispatch’
xwayland-24.1.9/Xext/xselinux_ext.c:661:16: call_function: calling ‘SProcSELinuxListProperties’ from ‘SProcSELinuxDispatch’
#  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): [#def137]
xwayland-24.1.9/Xext/xselinux_ext.c:336:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘items’
xwayland-24.1.9/Xext/xselinux_ext.c:625:1: enter_function: entry to ‘SProcSELinuxDispatch’
xwayland-24.1.9/Xext/xselinux_ext.c:661:16: call_function: calling ‘SProcSELinuxListProperties’ from ‘SProcSELinuxDispatch’
#  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): [#def138]
xwayland-24.1.9/Xext/xselinux_ext.c:358:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘buf’
xwayland-24.1.9/Xext/xselinux_ext.c:445:1: enter_function: entry to ‘ProcSELinuxListSelections’
xwayland-24.1.9/Xext/xselinux_ext.c:458:8: branch_false: following ‘false’ branch (when ‘count != 0’)...
xwayland-24.1.9/Xext/xselinux_ext.c:460:13: branch_false: ...to here
xwayland-24.1.9/Xext/xselinux_ext.c:461:8: branch_false: following ‘false’ branch (when ‘items’ is non-NULL)...
xwayland-24.1.9/Xext/xselinux_ext.c:466:5: branch_false: ...to here
xwayland-24.1.9/Xext/xselinux_ext.c:467:36: branch_true: following ‘true’ branch (when ‘pSel’ is non-NULL)...
xwayland-24.1.9/Xext/xselinux_ext.c:468:9: branch_true: ...to here
xwayland-24.1.9/Xext/xselinux_ext.c:469:14: call_function: calling ‘SELinuxPopulateItem’ from ‘ProcSELinuxListSelections’
xwayland-24.1.9/Xext/xselinux_ext.c:469:14: return_function: returning to ‘ProcSELinuxListSelections’ from ‘SELinuxPopulateItem’
xwayland-24.1.9/Xext/xselinux_ext.c:470:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xselinux_ext.c:474:9: branch_false: ...to here
xwayland-24.1.9/Xext/xselinux_ext.c:467:36: branch_false: following ‘false’ branch (when ‘pSel’ is NULL)...
xwayland-24.1.9/Xext/xselinux_ext.c:477:12: branch_false: ...to here
xwayland-24.1.9/Xext/xselinux_ext.c:477: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): [#def139]
xwayland-24.1.9/Xext/xselinux_ext.c:393:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/Xext/xselinux_ext.c:445:1: enter_function: entry to ‘ProcSELinuxListSelections’
xwayland-24.1.9/Xext/xselinux_ext.c:458:8: branch_true: following ‘true’ branch (when ‘count == 0’)...
xwayland-24.1.9/Xext/xselinux_ext.c:459:16: branch_true: ...to here
xwayland-24.1.9/Xext/xselinux_ext.c:459:16: call_function: calling ‘SELinuxSendItemsToClient’ from ‘ProcSELinuxListSelections’
#  391|       }
#  392|   
#  393|->     WriteToClient(client, sizeof(SELinuxListItemsReply), &rep);
#  394|       WriteToClient(client, size * 4, buf);
#  395|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
xwayland-24.1.9/Xext/xselinux_ext.c:394:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/Xext/xselinux_ext.c:445:1: enter_function: entry to ‘ProcSELinuxListSelections’
xwayland-24.1.9/Xext/xselinux_ext.c:458:8: branch_true: following ‘true’ branch (when ‘count == 0’)...
xwayland-24.1.9/Xext/xselinux_ext.c:459:16: branch_true: ...to here
xwayland-24.1.9/Xext/xselinux_ext.c:459:16: call_function: calling ‘SELinuxSendItemsToClient’ from ‘ProcSELinuxListSelections’
#  392|   
#  393|       WriteToClient(client, sizeof(SELinuxListItemsReply), &rep);
#  394|->     WriteToClient(client, size * 4, buf);
#  395|   
#  396|       /* Free stuff and return */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
xwayland-24.1.9/Xext/xvdisp.c:1002:12: warning[-Wanalyzer-malloc-leak]: leak of ‘offsets’
xwayland-24.1.9/Xext/xvdisp.c:974:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvdisp.c:976:5: branch_false: ...to here
xwayland-24.1.9/Xext/xvdisp.c:976:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvdisp.c:976:5: branch_false: ...to here
xwayland-24.1.9/Xext/xvdisp.c:978:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xvdisp.c:979:13: branch_true: ...to here
xwayland-24.1.9/Xext/xvdisp.c:990:8: branch_false: following ‘false’ branch (when ‘pImage’ is non-NULL)...
xwayland-24.1.9/Xext/xvdisp.c:993:5: branch_false: ...to here
xwayland-24.1.9/Xext/xvdisp.c:995:21: acquire_memory: allocated here
xwayland-24.1.9/Xext/xvdisp.c:995:8: branch_false: following ‘false’ branch (when ‘offsets’ is non-NULL)...
xwayland-24.1.9/Xext/xvdisp.c:997:23: branch_false: ...to here
xwayland-24.1.9/Xext/xvdisp.c:1002:12: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/xvdisp.c:1002:12: danger: ‘offsets’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
# 1000|       height = stuff->height;
# 1001|   
# 1002|->     size = (*pPort->pAdaptor->ddQueryImageAttributes) (pPort, pImage,
# 1003|                                                          &width, &height, offsets,
# 1004|                                                          pitches);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
xwayland-24.1.9/Xext/xvdisp.c:1787:13: warning[-Wanalyzer-malloc-leak]: leak of ‘port’
xwayland-24.1.9/Xext/xvdisp.c:1748:1: enter_function: entry to ‘XineramifyXv’
xwayland-24.1.9/Xext/xvdisp.c:1751:9: call_function: calling ‘dixLookupPrivate’ from ‘XineramifyXv’
xwayland-24.1.9/Xext/xvdisp.c:1751:9: return_function: returning to ‘XineramifyXv’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xext/xvdisp.c:1757:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvdisp.c:1761:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xvdisp.c:1763:33: branch_true: ...to here
xwayland-24.1.9/Xext/xvdisp.c:1776:34: acquire_memory: allocated here
xwayland-24.1.9/Xext/xvdisp.c:1781:13: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xvdisp.c:1782:21: branch_true: ...to here
xwayland-24.1.9/Xext/xvdisp.c:1782:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xvdisp.c:1781:13: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvdisp.c:1787:13: branch_false: ...to here
xwayland-24.1.9/Xext/xvdisp.c:1787:13: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/xvdisp.c:1787:13: danger: ‘port’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
# 1785|                       port->info[k].id = 0;
# 1786|               }
# 1787|->             AddResource(port->info[0].id, XvXRTPort, port);
# 1788|           }
# 1789|       }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def143]
xwayland-24.1.9/Xext/xvdisp.c:1787:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*port.info[0].id’
xwayland-24.1.9/Xext/xvdisp.c:1748:1: enter_function: entry to ‘XineramifyXv’
xwayland-24.1.9/Xext/xvdisp.c:1751:9: call_function: calling ‘dixLookupPrivate’ from ‘XineramifyXv’
xwayland-24.1.9/Xext/xvdisp.c:1751:9: return_function: returning to ‘XineramifyXv’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xext/xvdisp.c:1757:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvdisp.c:1761:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xvdisp.c:1763:33: branch_true: ...to here
xwayland-24.1.9/Xext/xvdisp.c:1775:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xvdisp.c:1776:34: branch_true: ...to here
xwayland-24.1.9/Xext/xvdisp.c:1778:16: branch_false: following ‘false’ branch (when ‘port’ is non-NULL)...
xwayland-24.1.9/Xext/xvdisp.c:1778:16: branch_false: ...to here
xwayland-24.1.9/Xext/xvdisp.c:1781:13: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvdisp.c:1787:13: branch_false: ...to here
xwayland-24.1.9/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-401): [#def144]
xwayland-24.1.9/Xext/xvmain.c:804:14: warning[-Wanalyzer-malloc-leak]: leak of ‘tpn’
xwayland-24.1.9/Xext/xvmain.c:788:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmain.c:793:8: branch_false: ...to here
xwayland-24.1.9/Xext/xvmain.c:799:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xvmain.c:800:21: branch_true: ...to here
xwayland-24.1.9/Xext/xvmain.c:800:21: acquire_memory: allocated here
xwayland-24.1.9/Xext/xvmain.c:800:12: branch_false: following ‘false’ branch (when ‘tpn’ is non-NULL)...
xwayland-24.1.9/Xext/xvmain.c:802:9: branch_false: ...to here
xwayland-24.1.9/Xext/xvmain.c:804:14: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/Xext/xvmain.c:804:14: danger: ‘tpn’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  802|           tpn->next = NULL;
#  803|           tpn->client = NULL;
#  804|->         if (!AddResource(pDraw->id, XvRTVideoNotifyList, tpn))
#  805|               return BadAlloc;
#  806|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def145]
xwayland-24.1.9/Xext/xvmain.c:1083:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rects’
xwayland-24.1.9/Xext/xvmain.c:1056:1: enter_function: entry to ‘XvFillColorKey’
xwayland-24.1.9/Xext/xvmain.c:1061:19: call_function: inlined call to ‘RegionNumRects’ from ‘XvFillColorKey’
xwayland-24.1.9/Xext/xvmain.c:1066:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmain.c:1069:5: branch_false: ...to here
xwayland-24.1.9/Xext/xvmain.c:1074:13: acquire_memory: allocated here
xwayland-24.1.9/Xext/xvmain.c:1075:8: branch_true: following ‘true’ branch (when ‘rects’ is non-NULL)...
xwayland-24.1.9/Xext/xvmain.c:1075:8: branch_true: ...to here
xwayland-24.1.9/Xext/xvmain.c:1076:21: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmain.c:1083:11: branch_false: ...to here
xwayland-24.1.9/Xext/xvmain.c:1083:9: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/xvmain.c:1083:9: danger: ‘rects’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
# 1081|           }
# 1082|   
# 1083|->         (*gc->ops->PolyFillRect) (pDraw, gc, nbox, rects);
# 1084|   
# 1085|           free(rects);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def146]
xwayland-24.1.9/Xext/xvmc.c:250:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
xwayland-24.1.9/Xext/xvmc.c:185:1: enter_function: entry to ‘ProcXvMCCreateContext’
xwayland-24.1.9/Xext/xvmc.c:199:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:201:5: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:201:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:203:20: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:205:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:208:25: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:208:25: call_function: calling ‘dixLookupPrivate’ from ‘ProcXvMCCreateContext’
xwayland-24.1.9/Xext/xvmc.c:208:25: return_function: returning to ‘ProcXvMCCreateContext’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xext/xvmc.c:208:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:208:8: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:211:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xvmc.c:212:32: branch_true: ...to here
xwayland-24.1.9/Xext/xvmc.c:219:8: branch_false: following ‘false’ branch (when ‘adapt_num != -1’)...
xwayland-24.1.9/Xext/xvmc.c:219:8: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:222:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xvmc.c:223:13: branch_true: ...to here
xwayland-24.1.9/Xext/xvmc.c:230:8: branch_false: following ‘false’ branch (when ‘surface’ is non-NULL)...
xwayland-24.1.9/Xext/xvmc.c:233:10: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:233:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:234:10: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:233:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:237:22: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:237:22: acquire_memory: allocated here
xwayland-24.1.9/Xext/xvmc.c:237:8: branch_false: following ‘false’ branch (when ‘pContext’ is non-NULL)...
xwayland-24.1.9/Xext/xvmc.c:241:5: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:250:14: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/xvmc.c:250:14: danger: ‘pContext’ leaks here; was allocated at [(31)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/30)
#  248|       pContext->refcnt = 1;
#  249|   
#  250|->     result = (*adaptor->CreateContext) (pPort, pContext, &dwords, &data);
#  251|   
#  252|       if (result != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
xwayland-24.1.9/Xext/xvmc.c:327:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pSurface’
xwayland-24.1.9/Xext/xvmc.c:299:1: enter_function: entry to ‘ProcXvMCCreateSurface’
xwayland-24.1.9/Xext/xvmc.c:310:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:312:14: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:314:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:317:19: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:317:19: call_function: calling ‘dixLookupPrivate’ from ‘ProcXvMCCreateSurface’
xwayland-24.1.9/Xext/xvmc.c:317:19: return_function: returning to ‘ProcXvMCCreateSurface’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xext/xvmc.c:319:22: acquire_memory: allocated here
xwayland-24.1.9/Xext/xvmc.c:319:8: branch_false: following ‘false’ branch (when ‘pSurface’ is non-NULL)...
xwayland-24.1.9/Xext/xvmc.c:322:28: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:327:9: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/xvmc.c:327:9: danger: ‘pSurface’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  325|   
#  326|       result =
#  327|->         (*pScreenPriv->adaptors[pContext->adapt_num].CreateSurface) (pSurface,
#  328|                                                                        &dwords,
#  329|                                                                        &data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
xwayland-24.1.9/Xext/xvmc.c:448:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pSubpicture’
xwayland-24.1.9/Xext/xvmc.c:377:1: enter_function: entry to ‘ProcXvMCCreateSubpicture’
xwayland-24.1.9/Xext/xvmc.c:390:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:392:14: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:397:19: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:397:19: call_function: calling ‘dixLookupPrivate’ from ‘ProcXvMCCreateSubpicture’
xwayland-24.1.9/Xext/xvmc.c:397:19: return_function: returning to ‘ProcXvMCCreateSubpicture’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xext/xvmc.c:402:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xext/xvmc.c:403:13: branch_true: ...to here
xwayland-24.1.9/Xext/xvmc.c:409:8: branch_false: following ‘false’ branch (when ‘surface’ is non-NULL)...
xwayland-24.1.9/Xext/xvmc.c:413:10: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:413:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:413:8: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:424:8: branch_false: following ‘false’ branch (when ‘image_supported != 0’)...
xwayland-24.1.9/Xext/xvmc.c:428:10: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:428:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:429:10: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:428:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xext/xvmc.c:432:25: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:432:25: acquire_memory: allocated here
xwayland-24.1.9/Xext/xvmc.c:432:8: branch_false: following ‘false’ branch (when ‘pSubpicture’ is non-NULL)...
xwayland-24.1.9/Xext/xvmc.c:435:34: branch_false: ...to here
xwayland-24.1.9/Xext/xvmc.c:448:9: throw: if the called function throws an exception...
xwayland-24.1.9/Xext/xvmc.c:448:9: danger: ‘pSubpicture’ leaks here; was allocated at [(27)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/26)
#  446|   
#  447|       result =
#  448|->         (*pScreenPriv->adaptors[pContext->adapt_num].
#  449|            CreateSubpicture) (pSubpicture, &dwords, &data);
#  450|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def149]
xwayland-24.1.9/Xi/exevents.c:1045:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/Xi/exevents.c:2145:1: enter_function: entry to ‘DeliverTouchEvent’
xwayland-24.1.9/Xi/exevents.c:2155:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/exevents.c:2156:46: branch_true: ...to here
xwayland-24.1.9/Xi/exevents.c:2157:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/exevents.c:2159:14: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2159:14: call_function: calling ‘DeliverOneTouchEvent’ from ‘DeliverTouchEvent’
# 1043|       InputClients *iclient;
# 1044|   
# 1045|->     nt_list_for_each_entry(iclient, wOtherInputMasks(win)->inputClients, next) {
# 1046|           if (rClient(iclient) != client)
# 1047|               continue;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def150]
xwayland-24.1.9/Xi/exevents.c:2685:14: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/Xi/exevents.c:2672:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/exevents.c:2685:23: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/exevents.c:2685:14: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2685:14: danger: dereference of NULL ‘<unknown>’
# 2683|               }
# 2684|           }
# 2685|->         for (others = wOtherInputMasks(pWin)->inputClients; others;
# 2686|                others = others->next) {
# 2687|               if (SameClient(others, client)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
xwayland-24.1.9/Xi/exevents.c:2721:5: warning[-Wanalyzer-malloc-leak]: leak of ‘others’
xwayland-24.1.9/Xi/exevents.c:2733:1: enter_function: entry to ‘AddExtensionClient’
xwayland-24.1.9/Xi/exevents.c:2739:14: call_function: inlined call to ‘AllocInputClient’ from ‘AddExtensionClient’
xwayland-24.1.9/Xi/exevents.c:2740:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/exevents.c:2742:10: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2742:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/exevents.c:2744:23: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2745:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/exevents.c:2746:9: branch_true: ...to here
xwayland-24.1.9/Xi/exevents.c:2756:5: call_function: calling ‘FreeInputClient’ from ‘AddExtensionClient’
# 2719|   FreeInputClient(InputClientsPtr * other)
# 2720|   {
# 2721|->     xi2mask_free(&(*other)->xi2mask);
# 2722|       free(*other);
# 2723|       *other = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
xwayland-24.1.9/Xi/exevents.c:2744:23: warning[-Wanalyzer-malloc-leak]: leak of ‘others’
xwayland-24.1.9/Xi/exevents.c:2733:1: enter_function: entry to ‘AddExtensionClient’
xwayland-24.1.9/Xi/exevents.c:2739:14: call_function: inlined call to ‘AllocInputClient’ from ‘AddExtensionClient’
xwayland-24.1.9/Xi/exevents.c:2740:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/exevents.c:2742:10: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2742:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/exevents.c:2744:23: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2744:23: throw: if ‘xi2mask_new’ throws an exception...
xwayland-24.1.9/Xi/exevents.c:2744:23: danger: ‘others’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 2742|       if (!pWin->optional->inputMasks && !MakeInputMasks(pWin))
# 2743|           goto bail;
# 2744|->     others->xi2mask = xi2mask_new();
# 2745|       if (!others->xi2mask)
# 2746|           goto bail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
xwayland-24.1.9/Xi/exevents.c:2748:24: warning[-Wanalyzer-malloc-leak]: leak of ‘others’
xwayland-24.1.9/Xi/exevents.c:2733:1: enter_function: entry to ‘AddExtensionClient’
xwayland-24.1.9/Xi/exevents.c:2739:14: call_function: inlined call to ‘AllocInputClient’ from ‘AddExtensionClient’
xwayland-24.1.9/Xi/exevents.c:2740:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/exevents.c:2742:10: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2742:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/exevents.c:2744:23: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2745:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/exevents.c:2747:5: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2748:24: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/Xi/exevents.c:2748:24: danger: ‘others’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 2746|           goto bail;
# 2747|       others->mask[mskidx] = mask;
# 2748|->     others->resource = FakeClientID(client->index);
# 2749|       others->next = pWin->optional->inputMasks->inputClients;
# 2750|       pWin->optional->inputMasks->inputClients = others;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def154]
xwayland-24.1.9/Xi/exevents.c:2768:23: warning[-Wanalyzer-malloc-leak]: leak of ‘imasks’
xwayland-24.1.9/Xi/exevents.c:2765:14: acquire_memory: allocated here
xwayland-24.1.9/Xi/exevents.c:2766:8: branch_false: following ‘false’ branch (when ‘imasks’ is non-NULL)...
xwayland-24.1.9/Xi/exevents.c:2768:23: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2768:23: throw: if ‘xi2mask_new’ throws an exception...
xwayland-24.1.9/Xi/exevents.c:2768:23: danger: ‘imasks’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 2766|       if (!imasks)
# 2767|           return FALSE;
# 2768|->     imasks->xi2mask = xi2mask_new();
# 2769|       if (!imasks->xi2mask) {
# 2770|           free(imasks);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def155]
xwayland-24.1.9/Xi/exevents.c:2768:23: warning[-Wanalyzer-malloc-leak]: leak of ‘others’
xwayland-24.1.9/Xi/exevents.c:2733:1: enter_function: entry to ‘AddExtensionClient’
xwayland-24.1.9/Xi/exevents.c:2739:14: call_function: inlined call to ‘AllocInputClient’ from ‘AddExtensionClient’
xwayland-24.1.9/Xi/exevents.c:2740:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/exevents.c:2742:10: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2742:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/exevents.c:2742:41: branch_true: ...to here
xwayland-24.1.9/Xi/exevents.c:2742:41: call_function: calling ‘MakeInputMasks’ from ‘AddExtensionClient’
# 2766|       if (!imasks)
# 2767|           return FALSE;
# 2768|->     imasks->xi2mask = xi2mask_new();
# 2769|       if (!imasks->xi2mask) {
# 2770|           free(imasks);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
xwayland-24.1.9/Xi/exevents.c:2775:1: warning[-Wanalyzer-malloc-leak]: leak of ‘imasks’
xwayland-24.1.9/Xi/exevents.c:2765:14: acquire_memory: allocated here
xwayland-24.1.9/Xi/exevents.c:2766:8: branch_false: following ‘false’ branch (when ‘imasks’ is non-NULL)...
xwayland-24.1.9/Xi/exevents.c:2768:23: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2769:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/exevents.c:2773:5: branch_false: ...to here
xwayland-24.1.9/Xi/exevents.c:2775:1: danger: ‘imasks’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 2773|       pWin->optional->inputMasks = imasks;
# 2774|       return TRUE;
# 2775|-> }
# 2776|   
# 2777|   static void

Error: GCC_ANALYZER_WARNING (CWE-401): [#def157]
xwayland-24.1.9/Xi/getdctl.c:232:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/Xi/getdctl.c:179:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/getdctl.c:181:32: branch_false: ...to here
xwayland-24.1.9/Xi/getdctl.c:182:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/getdctl.c:188:27: branch_false: ...to here
xwayland-24.1.9/Xi/getdctl.c:212:20: acquire_memory: allocated here
xwayland-24.1.9/Xi/getdctl.c:213:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/Xi/getdctl.c:217:5: branch_false: ...to here
xwayland-24.1.9/Xi/getdctl.c:232:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/getdctl.c:232:5: branch_true: ...to here
xwayland-24.1.9/Xi/getdctl.c:232:5: throw: if the called function throws an exception...
xwayland-24.1.9/Xi/getdctl.c:232:5: danger: ‘buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  230|   
#  231|       rep.length = bytes_to_int32(total_length);
#  232|->     WriteReplyToClient(client, sizeof(xGetDeviceControlReply), &rep);
#  233|       WriteToClient(client, total_length, savbuf);
#  234|       free(savbuf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
xwayland-24.1.9/Xi/getdctl.c:233:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/Xi/getdctl.c:179:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/getdctl.c:181:32: branch_false: ...to here
xwayland-24.1.9/Xi/getdctl.c:182:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/getdctl.c:188:27: branch_false: ...to here
xwayland-24.1.9/Xi/getdctl.c:212:20: acquire_memory: allocated here
xwayland-24.1.9/Xi/getdctl.c:213:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/Xi/getdctl.c:217:5: branch_false: ...to here
xwayland-24.1.9/Xi/getdctl.c:233:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/Xi/getdctl.c:233:5: danger: ‘buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  231|       rep.length = bytes_to_int32(total_length);
#  232|       WriteReplyToClient(client, sizeof(xGetDeviceControlReply), &rep);
#  233|->     WriteToClient(client, total_length, savbuf);
#  234|       free(savbuf);
#  235|       return Success;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def159]
xwayland-24.1.9/Xi/getfctl.c:94:14: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)total_length)’
xwayland-24.1.9/Xi/getfctl.c:279:1: enter_function: entry to ‘ProcXGetFeedbackControl’
xwayland-24.1.9/Xi/getfctl.c:293:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/getfctl.c:295:32: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:296:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/getfctl.c:302:27: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:307:28: branch_false: following ‘false’ branch (when ‘k’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:311:10: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:311:28: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:315:10: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:315:31: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:320:10: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:320:28: branch_false: following ‘false’ branch (when ‘i’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:324:10: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:324:25: branch_false: following ‘false’ branch (when ‘l’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:328:10: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:328:25: branch_false: following ‘false’ branch (when ‘b’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:333:8: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:333:8: branch_false: following ‘false’ branch (when ‘total_length != 0’)...
xwayland-24.1.9/Xi/getfctl.c:336:20: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:336:20: acquire_memory: allocated here
xwayland-24.1.9/Xi/getfctl.c:337:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/getfctl.c:337:8: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:341:28: branch_true: following ‘true’ branch (when ‘k’ is non-NULL)...
xwayland-24.1.9/Xi/getfctl.c:342:9: branch_true: ...to here
xwayland-24.1.9/Xi/getfctl.c:342:9: call_function: calling ‘CopySwapKbdFeedback’ from ‘ProcXGetFeedbackControl’
xwayland-24.1.9/Xi/getfctl.c:342:9: return_function: returning to ‘ProcXGetFeedbackControl’ from ‘CopySwapKbdFeedback’
xwayland-24.1.9/Xi/getfctl.c:341:28: branch_false: following ‘false’ branch (when ‘k’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:343:17: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:343:28: branch_false: following ‘false’ branch (when ‘p’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:345:17: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:345:31: branch_false: following ‘false’ branch (when ‘s’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:347:17: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:347:28: branch_false: following ‘false’ branch (when ‘i’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:349:17: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:349:25: branch_false: following ‘false’ branch (when ‘l’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:351:17: branch_false: ...to here
xwayland-24.1.9/Xi/getfctl.c:351:25: branch_false: following ‘false’ branch (when ‘b’ is NULL)...
xwayland-24.1.9/Xi/getfctl.c:354:18: call_function: inlined call to ‘bytes_to_int32’ from ‘ProcXGetFeedbackControl’
xwayland-24.1.9/Xi/getfctl.c:355:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/getfctl.c:355:5: branch_true: ...to here
xwayland-24.1.9/Xi/getfctl.c:355:5: throw: if the called function throws an exception...
xwayland-24.1.9/Xi/getfctl.c:94:14: danger: ‘malloc((long unsigned int)total_length)’ leaks here; was allocated at [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19)
#   92|       k2->class = KbdFeedbackClass;
#   93|       k2->length = sizeof(xKbdFeedbackState);
#   94|->     k2->id = k->ctrl.id;
#   95|       k2->click = k->ctrl.click;
#   96|       k2->percent = k->ctrl.bell;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
xwayland-24.1.9/Xi/getselev.c:150:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/Xi/getselev.c:103:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/getselev.c:108:27: branch_false: ...to here
xwayland-24.1.9/Xi/getselev.c:115:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/getselev.c:118:20: branch_false: ...to here
xwayland-24.1.9/Xi/getselev.c:118:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/getselev.c:135:31: acquire_memory: allocated here
xwayland-24.1.9/Xi/getselev.c:139:12: branch_false: following ‘false’ branch (when ‘others’ is NULL)...
xwayland-24.1.9/Xi/getselev.c:144:14: branch_false: ...to here
xwayland-24.1.9/Xi/getselev.c:144:46: branch_false: following ‘false’ branch (when ‘others’ is NULL)...
xwayland-24.1.9/Xi/getselev.c:150:5: branch_false: ...to here
xwayland-24.1.9/Xi/getselev.c:150:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/getselev.c:150:5: branch_true: ...to here
xwayland-24.1.9/Xi/getselev.c:150:5: throw: if the called function throws an exception...
xwayland-24.1.9/Xi/getselev.c:150:5: danger: ‘buf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  148|       }
#  149|   
#  150|->     WriteReplyToClient(client, sizeof(xGetSelectedExtensionEventsReply), &rep);
#  151|   
#  152|       if (total_length) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
xwayland-24.1.9/Xi/listdev.c:311:10: warning[-Wanalyzer-malloc-leak]: leak of ‘skip’
xwayland-24.1.9/Xi/listdev.c:331:1: enter_function: entry to ‘ProcXListInputDevices’
xwayland-24.1.9/Xi/listdev.c:343:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/listdev.c:348:27: branch_false: ...to here
xwayland-24.1.9/Xi/listdev.c:353:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/listdev.c:354:8: branch_false: following ‘false’ branch (when ‘skip’ is non-NULL)...
xwayland-24.1.9/Xi/listdev.c:359:10: branch_false: ...to here
xwayland-24.1.9/Xi/listdev.c:359:33: branch_true: following ‘true’ branch (when ‘d’ is non-NULL)...
xwayland-24.1.9/Xi/listdev.c:360:13: branch_true: ...to here
xwayland-24.1.9/Xi/listdev.c:360:19: call_function: calling ‘ShouldSkipDevice’ from ‘ProcXListInputDevices’
#  309|   {
#  310|       /* don't send master devices other than VCP/VCK */
#  311|->     if (!IsMaster(d) || d == inputInfo.pointer ||d == inputInfo.keyboard) {
#  312|           int rc = XaceHook(XACE_DEVICE_ACCESS, client, d, DixGetAttrAccess);
#  313|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
xwayland-24.1.9/Xi/listdev.c:312:18: warning[-Wanalyzer-malloc-leak]: leak of ‘skip’
xwayland-24.1.9/Xi/listdev.c:331:1: enter_function: entry to ‘ProcXListInputDevices’
xwayland-24.1.9/Xi/listdev.c:343:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/listdev.c:348:27: branch_false: ...to here
xwayland-24.1.9/Xi/listdev.c:353:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/listdev.c:354:8: branch_false: following ‘false’ branch (when ‘skip’ is non-NULL)...
xwayland-24.1.9/Xi/listdev.c:359:10: branch_false: ...to here
xwayland-24.1.9/Xi/listdev.c:359:33: branch_true: following ‘true’ branch (when ‘d’ is non-NULL)...
xwayland-24.1.9/Xi/listdev.c:360:13: branch_true: ...to here
xwayland-24.1.9/Xi/listdev.c:360:19: call_function: calling ‘ShouldSkipDevice’ from ‘ProcXListInputDevices’
#  310|       /* don't send master devices other than VCP/VCK */
#  311|       if (!IsMaster(d) || d == inputInfo.pointer ||d == inputInfo.keyboard) {
#  312|->         int rc = XaceHook(XACE_DEVICE_ACCESS, client, d, DixGetAttrAccess);
#  313|   
#  314|           if (rc == Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
xwayland-24.1.9/Xi/queryst.c:146:20: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/Xi/queryst.c:88:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/queryst.c:90:32: branch_false: ...to here
xwayland-24.1.9/Xi/queryst.c:91:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/queryst.c:94:12: branch_false: ...to here
xwayland-24.1.9/Xi/queryst.c:114:20: acquire_memory: allocated here
xwayland-24.1.9/Xi/queryst.c:115:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/Xi/queryst.c:119:8: branch_false: ...to here
xwayland-24.1.9/Xi/queryst.c:119:8: branch_false: following ‘false’ branch (when ‘k’ is NULL)...
xwayland-24.1.9/Xi/queryst.c:131:8: branch_false: ...to here
xwayland-24.1.9/Xi/queryst.c:131:8: branch_false: following ‘false’ branch (when ‘b’ is NULL)...
xwayland-24.1.9/Xi/queryst.c:141:8: branch_false: ...to here
xwayland-24.1.9/Xi/queryst.c:141:8: branch_true: following ‘true’ branch (when ‘v’ is non-NULL)...
xwayland-24.1.9/Xi/queryst.c:143:9: branch_true: ...to here
xwayland-24.1.9/Xi/queryst.c:146:20: throw: if ‘valuator_get_mode’ throws an exception...
xwayland-24.1.9/Xi/queryst.c:146:20: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  144|           tv->length = sizeof(xValuatorState) + v->numAxes * 4;
#  145|           tv->num_valuators = v->numAxes;
#  146|->         tv->mode = valuator_get_mode(dev, 0);
#  147|           tv->mode |= (dev->proximity &&
#  148|                        !dev->proximity->in_proximity) ? OutOfProximity : 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
xwayland-24.1.9/Xi/queryst.c:168:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/Xi/queryst.c:88:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/queryst.c:90:32: branch_false: ...to here
xwayland-24.1.9/Xi/queryst.c:91:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/queryst.c:94:12: branch_false: ...to here
xwayland-24.1.9/Xi/queryst.c:114:20: acquire_memory: allocated here
xwayland-24.1.9/Xi/queryst.c:115:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/Xi/queryst.c:119:8: branch_false: ...to here
xwayland-24.1.9/Xi/queryst.c:119:8: branch_false: following ‘false’ branch (when ‘k’ is NULL)...
xwayland-24.1.9/Xi/queryst.c:131:8: branch_false: ...to here
xwayland-24.1.9/Xi/queryst.c:131:8: branch_false: following ‘false’ branch (when ‘b’ is NULL)...
xwayland-24.1.9/Xi/queryst.c:141:8: branch_false: ...to here
xwayland-24.1.9/Xi/queryst.c:141:8: branch_false: following ‘false’ branch (when ‘v’ is NULL)...
xwayland-24.1.9/Xi/queryst.c:164:27: branch_false: ...to here
xwayland-24.1.9/Xi/queryst.c:168:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/queryst.c:168:5: branch_true: ...to here
xwayland-24.1.9/Xi/queryst.c:168:5: throw: if the called function throws an exception...
xwayland-24.1.9/Xi/queryst.c:168:5: danger: ‘buf’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  166|           .num_classes = num_classes
#  167|       };
#  168|->     WriteReplyToClient(client, sizeof(xQueryDeviceStateReply), &rep);
#  169|       if (total_length > 0)
#  170|           WriteToClient(client, total_length, savbuf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def165]
xwayland-24.1.9/Xi/xibarriers.c:115:5: warning[-Wanalyzer-malloc-leak]: leak of ‘AllocBarrierDevice()’
xwayland-24.1.9/Xi/xibarriers.c:717:13: enter_function: entry to ‘add_master_func’
xwayland-24.1.9/Xi/xibarriers.c:728:11: call_function: calling ‘AllocBarrierDevice’ from ‘add_master_func’
xwayland-24.1.9/Xi/xibarriers.c:728:11: return_function: returning to ‘add_master_func’ from ‘AllocBarrierDevice’
xwayland-24.1.9/Xi/xibarriers.c:729:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:731:21: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:733:5: throw: if ‘input_lock’ throws an exception...
xwayland-24.1.9/Xi/xibarriers.c:115:5: danger: ‘AllocBarrierDevice()’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  113|       pbd->hit = FALSE;
#  114|       pbd->seen = FALSE;
#  115|->     xorg_list_init(&pbd->entry);
#  116|   
#  117|       return pbd;

Error: GCC_ANALYZER_WARNING (CWE-835): [#def166]
xwayland-24.1.9/Xi/xibarriers.c:124:5: warning[-Wanalyzer-infinite-loop]: infinite loop
#  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): [#def167]
xwayland-24.1.9/Xi/xibarriers.c:125:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘pbd’
xwayland-24.1.9/Xi/xibarriers.c:549:1: enter_function: entry to ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:566:8: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
xwayland-24.1.9/Xi/xibarriers.c:570:5: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:573:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:578:18: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:579:10: call_function: calling ‘dixLookupPrivate’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:579:10: return_function: returning to ‘CreatePointerBarrierClient’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xibarriers.c:584:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:584:8: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:590:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:610:5: call_function: inlined call to ‘xorg_list_init’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:611:5: branch_true: following ‘true’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/Xi/xibarriers.c:614:13: branch_true: ...to here
xwayland-24.1.9/Xi/xibarriers.c:617:15: call_function: calling ‘AllocBarrierDevice’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:617:15: return_function: returning to ‘CreatePointerBarrierClient’ from ‘AllocBarrierDevice’
xwayland-24.1.9/Xi/xibarriers.c:618:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xibarriers.c:620:13: branch_true: ...to here
xwayland-24.1.9/Xi/xibarriers.c:650:5: call_function: calling ‘FreePointerBarrierClient’ from ‘CreatePointerBarrierClient’
#  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-401): [#def168]
xwayland-24.1.9/Xi/xibarriers.c:572:11: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
xwayland-24.1.9/Xi/xibarriers.c:564:11: acquire_memory: allocated here
xwayland-24.1.9/Xi/xibarriers.c:566:8: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
xwayland-24.1.9/Xi/xibarriers.c:570:5: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:572:11: throw: if ‘dixLookupWindow’ throws an exception...
xwayland-24.1.9/Xi/xibarriers.c:572:11: danger: ‘ret’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  570|       xorg_list_init(&ret->per_device);
#  571|   
#  572|->     err = dixLookupWindow(&pWin, stuff->window, client, DixReadAccess);
#  573|       if (err != Success) {
#  574|           client->errorValue = stuff->window;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def169]
xwayland-24.1.9/Xi/xibarriers.c:594:20: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
xwayland-24.1.9/Xi/xibarriers.c:549:1: enter_function: entry to ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:564:11: acquire_memory: allocated here
xwayland-24.1.9/Xi/xibarriers.c:566:8: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
xwayland-24.1.9/Xi/xibarriers.c:570:5: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:573:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:578:18: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:579:10: call_function: calling ‘dixLookupPrivate’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:579:10: return_function: returning to ‘CreatePointerBarrierClient’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xibarriers.c:584:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xibarriers.c:585:33: branch_true: ...to here
xwayland-24.1.9/Xi/xibarriers.c:590:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xibarriers.c:591:35: branch_true: ...to here
xwayland-24.1.9/Xi/xibarriers.c:594:20: throw: if ‘dixLookupDevice’ throws an exception...
xwayland-24.1.9/Xi/xibarriers.c:594:20: danger: ‘ret’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
#  592|           DeviceIntPtr device;
#  593|   
#  594|->         if ((err = dixLookupDevice (&device, device_id,
#  595|                                       client, DixReadAccess))) {
#  596|               client->errorValue = device_id;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
xwayland-24.1.9/Xi/xibarriers.c:600:14: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
xwayland-24.1.9/Xi/xibarriers.c:549:1: enter_function: entry to ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:564:11: acquire_memory: allocated here
xwayland-24.1.9/Xi/xibarriers.c:566:8: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
xwayland-24.1.9/Xi/xibarriers.c:570:5: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:573:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:578:18: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:579:10: call_function: calling ‘dixLookupPrivate’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:579:10: return_function: returning to ‘CreatePointerBarrierClient’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xibarriers.c:584:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xibarriers.c:585:33: branch_true: ...to here
xwayland-24.1.9/Xi/xibarriers.c:590:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xibarriers.c:591:35: branch_true: ...to here
xwayland-24.1.9/Xi/xibarriers.c:594:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:600:14: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:600:14: throw: if ‘IsMaster’ throws an exception...
xwayland-24.1.9/Xi/xibarriers.c:600:14: danger: ‘ret’ leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
#  598|           }
#  599|   
#  600|->         if (!IsMaster (device)) {
#  601|               client->errorValue = device_id;
#  602|               err = BadDevice;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def171]
xwayland-24.1.9/Xi/xibarriers.c:624:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
xwayland-24.1.9/Xi/xibarriers.c:549:1: enter_function: entry to ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:564:11: acquire_memory: allocated here
xwayland-24.1.9/Xi/xibarriers.c:566:8: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
xwayland-24.1.9/Xi/xibarriers.c:570:5: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:573:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:578:18: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:579:10: call_function: calling ‘dixLookupPrivate’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:579:10: return_function: returning to ‘CreatePointerBarrierClient’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xibarriers.c:584:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:584:8: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:590:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:610:5: call_function: inlined call to ‘xorg_list_init’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:611:5: branch_true: following ‘true’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/Xi/xibarriers.c:614:13: branch_true: ...to here
xwayland-24.1.9/Xi/xibarriers.c:617:15: call_function: calling ‘AllocBarrierDevice’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:617:15: return_function: returning to ‘CreatePointerBarrierClient’ from ‘AllocBarrierDevice’
xwayland-24.1.9/Xi/xibarriers.c:618:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:622:25: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:624:9: throw: if ‘input_lock’ throws an exception...
xwayland-24.1.9/Xi/xibarriers.c:624:9: danger: ‘ret’ leaks here; was allocated at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
#  622|           pbd->deviceid = dev->id;
#  623|   
#  624|->         input_lock();
#  625|           xorg_list_add(&pbd->entry, &ret->per_device);
#  626|           input_unlock();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def172]
xwayland-24.1.9/Xi/xibarriers.c:626:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
xwayland-24.1.9/Xi/xibarriers.c:549:1: enter_function: entry to ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:564:11: acquire_memory: allocated here
xwayland-24.1.9/Xi/xibarriers.c:566:8: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
xwayland-24.1.9/Xi/xibarriers.c:570:5: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:573:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:578:18: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:579:10: call_function: calling ‘dixLookupPrivate’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:579:10: return_function: returning to ‘CreatePointerBarrierClient’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xibarriers.c:584:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:584:8: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:590:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:610:5: call_function: inlined call to ‘xorg_list_init’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:611:5: branch_true: following ‘true’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/Xi/xibarriers.c:614:13: branch_true: ...to here
xwayland-24.1.9/Xi/xibarriers.c:617:15: call_function: calling ‘AllocBarrierDevice’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:617:15: return_function: returning to ‘CreatePointerBarrierClient’ from ‘AllocBarrierDevice’
xwayland-24.1.9/Xi/xibarriers.c:618:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:622:25: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:626:9: throw: if ‘input_unlock’ throws an exception...
xwayland-24.1.9/Xi/xibarriers.c:626:9: danger: ‘ret’ leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
#  624|           input_lock();
#  625|           xorg_list_add(&pbd->entry, &ret->per_device);
#  626|->         input_unlock();
#  627|       }
#  628|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
xwayland-24.1.9/Xi/xibarriers.c:641:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ret’
xwayland-24.1.9/Xi/xibarriers.c:549:1: enter_function: entry to ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:564:11: acquire_memory: allocated here
xwayland-24.1.9/Xi/xibarriers.c:566:8: branch_false: following ‘false’ branch (when ‘ret’ is non-NULL)...
xwayland-24.1.9/Xi/xibarriers.c:570:5: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:573:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:578:18: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:579:10: call_function: calling ‘dixLookupPrivate’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:579:10: return_function: returning to ‘CreatePointerBarrierClient’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xibarriers.c:584:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:584:8: branch_false: ...to here
xwayland-24.1.9/Xi/xibarriers.c:590:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xibarriers.c:610:5: call_function: inlined call to ‘xorg_list_init’ from ‘CreatePointerBarrierClient’
xwayland-24.1.9/Xi/xibarriers.c:641:5: throw: if ‘input_lock’ throws an exception...
xwayland-24.1.9/Xi/xibarriers.c:641:5: danger: ‘ret’ leaks here; was allocated at [(2)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/1)
#  639|       if (barrier_is_vertical(&ret->barrier))
#  640|           ret->barrier.directions &= ~(BarrierPositiveY | BarrierNegativeY);
#  641|->     input_lock();
#  642|       xorg_list_add(&ret->entry, &cs->barriers);
#  643|       input_unlock();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def174]
xwayland-24.1.9/Xi/xichangehierarchy.c:153:10: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:153:10: throw: if ‘AllocDevicePair’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:153:10: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  151|       strncpy(name, (char *) &c[1], c->name_len);
#  152|   
#  153|->     rc = AllocDevicePair(client, name, &ptr, &keybd,
#  154|                            CorePointerProc, CoreKeyboardProc, TRUE);
#  155|       if (rc != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def175]
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: throw: if ‘AllocXTestDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  160|   
#  161|       /* Allocate virtual slave devices for xtest events */
#  162|->     rc = AllocXTestDevice(client, name, &XTestptr, &XTestkeybd, ptr, keybd);
#  163|       if (rc != Success) {
#  164|           DeleteInputDeviceRequest(ptr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def176]
xwayland-24.1.9/Xi/xichangehierarchy.c:164:9: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:164:9: branch_true: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:164:9: throw: if ‘DeleteInputDeviceRequest’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:164:9: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  162|       rc = AllocXTestDevice(client, name, &XTestptr, &XTestkeybd, ptr, keybd);
#  163|       if (rc != Success) {
#  164|->         DeleteInputDeviceRequest(ptr);
#  165|           DeleteInputDeviceRequest(keybd);
#  166|           goto unwind;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def177]
xwayland-24.1.9/Xi/xichangehierarchy.c:165:9: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:164:9: branch_true: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:165:9: throw: if ‘DeleteInputDeviceRequest’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:165:9: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  163|       if (rc != Success) {
#  164|           DeleteInputDeviceRequest(ptr);
#  165|->         DeleteInputDeviceRequest(keybd);
#  166|           goto unwind;
#  167|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: throw: if ‘ActivateDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  167|       }
#  168|   
#  169|->     ActivateDevice(ptr, FALSE);
#  170|       ActivateDevice(keybd, FALSE);
#  171|       flags[ptr->id] |= XIMasterAdded;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
xwayland-24.1.9/Xi/xichangehierarchy.c:170:5: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:170:5: throw: if ‘ActivateDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:170:5: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  168|   
#  169|       ActivateDevice(ptr, FALSE);
#  170|->     ActivateDevice(keybd, FALSE);
#  171|       flags[ptr->id] |= XIMasterAdded;
#  172|       flags[keybd->id] |= XIMasterAdded;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def180]
xwayland-24.1.9/Xi/xichangehierarchy.c:174:5: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:174:5: throw: if ‘ActivateDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:174:5: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  172|       flags[keybd->id] |= XIMasterAdded;
#  173|   
#  174|->     ActivateDevice(XTestptr, FALSE);
#  175|       ActivateDevice(XTestkeybd, FALSE);
#  176|       flags[XTestptr->id] |= XISlaveAdded;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def181]
xwayland-24.1.9/Xi/xichangehierarchy.c:175:5: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:175:5: throw: if ‘ActivateDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:175:5: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  173|   
#  174|       ActivateDevice(XTestptr, FALSE);
#  175|->     ActivateDevice(XTestkeybd, FALSE);
#  176|       flags[XTestptr->id] |= XISlaveAdded;
#  177|       flags[XTestkeybd->id] |= XISlaveAdded;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def182]
xwayland-24.1.9/Xi/xichangehierarchy.c:180:9: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:179:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:180:9: branch_true: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:180:9: throw: if ‘EnableDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:180:9: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  178|   
#  179|       if (c->enable) {
#  180|->         EnableDevice(ptr, FALSE);
#  181|           EnableDevice(keybd, FALSE);
#  182|           flags[ptr->id] |= XIDeviceEnabled;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
xwayland-24.1.9/Xi/xichangehierarchy.c:181:9: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:179:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:180:9: branch_true: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:181:9: throw: if ‘EnableDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:181:9: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  179|       if (c->enable) {
#  180|           EnableDevice(ptr, FALSE);
#  181|->         EnableDevice(keybd, FALSE);
#  182|           flags[ptr->id] |= XIDeviceEnabled;
#  183|           flags[keybd->id] |= XIDeviceEnabled;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
xwayland-24.1.9/Xi/xichangehierarchy.c:185:9: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:179:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:180:9: branch_true: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:185:9: throw: if ‘EnableDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:185:9: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  183|           flags[keybd->id] |= XIDeviceEnabled;
#  184|   
#  185|->         EnableDevice(XTestptr, FALSE);
#  186|           EnableDevice(XTestkeybd, FALSE);
#  187|           flags[XTestptr->id] |= XIDeviceEnabled;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def185]
xwayland-24.1.9/Xi/xichangehierarchy.c:186:9: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:179:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:180:9: branch_true: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:186:9: throw: if ‘EnableDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:186:9: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  184|   
#  185|           EnableDevice(XTestptr, FALSE);
#  186|->         EnableDevice(XTestkeybd, FALSE);
#  187|           flags[XTestptr->id] |= XIDeviceEnabled;
#  188|           flags[XTestkeybd->id] |= XIDeviceEnabled;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def186]
xwayland-24.1.9/Xi/xichangehierarchy.c:193:5: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:193:5: throw: if ‘AttachDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:193:5: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  191|       /* Attach the XTest virtual devices to the newly
#  192|          created master device */
#  193|->     AttachDevice(NULL, XTestptr, ptr);
#  194|       AttachDevice(NULL, XTestkeybd, keybd);
#  195|       flags[XTestptr->id] |= XISlaveAttached;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
xwayland-24.1.9/Xi/xichangehierarchy.c:194:5: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:194:5: throw: if ‘AttachDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:194:5: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  192|          created master device */
#  193|       AttachDevice(NULL, XTestptr, ptr);
#  194|->     AttachDevice(NULL, XTestkeybd, keybd);
#  195|       flags[XTestptr->id] |= XISlaveAttached;
#  196|       flags[XTestkeybd->id] |= XISlaveAttached;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def188]
xwayland-24.1.9/Xi/xichangehierarchy.c:199:9: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/Xi/xichangehierarchy.c:146:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xichangehierarchy.c:147:8: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/Xi/xichangehierarchy.c:151:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:158:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:158:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:162:10: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:169:5: branch_false: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:198:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xichangehierarchy.c:199:49: branch_true: ...to here
xwayland-24.1.9/Xi/xichangehierarchy.c:199:9: throw: if ‘XIBarrierNewMasterDevice’ throws an exception...
xwayland-24.1.9/Xi/xichangehierarchy.c:199:9: danger: ‘name’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  197|   
#  198|       for (int i = 0; i < currentMaxClients; i++)
#  199|->         XIBarrierNewMasterDevice(clients[i], ptr->id);
#  200|   
#  201|    unwind:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def189]
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: warning[-Wanalyzer-malloc-leak]: leak of ‘modifiers_failed’
xwayland-24.1.9/Xi/xipassivegrab.c:99:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:129:62: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:134:8: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:144:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:148:32: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:147:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:151:20: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:155:16: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:186:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:189:11: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:190:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:193:42: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:195:9: acquire_memory: allocated here
xwayland-24.1.9/Xi/xipassivegrab.c:196:8: branch_false: following ‘false’ branch (when ‘modifiers_failed’ is non-NULL)...
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: throw: if ‘IsFloating’ throws an exception...
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: danger: ‘modifiers_failed’ leaks here; was allocated at [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18)
#  199|       }
#  200|   
#  201|->     mod_dev = (IsFloating(dev)) ? dev : GetMaster(dev, MASTER_KEYBOARD);
#  202|   
#  203|       for (i = 0; i < stuff->num_modifiers; i++, modifiers++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def190]
xwayland-24.1.9/Xi/xipassivegrab.c:201:41: warning[-Wanalyzer-malloc-leak]: leak of ‘modifiers_failed’
xwayland-24.1.9/Xi/xipassivegrab.c:99:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:129:62: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:134:8: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:144:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:148:32: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:147:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:151:20: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:155:16: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:186:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:189:11: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:190:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:193:42: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:195:9: acquire_memory: allocated here
xwayland-24.1.9/Xi/xipassivegrab.c:196:8: branch_false: following ‘false’ branch (when ‘modifiers_failed’ is non-NULL)...
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:201:41: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:201:41: throw: if ‘GetMaster’ throws an exception...
xwayland-24.1.9/Xi/xipassivegrab.c:201:41: danger: ‘modifiers_failed’ leaks here; was allocated at [(19)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/18)
#  199|       }
#  200|   
#  201|->     mod_dev = (IsFloating(dev)) ? dev : GetMaster(dev, MASTER_KEYBOARD);
#  202|   
#  203|       for (i = 0; i < stuff->num_modifiers; i++, modifiers++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
xwayland-24.1.9/Xi/xipassivegrab.c:207:15: warning[-Wanalyzer-malloc-leak]: leak of ‘modifiers_failed’
xwayland-24.1.9/Xi/xipassivegrab.c:99:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:129:62: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:134:8: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:144:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:148:32: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:147:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:151:20: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:155:16: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:186:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:189:11: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:190:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:193:42: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:195:9: acquire_memory: allocated here
xwayland-24.1.9/Xi/xipassivegrab.c:196:8: branch_false: following ‘false’ branch (when ‘modifiers_failed’ is non-NULL)...
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:203:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:206:27: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:207:15: throw: if ‘CheckGrabValues’ throws an exception...
xwayland-24.1.9/Xi/xipassivegrab.c:207:15: danger: ‘modifiers_failed’ leaks here; was allocated at [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
#  205|   
#  206|           param.modifiers = *modifiers;
#  207|->         ret = CheckGrabValues(client, &param);
#  208|           if (ret != Success)
#  209|               goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
xwayland-24.1.9/Xi/xipassivegrab.c:222:22: warning[-Wanalyzer-malloc-leak]: leak of ‘modifiers_failed’
xwayland-24.1.9/Xi/xipassivegrab.c:99:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:129:62: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:134:8: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:144:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:148:32: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:147:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:151:20: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:155:16: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:186:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:189:11: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:190:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:193:42: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:195:9: acquire_memory: allocated here
xwayland-24.1.9/Xi/xipassivegrab.c:196:8: branch_false: following ‘false’ branch (when ‘modifiers_failed’ is non-NULL)...
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:203:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:206:27: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:208:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:211:17: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:222:22: throw: if ‘GrabWindow’ throws an exception...
xwayland-24.1.9/Xi/xipassivegrab.c:222:22: danger: ‘modifiers_failed’ leaks here; was allocated at [(19)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/18)
#  220|           case XIGrabtypeEnter:
#  221|           case XIGrabtypeFocusIn:
#  222|->             status = GrabWindow(client, dev, stuff->grab_type, &param, &mask);
#  223|               break;
#  224|           case XIGrabtypeTouchBegin:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
xwayland-24.1.9/Xi/xipassivegrab.c:229:22: warning[-Wanalyzer-malloc-leak]: leak of ‘modifiers_failed’
xwayland-24.1.9/Xi/xipassivegrab.c:99:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:129:62: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:134:8: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:144:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:148:32: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:147:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:151:20: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:155:16: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:186:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:189:11: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:190:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:193:42: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:195:9: acquire_memory: allocated here
xwayland-24.1.9/Xi/xipassivegrab.c:196:8: branch_false: following ‘false’ branch (when ‘modifiers_failed’ is non-NULL)...
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:203:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:206:27: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:208:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:211:17: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:229:22: throw: if ‘GrabTouchOrGesture’ throws an exception...
xwayland-24.1.9/Xi/xipassivegrab.c:229:22: danger: ‘modifiers_failed’ leaks here; was allocated at [(19)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/18)
#  227|               break;
#  228|           case XIGrabtypeGesturePinchBegin:
#  229|->             status = GrabTouchOrGesture(client, dev, mod_dev,
#  230|                                           XI_GesturePinchBegin, &param, &mask);
#  231|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def194]
xwayland-24.1.9/Xi/xipassivegrab.c:233:22: warning[-Wanalyzer-malloc-leak]: leak of ‘modifiers_failed’
xwayland-24.1.9/Xi/xipassivegrab.c:99:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:129:62: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:134:8: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:144:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:148:32: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:147:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:151:20: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:155:16: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:186:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:189:11: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:190:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:193:42: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:195:9: acquire_memory: allocated here
xwayland-24.1.9/Xi/xipassivegrab.c:196:8: branch_false: following ‘false’ branch (when ‘modifiers_failed’ is non-NULL)...
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:203:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:206:27: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:208:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:211:17: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:233:22: throw: if ‘GrabTouchOrGesture’ throws an exception...
xwayland-24.1.9/Xi/xipassivegrab.c:233:22: danger: ‘modifiers_failed’ leaks here; was allocated at [(19)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/18)
#  231|               break;
#  232|           case XIGrabtypeGestureSwipeBegin:
#  233|->             status = GrabTouchOrGesture(client, dev, mod_dev,
#  234|                                           XI_GestureSwipeBegin, &param, &mask);
#  235|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def195]
xwayland-24.1.9/Xi/xipassivegrab.c:253:5: warning[-Wanalyzer-malloc-leak]: leak of ‘modifiers_failed’
xwayland-24.1.9/Xi/xipassivegrab.c:99:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:129:62: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:134:8: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:144:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:148:32: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:147:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:151:20: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:155:16: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:186:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:189:11: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:190:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:193:42: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:195:9: acquire_memory: allocated here
xwayland-24.1.9/Xi/xipassivegrab.c:196:8: branch_false: following ‘false’ branch (when ‘modifiers_failed’ is non-NULL)...
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:253:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:253:5: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:253:5: throw: if the called function throws an exception...
xwayland-24.1.9/Xi/xipassivegrab.c:253:5: danger: ‘modifiers_failed’ leaks here; was allocated at [(19)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/18)
#  251|       /* save the value before SRepXIPassiveGrabDevice swaps it */
#  252|       length = rep.length;
#  253|->     WriteReplyToClient(client, sizeof(rep), &rep);
#  254|       if (rep.num_modifiers)
#  255|           WriteToClient(client, length * 4, modifiers_failed);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def196]
xwayland-24.1.9/Xi/xipassivegrab.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘modifiers_failed’
xwayland-24.1.9/Xi/xipassivegrab.c:99:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:129:62: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:125:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:134:8: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:144:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:148:32: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:147:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:151:20: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:155:16: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:186:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:189:11: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:190:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:193:42: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:195:9: acquire_memory: allocated here
xwayland-24.1.9/Xi/xipassivegrab.c:196:8: branch_false: following ‘false’ branch (when ‘modifiers_failed’ is non-NULL)...
xwayland-24.1.9/Xi/xipassivegrab.c:201:15: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:203:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:206:27: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:208:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:211:17: branch_false: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:238:12: branch_true: following ‘true’ branch (when ‘status != 0’)...
xwayland-24.1.9/Xi/xipassivegrab.c:239:60: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:254:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xipassivegrab.c:255:31: branch_true: ...to here
xwayland-24.1.9/Xi/xipassivegrab.c:255:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/Xi/xipassivegrab.c:255:9: danger: ‘modifiers_failed’ leaks here; was allocated at [(19)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/18)
#  253|       WriteReplyToClient(client, sizeof(rep), &rep);
#  254|       if (rep.num_modifiers)
#  255|->         WriteToClient(client, length * 4, modifiers_failed);
#  256|   
#  257|    out:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def197]
xwayland-24.1.9/Xi/xiproperty.c:770:25: warning[-Wanalyzer-malloc-leak]: leak of ‘prop’
xwayland-24.1.9/Xi/xiproperty.c:1027:1: enter_function: entry to ‘SProcXChangeDeviceProperty’
xwayland-24.1.9/Xi/xiproperty.c:1031:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1032:5: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1036:12: call_function: calling ‘ProcXChangeDeviceProperty’ from ‘SProcXChangeDeviceProperty’
#  768|                   while (handler) {
#  769|                       if (handler->SetProperty) {
#  770|->                         input_lock();
#  771|                           rc = handler->SetProperty(dev, prop->propertyName,
#  772|                                                     &new_value, checkonly);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
xwayland-24.1.9/Xi/xiproperty.c:771:30: warning[-Wanalyzer-malloc-leak]: leak of ‘prop’
xwayland-24.1.9/Xi/xiproperty.c:1027:1: enter_function: entry to ‘SProcXChangeDeviceProperty’
xwayland-24.1.9/Xi/xiproperty.c:1031:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1032:5: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1036:12: call_function: calling ‘ProcXChangeDeviceProperty’ from ‘SProcXChangeDeviceProperty’
#  769|                       if (handler->SetProperty) {
#  770|                           input_lock();
#  771|->                         rc = handler->SetProperty(dev, prop->propertyName,
#  772|                                                     &new_value, checkonly);
#  773|                           input_unlock();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def199]
xwayland-24.1.9/Xi/xiproperty.c:773:25: warning[-Wanalyzer-malloc-leak]: leak of ‘prop’
xwayland-24.1.9/Xi/xiproperty.c:1027:1: enter_function: entry to ‘SProcXChangeDeviceProperty’
xwayland-24.1.9/Xi/xiproperty.c:1031:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1032:5: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1036:12: call_function: calling ‘ProcXChangeDeviceProperty’ from ‘SProcXChangeDeviceProperty’
#  771|                           rc = handler->SetProperty(dev, prop->propertyName,
#  772|                                                     &new_value, checkonly);
#  773|->                         input_unlock();
#  774|                           if (checkonly && rc != Success) {
#  775|                               free(new_value.data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def200]
xwayland-24.1.9/Xi/xiproperty.c:878:5: warning[-Wanalyzer-malloc-leak]: leak of ‘atoms’
xwayland-24.1.9/Xi/xiproperty.c:851:1: enter_function: entry to ‘ProcXListDeviceProperties’
xwayland-24.1.9/Xi/xiproperty.c:860:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:862:32: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:863:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:866:10: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:866:10: call_function: calling ‘list_atoms’ from ‘ProcXListDeviceProperties’
xwayland-24.1.9/Xi/xiproperty.c:866:10: return_function: returning to ‘ProcXListDeviceProperties’ from ‘list_atoms’
xwayland-24.1.9/Xi/xiproperty.c:867:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:873:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:878:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiproperty.c:878:5: branch_true: ...to here
xwayland-24.1.9/Xi/xiproperty.c:878:5: throw: if the called function throws an exception...
xwayland-24.1.9/Xi/xiproperty.c:878:5: danger: ‘atoms’ leaks here; was allocated at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
#  876|       };
#  877|   
#  878|->     WriteReplyToClient(client, sizeof(xListDevicePropertiesReply), &rep);
#  879|       if (natoms) {
#  880|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
xwayland-24.1.9/Xi/xiproperty.c:881:9: warning[-Wanalyzer-malloc-leak]: leak of ‘atoms’
xwayland-24.1.9/Xi/xiproperty.c:851:1: enter_function: entry to ‘ProcXListDeviceProperties’
xwayland-24.1.9/Xi/xiproperty.c:860:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:862:32: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:863:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:866:10: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:866:10: call_function: calling ‘list_atoms’ from ‘ProcXListDeviceProperties’
xwayland-24.1.9/Xi/xiproperty.c:866:10: return_function: returning to ‘ProcXListDeviceProperties’ from ‘list_atoms’
xwayland-24.1.9/Xi/xiproperty.c:867:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:873:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:879:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiproperty.c:880:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiproperty.c:881:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiproperty.c:881:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiproperty.c:881:9: throw: if ‘Swap32Write’ throws an exception...
xwayland-24.1.9/Xi/xiproperty.c:881:9: danger: ‘atoms’ leaks here; was allocated at [(10)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/9)
#  879|       if (natoms) {
#  880|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
#  881|->         WriteSwappedDataToClient(client, natoms * sizeof(Atom), atoms);
#  882|           free(atoms);
#  883|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
xwayland-24.1.9/Xi/xiproperty.c:1119:5: warning[-Wanalyzer-malloc-leak]: leak of ‘atoms’
xwayland-24.1.9/Xi/xiproperty.c:1092:1: enter_function: entry to ‘ProcXIListProperties’
xwayland-24.1.9/Xi/xiproperty.c:1101:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1103:32: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1104:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1107:10: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1107:10: call_function: calling ‘list_atoms’ from ‘ProcXIListProperties’
xwayland-24.1.9/Xi/xiproperty.c:1107:10: return_function: returning to ‘ProcXIListProperties’ from ‘list_atoms’
xwayland-24.1.9/Xi/xiproperty.c:1108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1114:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1119:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1119:5: branch_true: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1119:5: throw: if the called function throws an exception...
xwayland-24.1.9/Xi/xiproperty.c:1119:5: danger: ‘atoms’ leaks here; was allocated at [(10)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/9)
# 1117|       };
# 1118|   
# 1119|->     WriteReplyToClient(client, sizeof(xXIListPropertiesReply), &rep);
# 1120|       if (natoms) {
# 1121|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
xwayland-24.1.9/Xi/xiproperty.c:1122:9: warning[-Wanalyzer-malloc-leak]: leak of ‘atoms’
xwayland-24.1.9/Xi/xiproperty.c:1092:1: enter_function: entry to ‘ProcXIListProperties’
xwayland-24.1.9/Xi/xiproperty.c:1101:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1103:32: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1104:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1107:10: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1107:10: call_function: calling ‘list_atoms’ from ‘ProcXIListProperties’
xwayland-24.1.9/Xi/xiproperty.c:1107:10: return_function: returning to ‘ProcXIListProperties’ from ‘list_atoms’
xwayland-24.1.9/Xi/xiproperty.c:1108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1114:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1120:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1121:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1122:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiproperty.c:1122:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiproperty.c:1122:9: throw: if ‘Swap32Write’ throws an exception...
xwayland-24.1.9/Xi/xiproperty.c:1122:9: danger: ‘atoms’ leaks here; was allocated at [(10)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/9)
# 1120|       if (natoms) {
# 1121|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
# 1122|->         WriteSwappedDataToClient(client, natoms * sizeof(Atom), atoms);
# 1123|           free(atoms);
# 1124|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def204]
xwayland-24.1.9/Xi/xiquerydevice.c:180:37: warning[-Wanalyzer-malloc-leak]: leak of ‘skip’
xwayland-24.1.9/Xi/xiquerydevice.c:69:1: enter_function: entry to ‘ProcXIQueryDevice’
xwayland-24.1.9/Xi/xiquerydevice.c:79:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:81:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:81:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:91:23: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:91:16: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerydevice.c:92:12: branch_false: following ‘false’ branch (when ‘skip’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerydevice.c:95:20: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:95:39: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:96:48: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:96:23: call_function: calling ‘ShouldSkipDevice’ from ‘ProcXIQueryDevice’
#  178|   {
#  179|       /* if all devices are not being queried, only master devices are */
#  180|->     if (deviceid == XIAllDevices || IsMaster(dev)) {
#  181|           int rc = XaceHook(XACE_DEVICE_ACCESS, client, dev, DixGetAttrAccess);
#  182|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def205]
xwayland-24.1.9/Xi/xiquerydevice.c:181:18: warning[-Wanalyzer-malloc-leak]: leak of ‘skip’
xwayland-24.1.9/Xi/xiquerydevice.c:69:1: enter_function: entry to ‘ProcXIQueryDevice’
xwayland-24.1.9/Xi/xiquerydevice.c:79:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:81:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:81:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:91:23: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:91:16: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerydevice.c:92:12: branch_false: following ‘false’ branch (when ‘skip’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerydevice.c:95:20: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:95:39: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:96:48: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:96:23: call_function: calling ‘ShouldSkipDevice’ from ‘ProcXIQueryDevice’
#  179|       /* if all devices are not being queried, only master devices are */
#  180|       if (deviceid == XIAllDevices || IsMaster(dev)) {
#  181|->         int rc = XaceHook(XACE_DEVICE_ACCESS, client, dev, DixGetAttrAccess);
#  182|   
#  183|           if (rc == Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
xwayland-24.1.9/Xi/xiquerydevice.c:516:27: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
xwayland-24.1.9/Xi/xiquerydevice.c:69:1: enter_function: entry to ‘ProcXIQueryDevice’
xwayland-24.1.9/Xi/xiquerydevice.c:79:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:81:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:81:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:83:14: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:84:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:88:16: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:108:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerydevice.c:109:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerydevice.c:117:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:123:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: call_function: calling ‘ListDeviceInfo’ from ‘ProcXIQueryDevice’
#  514|   GetDeviceUse(DeviceIntPtr dev, uint16_t * attachment)
#  515|   {
#  516|->     DeviceIntPtr master = GetMaster(dev, MASTER_ATTACHED);
#  517|       int use;
#  518|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
xwayland-24.1.9/Xi/xiquerydevice.c:519:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
xwayland-24.1.9/Xi/xiquerydevice.c:69:1: enter_function: entry to ‘ProcXIQueryDevice’
xwayland-24.1.9/Xi/xiquerydevice.c:79:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:81:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:81:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:83:14: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:84:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:88:16: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:108:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerydevice.c:109:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerydevice.c:117:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:123:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: call_function: calling ‘ListDeviceInfo’ from ‘ProcXIQueryDevice’
#  517|       int use;
#  518|   
#  519|->     if (IsMaster(dev)) {
#  520|           DeviceIntPtr paired = GetPairedDevice(dev);
#  521|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
xwayland-24.1.9/Xi/xiquerydevice.c:520:31: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
xwayland-24.1.9/Xi/xiquerydevice.c:69:1: enter_function: entry to ‘ProcXIQueryDevice’
xwayland-24.1.9/Xi/xiquerydevice.c:79:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:81:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:81:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:83:14: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:84:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:88:16: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:108:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerydevice.c:109:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerydevice.c:117:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:123:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: call_function: calling ‘ListDeviceInfo’ from ‘ProcXIQueryDevice’
#  518|   
#  519|       if (IsMaster(dev)) {
#  520|->         DeviceIntPtr paired = GetPairedDevice(dev);
#  521|   
#  522|           use = IsPointerDevice(dev) ? XIMasterPointer : XIMasterKeyboard;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
xwayland-24.1.9/Xi/xiquerydevice.c:522:15: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
xwayland-24.1.9/Xi/xiquerydevice.c:69:1: enter_function: entry to ‘ProcXIQueryDevice’
xwayland-24.1.9/Xi/xiquerydevice.c:79:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:81:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:81:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:83:14: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:84:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:88:16: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:108:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerydevice.c:109:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerydevice.c:117:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:123:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: call_function: calling ‘ListDeviceInfo’ from ‘ProcXIQueryDevice’
#  520|           DeviceIntPtr paired = GetPairedDevice(dev);
#  521|   
#  522|->         use = IsPointerDevice(dev) ? XIMasterPointer : XIMasterKeyboard;
#  523|           *attachment = (paired ? paired->id : 0);
#  524|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
xwayland-24.1.9/Xi/xiquerydevice.c:525:15: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
xwayland-24.1.9/Xi/xiquerydevice.c:69:1: enter_function: entry to ‘ProcXIQueryDevice’
xwayland-24.1.9/Xi/xiquerydevice.c:79:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:81:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:81:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:83:14: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:84:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:88:16: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:108:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerydevice.c:109:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerydevice.c:117:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:123:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: call_function: calling ‘ListDeviceInfo’ from ‘ProcXIQueryDevice’
#  523|           *attachment = (paired ? paired->id : 0);
#  524|       }
#  525|->     else if (!IsFloating(dev)) {
#  526|           use = IsPointerDevice(master) ? XISlavePointer : XISlaveKeyboard;
#  527|           *attachment = master->id;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
xwayland-24.1.9/Xi/xiquerydevice.c:526:15: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
xwayland-24.1.9/Xi/xiquerydevice.c:69:1: enter_function: entry to ‘ProcXIQueryDevice’
xwayland-24.1.9/Xi/xiquerydevice.c:79:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:81:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:81:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:83:14: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:84:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:88:16: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:108:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerydevice.c:109:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerydevice.c:117:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:123:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: call_function: calling ‘ListDeviceInfo’ from ‘ProcXIQueryDevice’
#  524|       }
#  525|       else if (!IsFloating(dev)) {
#  526|->         use = IsPointerDevice(master) ? XISlavePointer : XISlaveKeyboard;
#  527|           *attachment = master->id;
#  528|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
xwayland-24.1.9/Xi/xiquerydevice.c:578:10: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
xwayland-24.1.9/Xi/xiquerydevice.c:69:1: enter_function: entry to ‘ProcXIQueryDevice’
xwayland-24.1.9/Xi/xiquerydevice.c:79:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:81:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:81:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:83:14: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:84:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:88:16: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:108:12: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerydevice.c:109:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerydevice.c:117:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:123:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerydevice.c:124:15: call_function: calling ‘ListDeviceInfo’ from ‘ProcXIQueryDevice’
#  576|   
#  577|       /* Check if the current device state should be suppressed */
#  578|->     rc = XaceHook(XACE_DEVICE_ACCESS, client, dev, DixReadAccess);
#  579|   
#  580|       if (dev->button) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
xwayland-24.1.9/Xi/xiquerypointer.c:173:21: warning[-Wanalyzer-malloc-leak]: leak of ‘buttons’
xwayland-24.1.9/Xi/xiquerypointer.c:77:1: enter_function: entry to ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:91:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:97:34: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: call_function: calling ‘dixLookupPrivate’ from ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: return_function: returning to ‘ProcXIQueryPointer’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xiquerypointer.c:103:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:108:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:119:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:151:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:154:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:156:19: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: following ‘false’ branch (when ‘buttons’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:171:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:172:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:173:21: throw: if ‘double_to_fp1616’ throws an exception...
xwayland-24.1.9/Xi/xiquerypointer.c:173:21: danger: ‘buttons’ leaks here; was allocated at [(18)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/17)
#  171|       if (pSprite->hot.pScreen == pWin->drawable.pScreen) {
#  172|           rep.same_screen = xTrue;
#  173|->         rep.win_x = double_to_fp1616(pSprite->hot.x - pWin->drawable.x);
#  174|           rep.win_y = double_to_fp1616(pSprite->hot.y - pWin->drawable.y);
#  175|           for (t = pSprite->win; t; t = t->parent)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
xwayland-24.1.9/Xi/xiquerypointer.c:174:21: warning[-Wanalyzer-malloc-leak]: leak of ‘buttons’
xwayland-24.1.9/Xi/xiquerypointer.c:77:1: enter_function: entry to ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:91:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:97:34: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: call_function: calling ‘dixLookupPrivate’ from ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: return_function: returning to ‘ProcXIQueryPointer’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xiquerypointer.c:103:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:108:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:119:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:151:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:154:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:156:19: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: following ‘false’ branch (when ‘buttons’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:171:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:172:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:174:21: throw: if ‘double_to_fp1616’ throws an exception...
xwayland-24.1.9/Xi/xiquerypointer.c:174:21: danger: ‘buttons’ leaks here; was allocated at [(18)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/17)
#  172|           rep.same_screen = xTrue;
#  173|           rep.win_x = double_to_fp1616(pSprite->hot.x - pWin->drawable.x);
#  174|->         rep.win_y = double_to_fp1616(pSprite->hot.y - pWin->drawable.y);
#  175|           for (t = pSprite->win; t; t = t->parent)
#  176|               if (t->parent == pWin) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
xwayland-24.1.9/Xi/xiquerypointer.c:189:23: warning[-Wanalyzer-malloc-leak]: leak of ‘buttons’
xwayland-24.1.9/Xi/xiquerypointer.c:77:1: enter_function: entry to ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:91:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:97:34: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: call_function: calling ‘dixLookupPrivate’ from ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: return_function: returning to ‘ProcXIQueryPointer’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xiquerypointer.c:103:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:108:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:119:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:151:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:154:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:156:19: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: following ‘false’ branch (when ‘buttons’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:171:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:188:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:188:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:189:40: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:189:23: throw: if ‘double_to_fp1616’ throws an exception...
xwayland-24.1.9/Xi/xiquerypointer.c:189:23: danger: ‘buttons’ leaks here; was allocated at [(18)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/17)
#  187|   #ifdef PANORAMIX
#  188|       if (!noPanoramiXExtension) {
#  189|->         rep.root_x += double_to_fp1616(screenInfo.screens[0]->x);
#  190|           rep.root_y += double_to_fp1616(screenInfo.screens[0]->y);
#  191|           if (stuff->win == rep.root) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
xwayland-24.1.9/Xi/xiquerypointer.c:190:23: warning[-Wanalyzer-malloc-leak]: leak of ‘buttons’
xwayland-24.1.9/Xi/xiquerypointer.c:77:1: enter_function: entry to ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:91:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:97:34: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: call_function: calling ‘dixLookupPrivate’ from ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: return_function: returning to ‘ProcXIQueryPointer’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xiquerypointer.c:103:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:108:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:119:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:151:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:154:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:156:19: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: following ‘false’ branch (when ‘buttons’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:171:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:188:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:188:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:189:40: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:190:23: throw: if ‘double_to_fp1616’ throws an exception...
xwayland-24.1.9/Xi/xiquerypointer.c:190:23: danger: ‘buttons’ leaks here; was allocated at [(18)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/17)
#  188|       if (!noPanoramiXExtension) {
#  189|           rep.root_x += double_to_fp1616(screenInfo.screens[0]->x);
#  190|->         rep.root_y += double_to_fp1616(screenInfo.screens[0]->y);
#  191|           if (stuff->win == rep.root) {
#  192|               rep.win_x += double_to_fp1616(screenInfo.screens[0]->x);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def217]
xwayland-24.1.9/Xi/xiquerypointer.c:192:26: warning[-Wanalyzer-malloc-leak]: leak of ‘buttons’
xwayland-24.1.9/Xi/xiquerypointer.c:77:1: enter_function: entry to ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:91:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:97:34: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: call_function: calling ‘dixLookupPrivate’ from ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: return_function: returning to ‘ProcXIQueryPointer’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xiquerypointer.c:103:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:108:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:119:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:151:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:154:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:156:19: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: following ‘false’ branch (when ‘buttons’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:171:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:188:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:188:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:189:40: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:191:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:192:43: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:192:26: throw: if ‘double_to_fp1616’ throws an exception...
xwayland-24.1.9/Xi/xiquerypointer.c:192:26: danger: ‘buttons’ leaks here; was allocated at [(18)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/17)
#  190|           rep.root_y += double_to_fp1616(screenInfo.screens[0]->y);
#  191|           if (stuff->win == rep.root) {
#  192|->             rep.win_x += double_to_fp1616(screenInfo.screens[0]->x);
#  193|               rep.win_y += double_to_fp1616(screenInfo.screens[0]->y);
#  194|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
xwayland-24.1.9/Xi/xiquerypointer.c:193:26: warning[-Wanalyzer-malloc-leak]: leak of ‘buttons’
xwayland-24.1.9/Xi/xiquerypointer.c:77:1: enter_function: entry to ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:91:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:97:34: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: call_function: calling ‘dixLookupPrivate’ from ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: return_function: returning to ‘ProcXIQueryPointer’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xiquerypointer.c:103:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:108:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:119:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:151:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:154:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:156:19: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: following ‘false’ branch (when ‘buttons’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:171:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:188:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:188:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:189:40: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:191:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:192:43: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:193:26: throw: if ‘double_to_fp1616’ throws an exception...
xwayland-24.1.9/Xi/xiquerypointer.c:193:26: danger: ‘buttons’ leaks here; was allocated at [(18)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/17)
#  191|           if (stuff->win == rep.root) {
#  192|               rep.win_x += double_to_fp1616(screenInfo.screens[0]->x);
#  193|->             rep.win_y += double_to_fp1616(screenInfo.screens[0]->y);
#  194|           }
#  195|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def219]
xwayland-24.1.9/Xi/xiquerypointer.c:198:5: warning[-Wanalyzer-malloc-leak]: leak of ‘buttons’
xwayland-24.1.9/Xi/xiquerypointer.c:77:1: enter_function: entry to ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:91:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:97:34: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: call_function: calling ‘dixLookupPrivate’ from ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: return_function: returning to ‘ProcXIQueryPointer’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xiquerypointer.c:103:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:108:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:119:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:151:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:154:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:156:19: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: following ‘false’ branch (when ‘buttons’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:171:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:188:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:198:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:198:5: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:198:5: throw: if the called function throws an exception...
xwayland-24.1.9/Xi/xiquerypointer.c:198:5: danger: ‘buttons’ leaks here; was allocated at [(18)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/17)
#  196|   #endif
#  197|   
#  198|->     WriteReplyToClient(client, sizeof(xXIQueryPointerReply), &rep);
#  199|       if (buttons)
#  200|           WriteToClient(client, buttons_size, buttons);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
xwayland-24.1.9/Xi/xiquerypointer.c:200:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buttons’
xwayland-24.1.9/Xi/xiquerypointer.c:77:1: enter_function: entry to ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:91:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:97:34: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: call_function: calling ‘dixLookupPrivate’ from ‘ProcXIQueryPointer’
xwayland-24.1.9/Xi/xiquerypointer.c:97:17: return_function: returning to ‘ProcXIQueryPointer’ from ‘dixLookupPrivate’
xwayland-24.1.9/Xi/xiquerypointer.c:103:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:108:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:114:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:119:13: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:151:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:154:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:156:19: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: following ‘false’ branch (when ‘buttons’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerypointer.c:157:12: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:171:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:188:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:198:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiquerypointer.c:198:5: branch_false: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:199:8: branch_true: following ‘true’ branch (when ‘buttons’ is non-NULL)...
xwayland-24.1.9/Xi/xiquerypointer.c:200:9: branch_true: ...to here
xwayland-24.1.9/Xi/xiquerypointer.c:200:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/Xi/xiquerypointer.c:200:9: danger: ‘buttons’ leaks here; was allocated at [(18)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/17)
#  198|       WriteReplyToClient(client, sizeof(xXIQueryPointerReply), &rep);
#  199|       if (buttons)
#  200|->         WriteToClient(client, buttons_size, buttons);
#  201|   
#  202|       free(buttons);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
xwayland-24.1.9/Xi/xiselectev.c:392:40: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
xwayland-24.1.9/Xi/xiselectev.c:355:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiselectev.c:357:32: branch_false: ...to here
xwayland-24.1.9/Xi/xiselectev.c:358:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiselectev.c:364:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiselectev.c:369:13: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiselectev.c:369:5: branch_true: ...to here
xwayland-24.1.9/Xi/xiselectev.c:370:8: branch_true: following ‘true’ branch (when ‘masks’ is non-NULL)...
xwayland-24.1.9/Xi/xiselectev.c:371:14: branch_true: ...to here
xwayland-24.1.9/Xi/xiselectev.c:371:60: branch_true: following ‘true’ branch (when ‘others’ is non-NULL)...
xwayland-24.1.9/Xi/xiselectev.c:373:17: branch_true: ...to here
xwayland-24.1.9/Xi/xiselectev.c:379:8: branch_false: following ‘false’ branch (when ‘others’ is non-NULL)...
xwayland-24.1.9/Xi/xiselectev.c:385:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiselectev.c:385:9: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiselectev.c:386:8: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
xwayland-24.1.9/Xi/xiselectev.c:386:8: branch_false: ...to here
xwayland-24.1.9/Xi/xiselectev.c:390:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
xwayland-24.1.9/Xi/xiselectev.c:392:61: branch_true: ...to here
xwayland-24.1.9/Xi/xiselectev.c:392:40: throw: if ‘xi2mask_get_one_mask’ throws an exception...
xwayland-24.1.9/Xi/xiselectev.c:392:40: danger: ‘buffer’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  390|       for (i = 0; i < MAXDEVICES; i++) {
#  391|           int j;
#  392|->         const unsigned char *devmask = xi2mask_get_one_mask(others->xi2mask, i);
#  393|   
#  394|           if (i > 2) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
xwayland-24.1.9/Xi/xiselectev.c:400:18: warning[-Wanalyzer-malloc-leak]: leak of ‘buffer’
xwayland-24.1.9/Xi/xiselectev.c:355:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiselectev.c:357:32: branch_false: ...to here
xwayland-24.1.9/Xi/xiselectev.c:358:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/Xi/xiselectev.c:364:27: branch_false: ...to here
xwayland-24.1.9/Xi/xiselectev.c:369:13: branch_true: following ‘true’ branch...
xwayland-24.1.9/Xi/xiselectev.c:369:5: branch_true: ...to here
xwayland-24.1.9/Xi/xiselectev.c:370:8: branch_true: following ‘true’ branch (when ‘masks’ is non-NULL)...
xwayland-24.1.9/Xi/xiselectev.c:371:14: branch_true: ...to here
xwayland-24.1.9/Xi/xiselectev.c:371:60: branch_true: following ‘true’ branch (when ‘others’ is non-NULL)...
xwayland-24.1.9/Xi/xiselectev.c:373:17: branch_true: ...to here
xwayland-24.1.9/Xi/xiselectev.c:379:8: branch_false: following ‘false’ branch (when ‘others’ is non-NULL)...
xwayland-24.1.9/Xi/xiselectev.c:385:9: branch_false: ...to here
xwayland-24.1.9/Xi/xiselectev.c:385:9: acquire_memory: allocated here
xwayland-24.1.9/Xi/xiselectev.c:386:8: branch_false: following ‘false’ branch (when ‘buffer’ is non-NULL)...
xwayland-24.1.9/Xi/xiselectev.c:386:8: branch_false: ...to here
xwayland-24.1.9/Xi/xiselectev.c:390:17: branch_true: following ‘true’ branch (when ‘i != 256’)...
xwayland-24.1.9/Xi/xiselectev.c:392:61: branch_true: ...to here
xwayland-24.1.9/Xi/xiselectev.c:394:12: branch_false: following ‘false’ branch (when ‘i <= 2’)...
xwayland-24.1.9/Xi/xiselectev.c:400:36: branch_false: ...to here
xwayland-24.1.9/Xi/xiselectev.c:400:18: throw: if ‘xi2mask_mask_size’ throws an exception...
xwayland-24.1.9/Xi/xiselectev.c:400:18: danger: ‘buffer’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  398|           }
#  399|   
#  400|->         for (j = xi2mask_mask_size(others->xi2mask) - 1; j >= 0; j--) {
#  401|               if (devmask[j] != 0) {
#  402|                   int mask_len = (j + 4) / 4;     /* j is an index, hence + 4, not + 3 */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def223]
xwayland-24.1.9/composite/compalloc.c:113:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ccw’
xwayland-24.1.9/composite/compalloc.c:344:1: enter_function: entry to ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: return_function: returning to ‘compRedirectSubwindows’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:362:11: acquire_memory: allocated here
xwayland-24.1.9/composite/compalloc.c:363:8: branch_false: following ‘false’ branch (when ‘ccw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:365:28: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:370:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:383:10: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:383:36: branch_true: following ‘true’ branch (when ‘pChild’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:384:19: branch_true: ...to here
xwayland-24.1.9/composite/compalloc.c:384:19: call_function: calling ‘compRedirectWindow’ from ‘compRedirectSubwindows’
#  111|           return FALSE;
#  112|   
#  113|->     (*pScreen->MarkOverlappedWindows) (pWin, pWin, &pLayerWin);
#  114|       (*pScreen->MarkWindow) (pLayerWin->parent);
#  115|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def224]
xwayland-24.1.9/composite/compalloc.c:113:5: warning[-Wanalyzer-malloc-leak]: leak of ‘cw’
xwayland-24.1.9/composite/compalloc.c:136:1: enter_function: entry to ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:138:24: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:138:24: return_function: returning to ‘compRedirectWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:140:24: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:140:24: return_function: returning to ‘compRedirectWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:145:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:149:10: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:149:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:155:9: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:166:8: branch_false: following ‘false’ branch (when ‘ccw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:168:28: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:173:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compalloc.c:174:14: branch_true: ...to here
xwayland-24.1.9/composite/compalloc.c:174:14: acquire_memory: allocated here
xwayland-24.1.9/composite/compalloc.c:175:12: branch_false: following ‘false’ branch (when ‘cw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:179:22: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:183:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:189:21: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:189:21: call_function: calling ‘compMarkWindows’ from ‘compRedirectWindow’
#  111|           return FALSE;
#  112|   
#  113|->     (*pScreen->MarkOverlappedWindows) (pWin, pWin, &pLayerWin);
#  114|       (*pScreen->MarkWindow) (pLayerWin->parent);
#  115|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
xwayland-24.1.9/composite/compalloc.c:114:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ccw’
xwayland-24.1.9/composite/compalloc.c:344:1: enter_function: entry to ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: return_function: returning to ‘compRedirectSubwindows’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:362:11: acquire_memory: allocated here
xwayland-24.1.9/composite/compalloc.c:363:8: branch_false: following ‘false’ branch (when ‘ccw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:365:28: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:370:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:383:10: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:383:36: branch_true: following ‘true’ branch (when ‘pChild’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:384:19: branch_true: ...to here
xwayland-24.1.9/composite/compalloc.c:384:19: call_function: calling ‘compRedirectWindow’ from ‘compRedirectSubwindows’
#  112|   
#  113|       (*pScreen->MarkOverlappedWindows) (pWin, pWin, &pLayerWin);
#  114|->     (*pScreen->MarkWindow) (pLayerWin->parent);
#  115|   
#  116|       *ppLayerWin = pLayerWin;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
xwayland-24.1.9/composite/compalloc.c:114:5: warning[-Wanalyzer-malloc-leak]: leak of ‘cw’
xwayland-24.1.9/composite/compalloc.c:136:1: enter_function: entry to ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:138:24: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:138:24: return_function: returning to ‘compRedirectWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:140:24: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:140:24: return_function: returning to ‘compRedirectWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:145:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:149:10: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:149:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:155:9: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:166:8: branch_false: following ‘false’ branch (when ‘ccw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:168:28: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:173:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compalloc.c:174:14: branch_true: ...to here
xwayland-24.1.9/composite/compalloc.c:174:14: acquire_memory: allocated here
xwayland-24.1.9/composite/compalloc.c:175:12: branch_false: following ‘false’ branch (when ‘cw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:179:22: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:183:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:189:21: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:189:21: call_function: calling ‘compMarkWindows’ from ‘compRedirectWindow’
#  112|   
#  113|       (*pScreen->MarkOverlappedWindows) (pWin, pWin, &pLayerWin);
#  114|->     (*pScreen->MarkWindow) (pLayerWin->parent);
#  115|   
#  116|       *ppLayerWin = pLayerWin;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
xwayland-24.1.9/composite/compalloc.c:168:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ccw’
xwayland-24.1.9/composite/compalloc.c:344:1: enter_function: entry to ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: return_function: returning to ‘compRedirectSubwindows’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:362:11: acquire_memory: allocated here
xwayland-24.1.9/composite/compalloc.c:363:8: branch_false: following ‘false’ branch (when ‘ccw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:365:28: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:370:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:383:10: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:383:36: branch_true: following ‘true’ branch (when ‘pChild’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:384:19: branch_true: ...to here
xwayland-24.1.9/composite/compalloc.c:384:19: call_function: calling ‘compRedirectWindow’ from ‘compRedirectSubwindows’
#  166|       if (!ccw)
#  167|           return BadAlloc;
#  168|->     ccw->id = FakeClientID(pClient->index);
#  169|       ccw->update = update;
#  170|       /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def228]
xwayland-24.1.9/composite/compalloc.c:179:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ccw’
xwayland-24.1.9/composite/compalloc.c:344:1: enter_function: entry to ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: return_function: returning to ‘compRedirectSubwindows’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:362:11: acquire_memory: allocated here
xwayland-24.1.9/composite/compalloc.c:363:8: branch_false: following ‘false’ branch (when ‘ccw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:365:28: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:370:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:383:10: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:383:36: branch_true: following ‘true’ branch (when ‘pChild’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:384:19: branch_true: ...to here
xwayland-24.1.9/composite/compalloc.c:384:19: call_function: calling ‘compRedirectWindow’ from ‘compRedirectSubwindows’
#  177|               return BadAlloc;
#  178|           }
#  179|->         cw->damage = DamageCreate(compReportDamage,
#  180|                                     compDestroyDamage,
#  181|                                     DamageReportNonEmpty,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def229]
xwayland-24.1.9/composite/compalloc.c:179:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cw’
xwayland-24.1.9/composite/compalloc.c:136:1: enter_function: entry to ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:138:24: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:138:24: return_function: returning to ‘compRedirectWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:140:24: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:140:24: return_function: returning to ‘compRedirectWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:145:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:149:10: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:149:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:155:9: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:166:8: branch_false: following ‘false’ branch (when ‘ccw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:168:28: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:173:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compalloc.c:174:14: branch_true: ...to here
xwayland-24.1.9/composite/compalloc.c:174:14: acquire_memory: allocated here
xwayland-24.1.9/composite/compalloc.c:175:12: branch_false: following ‘false’ branch (when ‘cw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:179:22: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:179:22: throw: if ‘DamageCreate’ throws an exception...
xwayland-24.1.9/composite/compalloc.c:179:22: danger: ‘cw’ leaks here; was allocated at [(30)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/29)
#  177|               return BadAlloc;
#  178|           }
#  179|->         cw->damage = DamageCreate(compReportDamage,
#  180|                                     compDestroyDamage,
#  181|                                     DamageReportNonEmpty,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def230]
xwayland-24.1.9/composite/compalloc.c:203:10: warning[-Wanalyzer-malloc-leak]: leak of ‘ccw’
xwayland-24.1.9/composite/compalloc.c:136:1: enter_function: entry to ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:138:24: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:138:24: return_function: returning to ‘compRedirectWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:140:24: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectWindow’
xwayland-24.1.9/composite/compalloc.c:140:24: return_function: returning to ‘compRedirectWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:145:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:149:10: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:149:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:155:9: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:165:11: acquire_memory: allocated here
xwayland-24.1.9/composite/compalloc.c:166:8: branch_false: following ‘false’ branch (when ‘ccw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:168:28: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:173:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:201:17: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:203:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/composite/compalloc.c:203:10: danger: ‘ccw’ leaks here; was allocated at [(26)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/25)
#  201|       ccw->next = cw->clients;
#  202|       cw->clients = ccw;
#  203|->     if (!AddResource(ccw->id, CompositeClientWindowType, pWin))
#  204|           return BadAlloc;
#  205|       if (ccw->update == CompositeRedirectManual) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def231]
xwayland-24.1.9/composite/compalloc.c:365:15: warning[-Wanalyzer-malloc-leak]: leak of ‘ccw’
xwayland-24.1.9/composite/compalloc.c:344:1: enter_function: entry to ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: return_function: returning to ‘compRedirectSubwindows’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:353:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:362:11: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:362:11: acquire_memory: allocated here
xwayland-24.1.9/composite/compalloc.c:363:8: branch_false: following ‘false’ branch (when ‘ccw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:365:28: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:365:15: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/composite/compalloc.c:365:15: danger: ‘ccw’ leaks here; was allocated at [(15)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/14)
#  363|       if (!ccw)
#  364|           return BadAlloc;
#  365|->     ccw->id = FakeClientID(pClient->index);
#  366|       ccw->update = update;
#  367|       /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def232]
xwayland-24.1.9/composite/compalloc.c:402:10: warning[-Wanalyzer-malloc-leak]: leak of ‘ccw’
xwayland-24.1.9/composite/compalloc.c:344:1: enter_function: entry to ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: return_function: returning to ‘compRedirectSubwindows’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:362:11: acquire_memory: allocated here
xwayland-24.1.9/composite/compalloc.c:363:8: branch_false: following ‘false’ branch (when ‘ccw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:365:28: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:370:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:383:10: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:383:36: branch_false: following ‘false’ branch (when ‘pChild’ is NULL)...
xwayland-24.1.9/composite/compalloc.c:400:17: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:402:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/composite/compalloc.c:402:10: danger: ‘ccw’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
#  400|       ccw->next = csw->clients;
#  401|       csw->clients = ccw;
#  402|->     if (!AddResource(ccw->id, CompositeClientSubwindowsType, pWin))
#  403|           return BadAlloc;
#  404|       if (ccw->update == CompositeRedirectManual) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def233]
xwayland-24.1.9/composite/compext.c:730:14: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/composite/compext.c:712:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:714:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:714:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:720:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:720:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:722:20: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:722:20: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:722:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:725:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:729:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:730:58: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:730:14: throw: if ‘dixLookupResourceByType’ throws an exception...
xwayland-24.1.9/composite/compext.c:730:14: danger: ‘newPix’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  728|   
#  729|       FOR_NSCREENS(i) {
#  730|->         rc = dixLookupResourceByType((void **) &pWin, win->info[i].id,
#  731|                                        RT_WINDOW, client, DixGetAttrAccess);
#  732|           if (rc != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def234]
xwayland-24.1.9/composite/compext.c:749:19: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/composite/compext.c:701:1: enter_function: entry to ‘PanoramiXCompositeNameWindowPixmap’
xwayland-24.1.9/composite/compext.c:712:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:714:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:714:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:720:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:720:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:722:20: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:722:20: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:722:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:725:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:729:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:730:58: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:732:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:738:18: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:738:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:743:14: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:743:14: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeNameWindowPixmap’
xwayland-24.1.9/composite/compext.c:743:14: return_function: returning to ‘PanoramiXCompositeNameWindowPixmap’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:744:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:749:21: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:749:19: throw: if the called function throws an exception...
xwayland-24.1.9/composite/compext.c:749:19: danger: ‘newPix’ leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
#  747|           }
#  748|   
#  749|->         pPixmap = (*pWin->drawable.pScreen->GetWindowPixmap) (pWin);
#  750|           if (!pPixmap) {
#  751|               free(newPix);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
xwayland-24.1.9/composite/compext.c:755:14: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/composite/compext.c:701:1: enter_function: entry to ‘PanoramiXCompositeNameWindowPixmap’
xwayland-24.1.9/composite/compext.c:712:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:714:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:714:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:720:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:720:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:722:20: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:722:20: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:722:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:725:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:729:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:730:58: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:732:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:738:18: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:738:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:743:14: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:743:14: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeNameWindowPixmap’
xwayland-24.1.9/composite/compext.c:743:14: return_function: returning to ‘PanoramiXCompositeNameWindowPixmap’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:744:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:749:21: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:750:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:755:14: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:755:14: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/composite/compext.c:755:14: danger: ‘newPix’ leaks here; was allocated at [(8)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/7)
#  753|           }
#  754|   
#  755|->         if (!AddResource(newPix->info[i].id, RT_PIXMAP, (void *) pPixmap))
#  756|               return BadAlloc;
#  757|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def236]
xwayland-24.1.9/composite/compext.c:761:10: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/composite/compext.c:712:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:714:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:714:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:720:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:720:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:722:20: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:722:20: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:722:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:725:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:729:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:761:10: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:761:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/composite/compext.c:761:10: danger: ‘newPix’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  759|       }
#  760|   
#  761|->     if (!AddResource(stuff->pixmap, XRT_PIXMAP, (void *) newPix))
#  762|           return BadAlloc;
#  763|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
xwayland-24.1.9/composite/compext.c:798:14: warning[-Wanalyzer-malloc-leak]: leak of ‘overlayWin’
xwayland-24.1.9/composite/compext.c:768:1: enter_function: entry to ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:780:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:782:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:782:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:788:10: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:788:10: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:788:10: return_function: returning to ‘PanoramiXCompositeGetOverlayWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:789:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:790:28: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:790:28: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:790:12: branch_false: following ‘false’ branch (when ‘overlayWin’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:793:9: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:797:5: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/composite/compext.c:798:58: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:798:14: throw: if ‘dixLookupResourceByType’ throws an exception...
xwayland-24.1.9/composite/compext.c:798:14: danger: ‘overlayWin’ leaks here; was allocated at [(17)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/16)
#  796|   
#  797|       FOR_NSCREENS_BACKWARD(i) {
#  798|->         rc = dixLookupResourceByType((void **) &pWin, win->info[i].id,
#  799|                                        RT_WINDOW, client, DixGetAttrAccess);
#  800|           if (rc != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def238]
xwayland-24.1.9/composite/compext.c:811:15: warning[-Wanalyzer-malloc-leak]: leak of ‘overlayWin’
xwayland-24.1.9/composite/compext.c:768:1: enter_function: entry to ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:780:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:782:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:782:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:788:10: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:788:10: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:788:10: return_function: returning to ‘PanoramiXCompositeGetOverlayWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:789:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:790:28: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:790:28: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:790:12: branch_false: following ‘false’ branch (when ‘overlayWin’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:793:9: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:797:5: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/composite/compext.c:798:58: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:800:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:805:23: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:811:15: throw: if ‘compCreateOverlayClient’ throws an exception...
xwayland-24.1.9/composite/compext.c:811:15: danger: ‘overlayWin’ leaks here; was allocated at [(17)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/16)
#  809|            * interest in the overlay window
#  810|            */
#  811|->         pOc = compCreateOverlayClient(pScreen, client);
#  812|           if (pOc == NULL) {
#  813|               free(overlayWin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def239]
xwayland-24.1.9/composite/compext.c:822:18: warning[-Wanalyzer-malloc-leak]: leak of ‘overlayWin’
xwayland-24.1.9/composite/compext.c:768:1: enter_function: entry to ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:780:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:782:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:782:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:788:10: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:788:10: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:788:10: return_function: returning to ‘PanoramiXCompositeGetOverlayWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:789:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:790:28: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:790:28: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:790:12: branch_false: following ‘false’ branch (when ‘overlayWin’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:793:9: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:797:5: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/composite/compext.c:798:58: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:800:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:805:23: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:812:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:820:14: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:820:14: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:820:14: return_function: returning to ‘PanoramiXCompositeGetOverlayWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:822:18: throw: if ‘compCreateOverlayWindow’ throws an exception...
xwayland-24.1.9/composite/compext.c:822:18: danger: ‘overlayWin’ leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
#  820|           cs = GetCompScreen(pScreen);
#  821|           if (cs->pOverlayWin == NULL)
#  822|->             if (!compCreateOverlayWindow(pScreen)) {
#  823|                   FreeResource(pOc->resource, RT_NONE);
#  824|                   free(overlayWin);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def240]
xwayland-24.1.9/composite/compext.c:823:17: warning[-Wanalyzer-malloc-leak]: leak of ‘overlayWin’
xwayland-24.1.9/composite/compext.c:768:1: enter_function: entry to ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:780:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:782:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:782:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:788:10: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:788:10: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:788:10: return_function: returning to ‘PanoramiXCompositeGetOverlayWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:789:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:790:28: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:790:28: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:790:12: branch_false: following ‘false’ branch (when ‘overlayWin’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:793:9: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:797:5: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/composite/compext.c:798:58: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:800:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:805:23: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:812:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:820:14: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:820:14: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:820:14: return_function: returning to ‘PanoramiXCompositeGetOverlayWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:823:17: throw: if ‘FreeResource’ throws an exception...
xwayland-24.1.9/composite/compext.c:823:17: danger: ‘overlayWin’ leaks here; was allocated at [(17)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/16)
#  821|           if (cs->pOverlayWin == NULL)
#  822|               if (!compCreateOverlayWindow(pScreen)) {
#  823|->                 FreeResource(pOc->resource, RT_NONE);
#  824|                   free(overlayWin);
#  825|                   return BadAlloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def241]
xwayland-24.1.9/composite/compext.c:828:14: warning[-Wanalyzer-malloc-leak]: leak of ‘overlayWin’
xwayland-24.1.9/composite/compext.c:768:1: enter_function: entry to ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:780:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:782:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:782:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:788:10: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:788:10: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:788:10: return_function: returning to ‘PanoramiXCompositeGetOverlayWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:789:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:790:28: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:790:28: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:790:12: branch_false: following ‘false’ branch (when ‘overlayWin’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:793:9: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:797:5: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/composite/compext.c:798:58: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:800:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:805:23: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:812:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:820:14: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:820:14: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:820:14: return_function: returning to ‘PanoramiXCompositeGetOverlayWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:828:14: throw: if ‘XaceHook’ throws an exception...
xwayland-24.1.9/composite/compext.c:828:14: danger: ‘overlayWin’ leaks here; was allocated at [(17)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/16)
#  826|               }
#  827|   
#  828|->         rc = XaceHook(XACE_RESOURCE_ACCESS, client,
#  829|                         cs->pOverlayWin->drawable.id,
#  830|                         RT_WINDOW, cs->pOverlayWin, RT_NONE, NULL,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def242]
xwayland-24.1.9/composite/compext.c:833:13: warning[-Wanalyzer-malloc-leak]: leak of ‘overlayWin’
xwayland-24.1.9/composite/compext.c:768:1: enter_function: entry to ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:780:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:782:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:782:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:788:10: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:788:10: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:788:10: return_function: returning to ‘PanoramiXCompositeGetOverlayWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:789:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:790:28: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:790:28: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:790:12: branch_false: following ‘false’ branch (when ‘overlayWin’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:793:9: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:797:5: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/composite/compext.c:798:58: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:800:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:805:23: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:812:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:820:14: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:820:14: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:820:14: return_function: returning to ‘PanoramiXCompositeGetOverlayWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:833:13: throw: if ‘FreeResource’ throws an exception...
xwayland-24.1.9/composite/compext.c:833:13: danger: ‘overlayWin’ leaks here; was allocated at [(17)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/16)
#  831|                         DixGetAttrAccess);
#  832|           if (rc != Success) {
#  833|->             FreeResource(pOc->resource, RT_NONE);
#  834|               free(overlayWin);
#  835|               return rc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def243]
xwayland-24.1.9/composite/compext.c:845:9: warning[-Wanalyzer-malloc-leak]: leak of ‘overlayWin’
xwayland-24.1.9/composite/compext.c:768:1: enter_function: entry to ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:780:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:782:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:782:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:788:10: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:788:10: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeGetOverlayWindow’
xwayland-24.1.9/composite/compext.c:788:10: return_function: returning to ‘PanoramiXCompositeGetOverlayWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:789:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:790:28: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:790:28: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:790:12: branch_false: following ‘false’ branch (when ‘overlayWin’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:793:9: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:839:8: branch_true: following ‘true’ branch (when ‘overlayWin’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:839:8: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:845:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/composite/compext.c:845:9: danger: ‘overlayWin’ leaks here; was allocated at [(17)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/16)
#  843|           }
#  844|   
#  845|->         AddResource(overlayWin->info[0].id, XRT_WINDOW, overlayWin);
#  846|       }
#  847|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
xwayland-24.1.9/composite/compinit.c:272:19: warning[-Wanalyzer-malloc-leak]: leak of ‘cs’
xwayland-24.1.9/composite/compinit.c:332:1: enter_function: entry to ‘compScreenInit’
xwayland-24.1.9/composite/compinit.c:336:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:338:10: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:338:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:340:10: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:340:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:343:9: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:343:9: call_function: calling ‘dixLookupPrivate’ from ‘compScreenInit’
xwayland-24.1.9/composite/compinit.c:343:9: return_function: returning to ‘compScreenInit’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compinit.c:343:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:345:26: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:345:26: acquire_memory: allocated here
xwayland-24.1.9/composite/compinit.c:346:8: branch_false: following ‘false’ branch (when ‘cs’ is non-NULL)...
xwayland-24.1.9/composite/compinit.c:349:22: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:360:10: call_function: calling ‘compAddAlternateVisuals’ from ‘compScreenInit’
#  270|           return TRUE;
#  271|   
#  272|->     pPictFormat = PictureMatchFormat(pScreen, alt->depth, alt->format);
#  273|       if (!pPictFormat)
#  274|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def245]
xwayland-24.1.9/composite/compinit.c:276:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cs’
xwayland-24.1.9/composite/compinit.c:332:1: enter_function: entry to ‘compScreenInit’
xwayland-24.1.9/composite/compinit.c:336:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:338:10: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:338:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:340:10: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:340:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:343:9: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:343:9: call_function: calling ‘dixLookupPrivate’ from ‘compScreenInit’
xwayland-24.1.9/composite/compinit.c:343:9: return_function: returning to ‘compScreenInit’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compinit.c:343:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:345:26: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:345:26: acquire_memory: allocated here
xwayland-24.1.9/composite/compinit.c:346:8: branch_false: following ‘false’ branch (when ‘cs’ is non-NULL)...
xwayland-24.1.9/composite/compinit.c:349:22: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:360:10: call_function: calling ‘compAddAlternateVisuals’ from ‘compScreenInit’
#  274|           return FALSE;
#  275|   
#  276|->     if (ResizeVisualArray(pScreen, 1, depth) == FALSE) {
#  277|           return FALSE;
#  278|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
xwayland-24.1.9/composite/compinit.c:305:27: warning[-Wanalyzer-malloc-leak]: leak of ‘cs’
xwayland-24.1.9/composite/compinit.c:332:1: enter_function: entry to ‘compScreenInit’
xwayland-24.1.9/composite/compinit.c:336:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:338:10: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:338:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:340:10: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:340:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:343:9: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:343:9: call_function: calling ‘dixLookupPrivate’ from ‘compScreenInit’
xwayland-24.1.9/composite/compinit.c:343:9: return_function: returning to ‘compScreenInit’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compinit.c:343:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:345:26: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:345:26: acquire_memory: allocated here
xwayland-24.1.9/composite/compinit.c:346:8: branch_false: following ‘false’ branch (when ‘cs’ is non-NULL)...
xwayland-24.1.9/composite/compinit.c:349:22: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:360:10: call_function: calling ‘compAddAlternateVisuals’ from ‘compScreenInit’
#  303|            * This lets DIX compute suitable masks for colormap allocations
#  304|            */
#  305|->         visual->nplanes = Ones(visual->redMask |
#  306|                                  visual->greenMask |
#  307|                                  visual->blueMask | alphaMask);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def247]
xwayland-24.1.9/composite/compinit.c:309:41: warning[-Wanalyzer-malloc-leak]: leak of ‘cs’
xwayland-24.1.9/composite/compinit.c:332:1: enter_function: entry to ‘compScreenInit’
xwayland-24.1.9/composite/compinit.c:336:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:338:10: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:338:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:340:10: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:340:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:343:9: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:343:9: call_function: calling ‘dixLookupPrivate’ from ‘compScreenInit’
xwayland-24.1.9/composite/compinit.c:343:9: return_function: returning to ‘compScreenInit’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compinit.c:343:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:345:26: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:345:26: acquire_memory: allocated here
xwayland-24.1.9/composite/compinit.c:346:8: branch_false: following ‘false’ branch (when ‘cs’ is non-NULL)...
xwayland-24.1.9/composite/compinit.c:349:22: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:360:10: call_function: calling ‘compAddAlternateVisuals’ from ‘compScreenInit’
#  307|                                  visual->blueMask | alphaMask);
#  308|           /* find widest component */
#  309|->         visual->ColormapEntries = (1 << max(Ones(visual->redMask),
#  310|                                               max(Ones(visual->greenMask),
#  311|                                                   Ones(visual->blueMask))));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
xwayland-24.1.9/composite/compinit.c:349:22: warning[-Wanalyzer-malloc-leak]: leak of ‘cs’
xwayland-24.1.9/composite/compinit.c:332:1: enter_function: entry to ‘compScreenInit’
xwayland-24.1.9/composite/compinit.c:336:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:338:10: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:338:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:340:10: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:340:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:343:9: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:343:9: call_function: calling ‘dixLookupPrivate’ from ‘compScreenInit’
xwayland-24.1.9/composite/compinit.c:343:9: return_function: returning to ‘compScreenInit’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compinit.c:343:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compinit.c:345:26: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:345:26: acquire_memory: allocated here
xwayland-24.1.9/composite/compinit.c:346:8: branch_false: following ‘false’ branch (when ‘cs’ is non-NULL)...
xwayland-24.1.9/composite/compinit.c:349:22: branch_false: ...to here
xwayland-24.1.9/composite/compinit.c:349:22: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/composite/compinit.c:349:22: danger: ‘cs’ leaks here; was allocated at [(21)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/20)
#  347|           return FALSE;
#  348|   
#  349|->     cs->overlayWid = FakeClientID(0);
#  350|       cs->pOverlayWin = NULL;
#  351|       cs->pOverlayClients = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
xwayland-24.1.9/composite/compoverlay.c:109:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pOc’
xwayland-24.1.9/composite/compoverlay.c:98:1: enter_function: entry to ‘compCreateOverlayClient’
xwayland-24.1.9/composite/compoverlay.c:100:24: call_function: calling ‘dixLookupPrivate’ from ‘compCreateOverlayClient’
xwayland-24.1.9/composite/compoverlay.c:100:24: return_function: returning to ‘compCreateOverlayClient’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compoverlay.c:103:34: acquire_memory: allocated here
xwayland-24.1.9/composite/compoverlay.c:104:8: branch_false: following ‘false’ branch (when ‘pOc’ is non-NULL)...
xwayland-24.1.9/composite/compoverlay.c:107:5: branch_false: ...to here
xwayland-24.1.9/composite/compoverlay.c:109:21: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/composite/compoverlay.c:109:21: danger: ‘pOc’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  107|       pOc->pClient = pClient;
#  108|       pOc->pScreen = pScreen;
#  109|->     pOc->resource = FakeClientID(pClient->index);
#  110|       pOc->pNext = cs->pOverlayClients;
#  111|       cs->pOverlayClients = pOc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
xwayland-24.1.9/composite/compoverlay.c:117:10: warning[-Wanalyzer-malloc-leak]: leak of ‘pOc’
xwayland-24.1.9/composite/compoverlay.c:98:1: enter_function: entry to ‘compCreateOverlayClient’
xwayland-24.1.9/composite/compoverlay.c:100:24: call_function: calling ‘dixLookupPrivate’ from ‘compCreateOverlayClient’
xwayland-24.1.9/composite/compoverlay.c:100:24: return_function: returning to ‘compCreateOverlayClient’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compoverlay.c:103:34: acquire_memory: allocated here
xwayland-24.1.9/composite/compoverlay.c:104:8: branch_false: following ‘false’ branch (when ‘pOc’ is non-NULL)...
xwayland-24.1.9/composite/compoverlay.c:107:5: branch_false: ...to here
xwayland-24.1.9/composite/compoverlay.c:117:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/composite/compoverlay.c:117:10: danger: ‘pOc’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  115|        * when the client goes away.
#  116|        */
#  117|->     if (!AddResource(pOc->resource, CompositeClientOverlayType, (void *) pOc))
#  118|           return NULL;
#  119|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
xwayland-24.1.9/damageext/damageext.c:241:27: warning[-Wanalyzer-malloc-leak]: leak of ‘pDamageExt’
xwayland-24.1.9/damageext/damageext.c:232:31: acquire_memory: allocated here
xwayland-24.1.9/damageext/damageext.c:233:8: branch_false: following ‘false’ branch (when ‘pDamageExt’ is non-NULL)...
xwayland-24.1.9/damageext/damageext.c:236:5: branch_false: ...to here
xwayland-24.1.9/damageext/damageext.c:241:27: throw: if ‘DamageCreate’ throws an exception...
xwayland-24.1.9/damageext/damageext.c:241:27: danger: ‘pDamageExt’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  239|       pDamageExt->level = level;
#  240|       pDamageExt->pClient = client;
#  241|->     pDamageExt->pDamage = DamageCreate(DamageExtReport, DamageExtDestroy, level,
#  242|                                          FALSE, pDrawable->pScreen, pDamageExt);
#  243|       if (!pDamageExt->pDamage) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
xwayland-24.1.9/damageext/damageext.c:657:10: warning[-Wanalyzer-malloc-leak]: leak of ‘damage’
xwayland-24.1.9/damageext/damageext.c:647:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/damageext/damageext.c:648:5: branch_false: ...to here
xwayland-24.1.9/damageext/damageext.c:648:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/damageext/damageext.c:649:10: branch_false: ...to here
xwayland-24.1.9/damageext/damageext.c:651:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/damageext/damageext.c:654:20: branch_false: ...to here
xwayland-24.1.9/damageext/damageext.c:654:20: acquire_memory: allocated here
xwayland-24.1.9/damageext/damageext.c:654:8: branch_false: following ‘false’ branch (when ‘damage’ is non-NULL)...
xwayland-24.1.9/damageext/damageext.c:657:10: branch_false: ...to here
xwayland-24.1.9/damageext/damageext.c:657:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/damageext/damageext.c:657:10: danger: ‘damage’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  655|           return BadAlloc;
#  656|   
#  657|->     if (!AddResource(stuff->damage, XRT_DAMAGE, damage))
#  658|           return BadAlloc;
#  659|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
xwayland-24.1.9/dbe/dbe.c:480:17: warning[-Wanalyzer-malloc-leak]: leak of ‘swapInfo’
xwayland-24.1.9/dbe/dbe.c:918:1: enter_function: entry to ‘SProcDbeSwapBuffers’
xwayland-24.1.9/dbe/dbe.c:925:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dbe/dbe.c:927:5: branch_false: ...to here
xwayland-24.1.9/dbe/dbe.c:928:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dbe/dbe.c:930:5: branch_false: ...to here
xwayland-24.1.9/dbe/dbe.c:930:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dbe/dbe.c:944:12: call_function: calling ‘ProcDbeSwapBuffers’ from ‘SProcDbeSwapBuffers’
#  478|   
#  479|           /* Each window must be a valid window - BadWindow. */
#  480|->         error = dixLookupWindow(&pWin, dbeSwapInfo[i].window, client,
#  481|                                   DixWriteAccess);
#  482|           if (error != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
xwayland-24.1.9/dbe/dbe.c:532:17: warning[-Wanalyzer-malloc-leak]: leak of ‘swapInfo’
xwayland-24.1.9/dbe/dbe.c:918:1: enter_function: entry to ‘SProcDbeSwapBuffers’
xwayland-24.1.9/dbe/dbe.c:925:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dbe/dbe.c:927:5: branch_false: ...to here
xwayland-24.1.9/dbe/dbe.c:928:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dbe/dbe.c:930:5: branch_false: ...to here
xwayland-24.1.9/dbe/dbe.c:930:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dbe/dbe.c:944:12: call_function: calling ‘ProcDbeSwapBuffers’ from ‘SProcDbeSwapBuffers’
#  530|       while (nStuff_i > 0) {
#  531|           pDbeScreenPriv = DBE_SCREEN_PRIV_FROM_WINDOW(swapInfo[0].pWindow);
#  532|->         error = (*pDbeScreenPriv->SwapBuffers) (client, &nStuff_i, swapInfo);
#  533|           if (error != Success) {
#  534|               free(swapInfo);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
xwayland-24.1.9/dbe/dbe.c:591:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pDrawables’
xwayland-24.1.9/dbe/dbe.c:966:1: enter_function: entry to ‘SProcDbeGetVisualInfo’
xwayland-24.1.9/dbe/dbe.c:971:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dbe/dbe.c:973:5: branch_false: ...to here
xwayland-24.1.9/dbe/dbe.c:976:12: call_function: calling ‘ProcDbeGetVisualInfo’ from ‘SProcDbeGetVisualInfo’
#  589|   
#  590|           for (i = 0; i < stuff->n; i++) {
#  591|->             rc = dixLookupDrawable(pDrawables + i, drawables[i], client, 0,
#  592|                                      DixGetAttrAccess);
#  593|               if (rc != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
xwayland-24.1.9/dbe/dbe.c:614:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pScrVisInfo’
xwayland-24.1.9/dbe/dbe.c:966:1: enter_function: entry to ‘SProcDbeGetVisualInfo’
xwayland-24.1.9/dbe/dbe.c:971:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dbe/dbe.c:973:5: branch_false: ...to here
xwayland-24.1.9/dbe/dbe.c:976:12: call_function: calling ‘ProcDbeGetVisualInfo’ from ‘SProcDbeGetVisualInfo’
#  612|           pDbeScreenPriv = DBE_SCREEN_PRIV(pScreen);
#  613|   
#  614|->         rc = XaceHook(XACE_SCREEN_ACCESS, client, pScreen, DixGetAttrAccess);
#  615|           if (rc != Success)
#  616|               goto freeScrVisInfo;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
xwayland-24.1.9/dbe/dbe.c:618:14: warning[-Wanalyzer-malloc-leak]: leak of ‘pScrVisInfo’
xwayland-24.1.9/dbe/dbe.c:966:1: enter_function: entry to ‘SProcDbeGetVisualInfo’
xwayland-24.1.9/dbe/dbe.c:971:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dbe/dbe.c:973:5: branch_false: ...to here
xwayland-24.1.9/dbe/dbe.c:976:12: call_function: calling ‘ProcDbeGetVisualInfo’ from ‘SProcDbeGetVisualInfo’
#  616|               goto freeScrVisInfo;
#  617|   
#  618|->         if (!(*pDbeScreenPriv->GetVisualInfo) (pScreen, &pScrVisInfo[i])) {
#  619|               /* We failed to alloc pScrVisInfo[i].visinfo. */
#  620|               rc = BadAlloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
xwayland-24.1.9/dbe/dbe.c:647:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pScrVisInfo’
xwayland-24.1.9/dbe/dbe.c:966:1: enter_function: entry to ‘SProcDbeGetVisualInfo’
xwayland-24.1.9/dbe/dbe.c:971:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dbe/dbe.c:973:5: branch_false: ...to here
xwayland-24.1.9/dbe/dbe.c:976:12: call_function: calling ‘ProcDbeGetVisualInfo’ from ‘SProcDbeGetVisualInfo’
#  645|   
#  646|       /* Send off reply. */
#  647|->     WriteToClient(client, sizeof(xDbeGetVisualInfoReply), &rep);
#  648|   
#  649|       for (i = 0; i < count; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
xwayland-24.1.9/dix/colormap.c:2479:15: warning[-Wanalyzer-malloc-leak]: leak of ‘pmaps’
xwayland-24.1.9/dix/colormap.c:2475:13: acquire_memory: allocated here
xwayland-24.1.9/dix/colormap.c:2477:8: branch_false: following ‘false’ branch (when ‘pmaps’ is non-NULL)...
xwayland-24.1.9/dix/colormap.c:2479:17: branch_false: ...to here
xwayland-24.1.9/dix/colormap.c:2479:15: throw: if the called function throws an exception...
xwayland-24.1.9/dix/colormap.c:2479:15: danger: ‘pmaps’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 2477|       if (!pmaps)
# 2478|           return FALSE;
# 2479|->     nummaps = (*pWin->drawable.pScreen->ListInstalledColormaps)
# 2480|           (pWin->drawable.pScreen, pmaps);
# 2481|       found = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
xwayland-24.1.9/dix/colormap.c:2543:5: warning[-Wanalyzer-malloc-leak]: leak of ‘visuals’
xwayland-24.1.9/dix/colormap.c:2529:8: branch_false: following ‘false’ branch (when ‘vids’ is non-NULL)...
xwayland-24.1.9/dix/colormap.c:2533:5: branch_false: ...to here
xwayland-24.1.9/dix/colormap.c:2536:15: acquire_memory: allocated here
xwayland-24.1.9/dix/colormap.c:2537:8: branch_false: following ‘false’ branch (when ‘visuals’ is non-NULL)...
xwayland-24.1.9/dix/colormap.c:2541:5: branch_false: ...to here
xwayland-24.1.9/dix/colormap.c:2543:5: throw: if ‘FindClientResourcesByType’ throws an exception...
xwayland-24.1.9/dix/colormap.c:2543:5: danger: ‘visuals’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
# 2541|       cdata.visuals = visuals;
# 2542|       cdata.pScreen = pScreen;
# 2543|->     FindClientResourcesByType(serverClient, RT_COLORMAP,
# 2544|                                 _colormap_find_resource, &cdata);
# 2545|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
xwayland-24.1.9/dix/cursor.c:362:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pCurs’
xwayland-24.1.9/dix/cursor.c:339:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:343:10: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:345:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:349:9: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:349:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:352:14: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:353:14: branch_true: following ‘true’ branch (when ‘pShare’ is non-NULL)...
xwayland-24.1.9/dix/cursor.c:354:16: branch_true: ...to here
xwayland-24.1.9/dix/cursor.c:358:8: branch_true: following ‘true’ branch (when ‘pShare’ is non-NULL)...
xwayland-24.1.9/dix/cursor.c:359:36: branch_true: ...to here
xwayland-24.1.9/dix/cursor.c:359:29: acquire_memory: allocated here
xwayland-24.1.9/dix/cursor.c:360:12: branch_false: following ‘false’ branch (when ‘pCurs’ is non-NULL)...
xwayland-24.1.9/dix/cursor.c:362:9: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:362:9: throw: if ‘_dixInitPrivates’ throws an exception...
xwayland-24.1.9/dix/cursor.c:362:9: danger: ‘pCurs’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  360|           if (!pCurs)
#  361|               return BadAlloc;
#  362|->         dixInitPrivates(pCurs, pCurs + 1, PRIVATE_CURSOR);
#  363|           bits = pShare->bits;
#  364|           bits->refcnt++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
xwayland-24.1.9/dix/cursor.c:397:58: warning[-Wanalyzer-malloc-leak]: leak of ‘pCurs’
xwayland-24.1.9/dix/cursor.c:339:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:343:10: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:345:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:349:9: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:367:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:371:13: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:383:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:387:23: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:387:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:390:19: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:390:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:394:13: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:394:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/cursor.c:395:40: branch_true: ...to here
xwayland-24.1.9/dix/cursor.c:395:33: acquire_memory: allocated here
xwayland-24.1.9/dix/cursor.c:396:16: branch_true: following ‘true’ branch (when ‘pCurs’ is non-NULL)...
xwayland-24.1.9/dix/cursor.c:397:58: branch_true: ...to here
xwayland-24.1.9/dix/cursor.c:397:58: throw: if ‘dixPrivatesSize’ throws an exception...
xwayland-24.1.9/dix/cursor.c:397:58: danger: ‘pCurs’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  395|               pCurs = (CursorPtr) calloc(CURSOR_REC_SIZE + CURSOR_BITS_SIZE, 1);
#  396|               if (pCurs)
#  397|->                 bits = (CursorBitsPtr) ((char *) pCurs + CURSOR_REC_SIZE);
#  398|               else
#  399|                   bits = (CursorBitsPtr) NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
xwayland-24.1.9/dix/cursor.c:404:47: warning[-Wanalyzer-malloc-leak]: leak of ‘pCurs’
xwayland-24.1.9/dix/cursor.c:339:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:343:10: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:345:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:349:9: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:367:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:371:13: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:383:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:387:23: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:387:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:390:19: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:390:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:394:13: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:394:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:402:40: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:402:33: acquire_memory: allocated here
xwayland-24.1.9/dix/cursor.c:403:16: branch_true: following ‘true’ branch (when ‘pCurs’ is non-NULL)...
xwayland-24.1.9/dix/cursor.c:404:47: branch_true: ...to here
xwayland-24.1.9/dix/cursor.c:404:47: throw: if ‘dixPrivatesSize’ throws an exception...
xwayland-24.1.9/dix/cursor.c:404:47: danger: ‘pCurs’ leaks here; was allocated at [(15)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/14)
#  402|               pCurs = (CursorPtr) calloc(CURSOR_REC_SIZE, 1);
#  403|               if (pCurs)
#  404|->                 bits = (CursorBitsPtr) calloc(CURSOR_BITS_SIZE, 1);
#  405|               else
#  406|                   bits = (CursorBitsPtr) NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
xwayland-24.1.9/dix/cursor.c:414:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bits’
xwayland-24.1.9/dix/cursor.c:339:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:343:10: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:345:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:349:9: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:367:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:371:13: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:383:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:387:23: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:387:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:390:19: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:390:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:394:13: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:394:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:402:40: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:403:16: branch_true: following ‘true’ branch (when ‘pCurs’ is non-NULL)...
xwayland-24.1.9/dix/cursor.c:404:47: branch_true: ...to here
xwayland-24.1.9/dix/cursor.c:404:40: acquire_memory: allocated here
xwayland-24.1.9/dix/cursor.c:408:12: branch_false: following ‘false’ branch (when ‘bits’ is non-NULL)...
xwayland-24.1.9/dix/cursor.c:414:9: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:414:9: throw: if ‘_dixInitPrivates’ throws an exception...
xwayland-24.1.9/dix/cursor.c:414:9: danger: ‘bits’ leaks here; was allocated at [(17)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/16)
#  412|               return BadAlloc;
#  413|           }
#  414|->         dixInitPrivates(pCurs, pCurs + 1, PRIVATE_CURSOR);
#  415|           dixInitPrivates(bits, bits + 1, PRIVATE_CURSOR_BITS);
#  416|           bits->source = srcbits;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
xwayland-24.1.9/dix/cursor.c:414:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pCurs’
xwayland-24.1.9/dix/cursor.c:339:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:343:10: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:345:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:349:9: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:367:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:371:13: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:383:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:387:23: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:387:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:390:19: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:390:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:394:13: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:394:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:402:40: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:402:33: acquire_memory: allocated here
xwayland-24.1.9/dix/cursor.c:403:16: branch_true: following ‘true’ branch (when ‘pCurs’ is non-NULL)...
xwayland-24.1.9/dix/cursor.c:404:47: branch_true: ...to here
xwayland-24.1.9/dix/cursor.c:408:12: branch_false: following ‘false’ branch (when ‘bits’ is non-NULL)...
xwayland-24.1.9/dix/cursor.c:414:9: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:414:9: throw: if ‘_dixInitPrivates’ throws an exception...
xwayland-24.1.9/dix/cursor.c:414:9: danger: ‘pCurs’ leaks here; was allocated at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
#  412|               return BadAlloc;
#  413|           }
#  414|->         dixInitPrivates(pCurs, pCurs + 1, PRIVATE_CURSOR);
#  415|           dixInitPrivates(bits, bits + 1, PRIVATE_CURSOR_BITS);
#  416|           bits->source = srcbits;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
xwayland-24.1.9/dix/cursor.c:415:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bits’
xwayland-24.1.9/dix/cursor.c:339:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:343:10: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:345:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:349:9: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:367:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:371:13: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:383:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:387:23: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:387:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:390:19: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:390:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:394:13: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:394:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/cursor.c:402:40: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:403:16: branch_true: following ‘true’ branch (when ‘pCurs’ is non-NULL)...
xwayland-24.1.9/dix/cursor.c:404:47: branch_true: ...to here
xwayland-24.1.9/dix/cursor.c:404:40: acquire_memory: allocated here
xwayland-24.1.9/dix/cursor.c:408:12: branch_false: following ‘false’ branch (when ‘bits’ is non-NULL)...
xwayland-24.1.9/dix/cursor.c:414:9: branch_false: ...to here
xwayland-24.1.9/dix/cursor.c:415:9: throw: if ‘_dixInitPrivates’ throws an exception...
xwayland-24.1.9/dix/cursor.c:415:9: danger: ‘bits’ leaks here; was allocated at [(17)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/16)
#  413|           }
#  414|           dixInitPrivates(pCurs, pCurs + 1, PRIVATE_CURSOR);
#  415|->         dixInitPrivates(bits, bits + 1, PRIVATE_CURSOR_BITS);
#  416|           bits->source = srcbits;
#  417|           bits->mask = mskbits;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
xwayland-24.1.9/dix/devices.c:268:10: warning[-Wanalyzer-malloc-leak]: leak of ‘dev’
xwayland-24.1.9/dix/devices.c:2809:1: enter_function: entry to ‘AllocDevicePair’
xwayland-24.1.9/dix/devices.c:2822:15: call_function: calling ‘AddInputDevice’ from ‘AllocDevicePair’
#  266|           return (DeviceIntPtr) NULL;
#  267|   
#  268|->     if (!dixAllocatePrivates(&dev->devPrivates, PRIVATE_DEVICE)) {
#  269|           free(dev);
#  270|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
xwayland-24.1.9/dix/devices.c:1386:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/devices.c:1366:1: enter_function: entry to ‘InitValuatorClassDeviceStruct’
xwayland-24.1.9/dix/devices.c:1372:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/dix/devices.c:1373:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1373:5: branch_false: following ‘false’ branch (when ‘numAxes != 0’)...
xwayland-24.1.9/dix/devices.c:1375:8: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1382:12: call_function: calling ‘AllocValuatorClass’ from ‘InitValuatorClassDeviceStruct’
xwayland-24.1.9/dix/devices.c:1382:12: return_function: returning to ‘InitValuatorClassDeviceStruct’ from ‘AllocValuatorClass’
xwayland-24.1.9/dix/devices.c:1383:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1386:24: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1386:24: throw: if ‘valuator_mask_new’ throws an exception...
xwayland-24.1.9/dix/devices.c:1386:24: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
# 1384|           return FALSE;
# 1385|   
# 1386|->     dev->last.scroll = valuator_mask_new(numAxes);
# 1387|       if (!dev->last.scroll) {
# 1388|           free(valc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
xwayland-24.1.9/dix/devices.c:1388:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/devices.c:1366:1: enter_function: entry to ‘InitValuatorClassDeviceStruct’
xwayland-24.1.9/dix/devices.c:1372:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/dix/devices.c:1373:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1373:5: branch_false: following ‘false’ branch (when ‘numAxes != 0’)...
xwayland-24.1.9/dix/devices.c:1375:8: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1382:12: call_function: calling ‘AllocValuatorClass’ from ‘InitValuatorClassDeviceStruct’
xwayland-24.1.9/dix/devices.c:1382:12: return_function: returning to ‘InitValuatorClassDeviceStruct’ from ‘AllocValuatorClass’
xwayland-24.1.9/dix/devices.c:1383:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1386:24: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1387:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/devices.c:1388:9: branch_true: ...to here
xwayland-24.1.9/dix/devices.c:1388:9: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
# 1386|       dev->last.scroll = valuator_mask_new(numAxes);
# 1387|       if (!dev->last.scroll) {
# 1388|->         free(valc);
# 1389|           return FALSE;
# 1390|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
xwayland-24.1.9/dix/devices.c:1403:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/devices.c:1366:1: enter_function: entry to ‘InitValuatorClassDeviceStruct’
xwayland-24.1.9/dix/devices.c:1372:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/dix/devices.c:1373:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1373:5: branch_false: following ‘false’ branch (when ‘numAxes != 0’)...
xwayland-24.1.9/dix/devices.c:1375:8: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1382:12: call_function: calling ‘AllocValuatorClass’ from ‘InitValuatorClassDeviceStruct’
xwayland-24.1.9/dix/devices.c:1382:12: return_function: returning to ‘InitValuatorClassDeviceStruct’ from ‘AllocValuatorClass’
xwayland-24.1.9/dix/devices.c:1383:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1386:24: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1387:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1392:22: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1402:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/devices.c:1403:9: throw: if ‘InitProximityClassDeviceStruct’ throws an exception...
xwayland-24.1.9/dix/devices.c:1403:9: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
# 1401|   
# 1402|       if ((mode & OutOfProximity) && !dev->proximity)
# 1403|->         InitProximityClassDeviceStruct(dev);
# 1404|   
# 1405|       dev->valuator = valc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
xwayland-24.1.9/dix/devices.c:1488:5: warning[-Wanalyzer-malloc-leak]: leak of ‘focc’
xwayland-24.1.9/dix/devices.c:1482:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/dix/devices.c:1483:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1483:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1485:12: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1485:12: acquire_memory: allocated here
xwayland-24.1.9/dix/devices.c:1486:8: branch_false: following ‘false’ branch (when ‘focc’ is non-NULL)...
xwayland-24.1.9/dix/devices.c:1488:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1488:5: throw: if ‘UpdateCurrentTimeIf’ throws an exception...
xwayland-24.1.9/dix/devices.c:1488:5: danger: ‘focc’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
# 1486|       if (!focc)
# 1487|           return FALSE;
# 1488|->     UpdateCurrentTimeIf();
# 1489|       focc->win = PointerRootWin;
# 1490|       focc->revert = None;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
xwayland-24.1.9/dix/devices.c:1701:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/devices.c:1674:5: branch_false: following ‘false’ branch (when ‘device’ is non-NULL)...
xwayland-24.1.9/dix/devices.c:1675:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1675:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1676:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1676:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1679:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1679:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1680:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1680:5: branch_false: following ‘false’ branch (when ‘num_axes > 1’)...
xwayland-24.1.9/dix/devices.c:1682:8: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1690:8: branch_false: following ‘false’ branch (when ‘touch’ is non-NULL)...
xwayland-24.1.9/dix/devices.c:1693:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1696:22: acquire_memory: allocated here
xwayland-24.1.9/dix/devices.c:1697:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1699:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1700:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/devices.c:1701:9: branch_true: ...to here
xwayland-24.1.9/dix/devices.c:1701:9: throw: if ‘TouchInitTouchPoint’ throws an exception...
xwayland-24.1.9/dix/devices.c:1701:9: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
# 1699|       touch->num_touches = max_touches;
# 1700|       for (i = 0; i < max_touches; i++)
# 1701|->         TouchInitTouchPoint(touch, device->valuator, i);
# 1702|   
# 1703|       touch->mode = mode;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
xwayland-24.1.9/dix/devices.c:1701:9: warning[-Wanalyzer-malloc-leak]: leak of ‘touch’
xwayland-24.1.9/dix/devices.c:1674:5: branch_false: following ‘false’ branch (when ‘device’ is non-NULL)...
xwayland-24.1.9/dix/devices.c:1675:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1675:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1676:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1676:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1679:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1679:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1680:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1680:5: branch_false: following ‘false’ branch (when ‘num_axes > 1’)...
xwayland-24.1.9/dix/devices.c:1682:8: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1689:13: acquire_memory: allocated here
xwayland-24.1.9/dix/devices.c:1690:8: branch_false: following ‘false’ branch (when ‘touch’ is non-NULL)...
xwayland-24.1.9/dix/devices.c:1693:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1697:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1699:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1700:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/devices.c:1701:9: branch_true: ...to here
xwayland-24.1.9/dix/devices.c:1701:9: throw: if ‘TouchInitTouchPoint’ throws an exception...
xwayland-24.1.9/dix/devices.c:1701:9: danger: ‘touch’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
# 1699|       touch->num_touches = max_touches;
# 1700|       for (i = 0; i < max_touches; i++)
# 1701|->         TouchInitTouchPoint(touch, device->valuator, i);
# 1702|   
# 1703|       touch->mode = mode;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
xwayland-24.1.9/dix/devices.c:1743:5: warning[-Wanalyzer-malloc-leak]: leak of ‘g’
xwayland-24.1.9/dix/devices.c:1734:5: branch_false: following ‘false’ branch (when ‘device’ is non-NULL)...
xwayland-24.1.9/dix/devices.c:1735:5: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1735:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/devices.c:1737:9: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1737:9: acquire_memory: allocated here
xwayland-24.1.9/dix/devices.c:1738:8: branch_false: following ‘false’ branch (when ‘g’ is non-NULL)...
xwayland-24.1.9/dix/devices.c:1741:19: branch_false: ...to here
xwayland-24.1.9/dix/devices.c:1743:5: throw: if ‘GestureInitGestureInfo’ throws an exception...
xwayland-24.1.9/dix/devices.c:1743:5: danger: ‘g’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
# 1741|       g->sourceid = device->id;
# 1742|       g->max_touches = max_touches;
# 1743|->     GestureInitGestureInfo(&g->gesture);
# 1744|   
# 1745|       device->gesture = g;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
xwayland-24.1.9/dix/dispatch.c:1094:5: warning[-Wanalyzer-malloc-leak]: leak of ‘childIDs’
xwayland-24.1.9/dix/dispatch.c:1066:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:1067:33: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1068:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:1073:27: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1080:8: branch_true: following ‘true’ branch (when ‘numChildren != 0’)...
xwayland-24.1.9/dix/dispatch.c:1083:20: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:1083:20: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:1084:12: branch_false: following ‘false’ branch (when ‘childIDs’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:1086:27: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1094:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dispatch.c:1094:5: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:1094:5: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dispatch.c:1094:5: danger: ‘childIDs’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
# 1092|       reply.length = bytes_to_int32(numChildren * sizeof(Window));
# 1093|   
# 1094|->     WriteReplyToClient(client, sizeof(xQueryTreeReply), &reply);
# 1095|       if (numChildren) {
# 1096|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
xwayland-24.1.9/dix/dispatch.c:1097:9: warning[-Wanalyzer-malloc-leak]: leak of ‘childIDs’
xwayland-24.1.9/dix/dispatch.c:1066:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:1067:33: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1068:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:1073:27: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1080:8: branch_true: following ‘true’ branch (when ‘numChildren != 0’)...
xwayland-24.1.9/dix/dispatch.c:1083:20: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:1083:20: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:1084:12: branch_false: following ‘false’ branch (when ‘childIDs’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:1086:27: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1094:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:1094:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1095:8: branch_true: following ‘true’ branch (when ‘numChildren != 0’)...
xwayland-24.1.9/dix/dispatch.c:1096:9: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:1097:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dispatch.c:1097:9: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:1097:9: throw: if ‘Swap32Write’ throws an exception...
xwayland-24.1.9/dix/dispatch.c:1097:9: danger: ‘childIDs’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
# 1095|       if (numChildren) {
# 1096|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
# 1097|->         WriteSwappedDataToClient(client, numChildren * sizeof(Window),
# 1098|                                    childIDs);
# 1099|           free(childIDs);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
xwayland-24.1.9/dix/dispatch.c:1376:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
xwayland-24.1.9/dix/dispatch.c:1346:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:1348:36: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1349:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:1353:27: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1368:17: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:1369:12: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:1373:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1376:9: throw: if ‘QueryFont’ throws an exception...
xwayland-24.1.9/dix/dispatch.c:1376:9: danger: ‘reply’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
# 1374|           reply->length = bytes_to_int32(rlength - sizeof(xGenericReply));
# 1375|           reply->sequenceNumber = client->sequence;
# 1376|->         QueryFont(pFont, reply, nprotoxcistructs);
# 1377|   
# 1378|           WriteReplyToClient(client, rlength, reply);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
xwayland-24.1.9/dix/dispatch.c:1747:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pEvent’
xwayland-24.1.9/dix/dispatch.c:1718:1: enter_function: entry to ‘SendGraphicsExpose’
xwayland-24.1.9/dix/dispatch.c:1721:8: branch_true: following ‘true’ branch (when ‘pRgn’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:1721:18: call_function: inlined call to ‘RegionNil’ from ‘SendGraphicsExpose’
xwayland-24.1.9/dix/dispatch.c:1728:20: call_function: inlined call to ‘RegionNumRects’ from ‘SendGraphicsExpose’
xwayland-24.1.9/dix/dispatch.c:1729:16: call_function: inlined call to ‘RegionRects’ from ‘SendGraphicsExpose’
xwayland-24.1.9/dix/dispatch.c:1730:24: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:1730:12: branch_false: following ‘false’ branch (when ‘pEvent’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:1730:12: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1734:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dispatch.c:1735:13: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:1734:21: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:1747:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1747:9: throw: if ‘TryClientEvents’ throws an exception...
xwayland-24.1.9/dix/dispatch.c:1747:9: danger: ‘pEvent’ leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
# 1745|           /* GraphicsExpose is a "critical event", which TryClientEvents
# 1746|            * handles specially. */
# 1747|->         TryClientEvents(client, NULL, pEvent, numRects,
# 1748|                           (Mask) 0, NoEventMask, NullGrab);
# 1749|           free(pEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
xwayland-24.1.9/dix/dispatch.c:1747:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pe’
xwayland-24.1.9/dix/dispatch.c:1718:1: enter_function: entry to ‘SendGraphicsExpose’
xwayland-24.1.9/dix/dispatch.c:1721:8: branch_true: following ‘true’ branch (when ‘pRgn’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:1721:18: call_function: inlined call to ‘RegionNil’ from ‘SendGraphicsExpose’
xwayland-24.1.9/dix/dispatch.c:1728:20: call_function: inlined call to ‘RegionNumRects’ from ‘SendGraphicsExpose’
xwayland-24.1.9/dix/dispatch.c:1729:16: call_function: inlined call to ‘RegionRects’ from ‘SendGraphicsExpose’
xwayland-24.1.9/dix/dispatch.c:1730:24: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:1730:12: branch_false: following ‘false’ branch (when ‘pEvent’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:1730:12: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1734:21: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:1747:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:1747:9: throw: if ‘TryClientEvents’ throws an exception...
xwayland-24.1.9/dix/dispatch.c:1747:9: danger: ‘pe’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
# 1745|           /* GraphicsExpose is a "critical event", which TryClientEvents
# 1746|            * handles specially. */
# 1747|->         TryClientEvents(client, NULL, pEvent, numRects,
# 1748|                           (Mask) 0, NoEventMask, NullGrab);
# 1749|           free(pEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
xwayland-24.1.9/dix/dispatch.c:2265:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pBuf’
xwayland-24.1.9/dix/dispatch.c:2154:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2158:10: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2159:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2162:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2217:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2217:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2221:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2224:8: branch_true: following ‘true’ branch (when ‘format == 2’)...
xwayland-24.1.9/dix/dispatch.c:2225:26: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:2263:18: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:2263:8: branch_false: following ‘false’ branch (when ‘pBuf’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:2265:5: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dispatch.c:2265:5: danger: ‘pBuf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
# 2263|       if (!(pBuf = calloc(1, length)))
# 2264|           return BadAlloc;
# 2265|->     WriteReplyToClient(client, sizeof(xGetImageReply), &xgi);
# 2266|   
# 2267|       if (pDraw->type == DRAWABLE_WINDOW) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
xwayland-24.1.9/dix/dispatch.c:2269:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pBuf’
xwayland-24.1.9/dix/dispatch.c:2154:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2158:10: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2159:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2162:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2217:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2217:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2221:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2224:8: branch_true: following ‘true’ branch (when ‘format == 2’)...
xwayland-24.1.9/dix/dispatch.c:2225:26: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:2263:18: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:2263:8: branch_false: following ‘false’ branch (when ‘pBuf’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2267:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dispatch.c:2268:9: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:2269:9: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dispatch.c:2269:9: danger: ‘pBuf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
# 2267|       if (pDraw->type == DRAWABLE_WINDOW) {
# 2268|           pVisibleRegion = &((WindowPtr) pDraw)->borderClip;
# 2269|->         pDraw->pScreen->SourceValidate(pDraw, x, y, width, height,
# 2270|                                          IncludeInferiors);
# 2271|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
xwayland-24.1.9/dix/dispatch.c:2280:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pBuf’
xwayland-24.1.9/dix/dispatch.c:2154:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2158:10: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2159:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2162:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2217:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2217:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2221:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2224:8: branch_true: following ‘true’ branch (when ‘format == 2’)...
xwayland-24.1.9/dix/dispatch.c:2225:26: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:2263:18: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:2263:8: branch_false: following ‘false’ branch (when ‘pBuf’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2267:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2273:8: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2273:8: branch_false: following ‘false’ branch (when ‘linesPerBuf != 0’)...
xwayland-24.1.9/dix/dispatch.c:2276:13: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2276:13: branch_true: following ‘true’ branch (when ‘format == 2’)...
xwayland-24.1.9/dix/dispatch.c:2276:13: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:2278:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dispatch.c:2279:13: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:2280:13: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dispatch.c:2280:13: danger: ‘pBuf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/10)
# 2278|           while (height - linesDone > 0) {
# 2279|               nlines = min(linesPerBuf, height - linesDone);
# 2280|->             (*pDraw->pScreen->GetImage) (pDraw,
# 2281|                                            x,
# 2282|                                            y + linesDone,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
xwayland-24.1.9/dix/dispatch.c:2307:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pBuf’
xwayland-24.1.9/dix/dispatch.c:2154:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2158:10: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2159:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2162:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2217:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2217:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2221:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2224:8: branch_false: following ‘false’ branch (when ‘format != 2’)...
xwayland-24.1.9/dix/dispatch.c:2230:26: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2263:18: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:2263:8: branch_false: following ‘false’ branch (when ‘pBuf’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2265:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2267:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2273:8: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2273:8: branch_false: following ‘false’ branch (when ‘linesPerBuf != 0’)...
xwayland-24.1.9/dix/dispatch.c:2276:13: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2276:13: branch_false: following ‘false’ branch (when ‘format != 2’)...
xwayland-24.1.9/dix/dispatch.c:2276:13: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2302:16: branch_true: following ‘true’ branch (when ‘plane != 0’)...
xwayland-24.1.9/dix/dispatch.c:2303:17: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:2307:21: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dispatch.c:2307:21: danger: ‘pBuf’ leaks here; was allocated at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
# 2305|                   while (height - linesDone > 0) {
# 2306|                       nlines = min(linesPerBuf, height - linesDone);
# 2307|->                     (*pDraw->pScreen->GetImage) (pDraw,
# 2308|                                                    x,
# 2309|                                                    y + linesDone,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
xwayland-24.1.9/dix/dispatch.c:2591:15: warning[-Wanalyzer-malloc-leak]: leak of ‘preply’
xwayland-24.1.9/dix/dispatch.c:2572:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2574:33: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2575:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2578:51: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2580:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2584:25: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2583:14: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:2586:8: branch_false: following ‘false’ branch (when ‘preply’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:2589:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2591:15: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dispatch.c:2591:15: danger: ‘preply’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
# 2589|       preply->type = X_Reply;
# 2590|       preply->sequenceNumber = client->sequence;
# 2591|->     nummaps = (*pWin->drawable.pScreen->ListInstalledColormaps)
# 2592|           (pWin->drawable.pScreen, (Colormap *) &preply[1]);
# 2593|       preply->nColormaps = nummaps;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
xwayland-24.1.9/dix/dispatch.c:2716:19: warning[-Wanalyzer-malloc-leak]: leak of ‘ppixels’
xwayland-24.1.9/dix/dispatch.c:2692:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2693:51: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2695:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dispatch.c:2700:19: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:2701:12: branch_false: following ‘false’ branch (when ‘npixels != 0’)...
xwayland-24.1.9/dix/dispatch.c:2705:13: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2705:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2709:18: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2711:19: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:2712:12: branch_false: following ‘false’ branch (when ‘ppixels’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:2714:26: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2716:19: throw: if ‘AllocColorCells’ throws an exception...
xwayland-24.1.9/dix/dispatch.c:2716:19: danger: ‘ppixels’ leaks here; was allocated at [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
# 2714|           pmasks = ppixels + npixels;
# 2715|   
# 2716|->         if ((rc = AllocColorCells(client->index, pcmp, npixels, nmasks,
# 2717|                                     (Bool) stuff->contiguous, ppixels, pmasks))) {
# 2718|               free(ppixels);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
xwayland-24.1.9/dix/dispatch.c:2781:19: warning[-Wanalyzer-malloc-leak]: leak of ‘ppixels’
xwayland-24.1.9/dix/dispatch.c:2753:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2754:51: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2756:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dispatch.c:2762:19: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:2763:12: branch_false: following ‘false’ branch (when ‘npixels != 0’)...
xwayland-24.1.9/dix/dispatch.c:2767:13: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2767:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2773:31: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2778:19: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:2779:12: branch_false: following ‘false’ branch (when ‘ppixels’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:2783:62: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2781:19: throw: if ‘AllocColorPlanes’ throws an exception...
xwayland-24.1.9/dix/dispatch.c:2781:19: danger: ‘ppixels’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
# 2779|           if (!ppixels)
# 2780|               return BadAlloc;
# 2781|->         if ((rc = AllocColorPlanes(client->index, pcmp, npixels,
# 2782|                                      (int) stuff->red, (int) stuff->green,
# 2783|                                      (int) stuff->blue, (Bool) stuff->contiguous,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
xwayland-24.1.9/dix/dispatch.c:2909:14: warning[-Wanalyzer-malloc-leak]: leak of ‘prgbs’
xwayland-24.1.9/dix/dispatch.c:2895:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2896:51: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2898:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dispatch.c:2904:29: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:2905:17: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:2906:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2909:49: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2909:14: throw: if ‘QueryColors’ throws an exception...
xwayland-24.1.9/dix/dispatch.c:2909:14: danger: ‘prgbs’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
# 2907|               return BadAlloc;
# 2908|           if ((rc =
# 2909|->              QueryColors(pcmp, count, (Pixel *) &stuff[1], prgbs, client))) {
# 2910|               free(prgbs);
# 2911|               return rc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
xwayland-24.1.9/dix/dispatch.c:3037:5: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/dix/dispatch.c:2991:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2992:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2992:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2994:50: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2996:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3001:12: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3001:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3005:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3005:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3019:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3024:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3028:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:3030:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3031:15: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:3032:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:3037:7: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3037:5: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dispatch.c:3037:5: danger: ‘mskbits’ leaks here; was allocated at [(15)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/14)
# 3035|       }
# 3036|   
# 3037|->     (*src->drawable.pScreen->GetImage) ((DrawablePtr) src, 0, 0, width, height,
# 3038|                                           XYPixmap, 1, (void *) srcbits);
# 3039|       if (msk == (PixmapPtr) NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
xwayland-24.1.9/dix/dispatch.c:3037:5: warning[-Wanalyzer-malloc-leak]: leak of ‘srcbits’
xwayland-24.1.9/dix/dispatch.c:2991:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2992:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2992:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2994:50: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2996:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3001:12: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3001:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3005:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3005:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3019:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3024:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3027:15: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:3028:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:3030:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3032:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:3037:7: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3037:5: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dispatch.c:3037:5: danger: ‘srcbits’ leaks here; was allocated at [(13)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/12)
# 3035|       }
# 3036|   
# 3037|->     (*src->drawable.pScreen->GetImage) ((DrawablePtr) src, 0, 0, width, height,
# 3038|                                           XYPixmap, 1, (void *) srcbits);
# 3039|       if (msk == (PixmapPtr) NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
xwayland-24.1.9/dix/dispatch.c:3048:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/dix/dispatch.c:2991:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2992:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2992:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2994:50: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2996:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3001:12: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3001:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3005:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3005:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dispatch.c:3006:14: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:3008:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3013:16: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3013:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3014:16: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3013:13: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3015:16: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3013:13: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3024:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3028:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:3030:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3031:15: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:3032:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:3037:7: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3039:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3047:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3048:9: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dispatch.c:3048:9: danger: ‘mskbits’ leaks here; was allocated at [(23)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/22)
# 3046|           /* zeroing the (pad) bits helps some ddx cursor handling */
# 3047|           memset((char *) mskbits, 0, n);
# 3048|->         (*msk->drawable.pScreen->GetImage) ((DrawablePtr) msk, 0, 0, width,
# 3049|                                               height, XYPixmap, 1,
# 3050|                                               (void *) mskbits);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
xwayland-24.1.9/dix/dispatch.c:3056:10: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/dix/dispatch.c:2991:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2992:5: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2992:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:2994:50: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:2996:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3001:12: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3001:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3005:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3005:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3019:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3024:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dispatch.c:3028:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:3030:9: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3031:15: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:3032:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:3037:7: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:3039:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dispatch.c:3039:8: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:3042:16: branch_true: following ‘true’ branch (when ‘n != -1’)...
xwayland-24.1.9/dix/dispatch.c:3043:14: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:3042:16: branch_true: following ‘true’ branch (when ‘n != -1’)...
xwayland-24.1.9/dix/dispatch.c:3043:14: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:3042:16: branch_true: following ‘true’ branch (when ‘n != -1’)...
xwayland-24.1.9/dix/dispatch.c:3043:14: branch_true: ...to here
xwayland-24.1.9/dix/dispatch.c:3056:10: throw: if ‘AllocARGBCursor’ throws an exception...
xwayland-24.1.9/dix/dispatch.c:3056:10: danger: ‘mskbits’ leaks here; was allocated at [(15)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/14)
# 3054|       cm.xhot = stuff->x;
# 3055|       cm.yhot = stuff->y;
# 3056|->     rc = AllocARGBCursor(srcbits, mskbits, NULL, &cm,
# 3057|                            stuff->foreRed, stuff->foreGreen, stuff->foreBlue,
# 3058|                            stuff->backRed, stuff->backGreen, stuff->backBlue,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
xwayland-24.1.9/dix/dispatch.c:3914:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pScreen’
xwayland-24.1.9/dix/dispatch.c:4012:1: enter_function: entry to ‘AddGPUScreen’
xwayland-24.1.9/dix/dispatch.c:4023:8: branch_false: following ‘false’ branch (when ‘i != 16’)...
xwayland-24.1.9/dix/dispatch.c:4026:27: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:4026:27: acquire_memory: allocated here
xwayland-24.1.9/dix/dispatch.c:4027:8: branch_false: following ‘false’ branch (when ‘pScreen’ is non-NULL)...
xwayland-24.1.9/dix/dispatch.c:4030:11: branch_false: ...to here
xwayland-24.1.9/dix/dispatch.c:4030:11: call_function: calling ‘init_screen’ from ‘AddGPUScreen’
# 3912|       int scanlinepad, format, depth, bitsPerPixel, j, k;
# 3913|   
# 3914|->     dixInitScreenSpecificPrivates(pScreen);
# 3915|   
# 3916|       if (!dixAllocatePrivates(&pScreen->devPrivates, PRIVATE_SCREEN)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
xwayland-24.1.9/dix/dixfonts.c:226:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
/usr/include/X11/fonts/font.h:103:12: enter_function: entry to ‘StartListFontsWithInfo’
xwayland-24.1.9/dix/dixfonts.c:1050:8: branch_false: following ‘false’ branch (when ‘length <= 256’)...
xwayland-24.1.9/dix/dixfonts.c:1053:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1054:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1057:15: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1057:15: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1057:8: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1059:19: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1060:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1064:5: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1081:5: call_function: calling ‘doListFontsWithInfo’ from ‘StartListFontsWithInfo’
#  224|       fpe->refcount--;
#  225|       if (fpe->refcount == 0) {
#  226|->         (*fpe_functions[fpe->type]->free_fpe) (fpe);
#  227|           free((void *) fpe->name);
#  228|           free(fpe);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
xwayland-24.1.9/dix/dixfonts.c:226:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fplist’
xwayland-24.1.9/dix/dixfonts.c:1570:1: enter_function: entry to ‘SetFontPathElements’
xwayland-24.1.9/dix/dixfonts.c:1578:14: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: following ‘false’ branch (when ‘fplist’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1658:5: call_function: calling ‘FreeFontPath’ from ‘SetFontPathElements’
#  224|       fpe->refcount--;
#  225|       if (fpe->refcount == 0) {
#  226|->         (*fpe_functions[fpe->type]->free_fpe) (fpe);
#  227|           free((void *) fpe->name);
#  228|           free(fpe);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
xwayland-24.1.9/dix/dixfonts.c:226:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nump’
xwayland-24.1.9/dix/dixfonts.c:1696:1: enter_function: entry to ‘SetDefaultFontPath’
xwayland-24.1.9/dix/dixfonts.c:1707:12: branch_true: following ‘true’ branch (when ‘start’ is NULL)...
xwayland-24.1.9/dix/dixfonts.c:1714:8: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1714:8: branch_true: following ‘true’ branch (when ‘start’ is NULL)...
xwayland-24.1.9/dix/dixfonts.c:1715:57: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1715:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1722:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1722:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1726:11: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1727:27: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1728:8: branch_false: following ‘false’ branch (when ‘newpath’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1733:5: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1734:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1747:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1749:11: call_function: calling ‘SetFontPathElements’ from ‘SetDefaultFontPath’
#  224|       fpe->refcount--;
#  225|       if (fpe->refcount == 0) {
#  226|->         (*fpe_functions[fpe->type]->free_fpe) (fpe);
#  227|           free((void *) fpe->name);
#  228|           free(fpe);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
xwayland-24.1.9/dix/dixfonts.c:862:13: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
/usr/include/X11/fonts/font.h:103:12: enter_function: entry to ‘StartListFontsWithInfo’
xwayland-24.1.9/dix/dixfonts.c:1050:8: branch_false: following ‘false’ branch (when ‘length <= 256’)...
xwayland-24.1.9/dix/dixfonts.c:1053:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1054:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1057:15: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1057:15: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1057:8: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1059:19: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1060:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1064:5: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1081:5: call_function: calling ‘doListFontsWithInfo’ from ‘StartListFontsWithInfo’
#  860|           if (c->current.current_fpe < c->num_fpes) {
#  861|               fpe = c->fpe_list[c->current.current_fpe];
#  862|->             (*fpe_functions[fpe->type]->client_died) ((void *) client, fpe);
#  863|           }
#  864|           err = Successful;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
xwayland-24.1.9/dix/dixfonts.c:874:19: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
/usr/include/X11/fonts/font.h:103:12: enter_function: entry to ‘StartListFontsWithInfo’
xwayland-24.1.9/dix/dixfonts.c:1050:8: branch_false: following ‘false’ branch (when ‘length <= 256’)...
xwayland-24.1.9/dix/dixfonts.c:1053:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1054:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1057:15: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1057:15: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1057:8: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1059:19: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1060:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1064:5: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1081:5: call_function: calling ‘doListFontsWithInfo’ from ‘StartListFontsWithInfo’
#  872|           err = Successful;
#  873|           if (!c->current.list_started) {
#  874|->             err = (*fpe_functions[fpe->type]->start_list_fonts_with_info)
#  875|                   (client, fpe, c->current.pattern, c->current.patlen,
#  876|                    c->current.max_names, &c->current.private);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
xwayland-24.1.9/dix/dixfonts.c:1025:5: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
/usr/include/X11/fonts/font.h:103:12: enter_function: entry to ‘StartListFontsWithInfo’
xwayland-24.1.9/dix/dixfonts.c:1050:8: branch_false: following ‘false’ branch (when ‘length <= 256’)...
xwayland-24.1.9/dix/dixfonts.c:1053:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1054:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1057:15: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1057:15: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1057:8: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1059:19: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1060:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1064:5: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1081:5: call_function: calling ‘doListFontsWithInfo’ from ‘StartListFontsWithInfo’
# 1023|                                    - sizeof(xGenericReply))
# 1024|       };
# 1025|->     WriteSwappedDataToClient(client, length, &finalReply);
# 1026|    bail:
# 1027|       ClientWakeup(client);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
xwayland-24.1.9/dix/dixfonts.c:1027:5: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
/usr/include/X11/fonts/font.h:103:12: enter_function: entry to ‘StartListFontsWithInfo’
xwayland-24.1.9/dix/dixfonts.c:1050:8: branch_false: following ‘false’ branch (when ‘length <= 256’)...
xwayland-24.1.9/dix/dixfonts.c:1053:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1054:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1057:15: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1057:15: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1057:8: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1059:19: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1060:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1064:5: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1081:5: call_function: calling ‘doListFontsWithInfo’ from ‘StartListFontsWithInfo’
# 1025|       WriteSwappedDataToClient(client, length, &finalReply);
# 1026|    bail:
# 1027|->     ClientWakeup(client);
# 1028|       for (i = 0; i < c->num_fpes; i++)
# 1029|           FreeFPE(c->fpe_list[i]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
xwayland-24.1.9/dix/dixfonts.c:1251:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/dixfonts.c:1138:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1139:13: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1192:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: following ‘false’ branch (when ‘client_state != 1’)...
xwayland-24.1.9/dix/dixfonts.c:1200:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1200:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1201:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1207:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1208:22: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1208:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1230:35: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1231:24: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1235:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1238:41: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1239:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1244:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1251:25: throw: if ‘GetScratchGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1251:25: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/14)
# 1249|   
# 1250|                       pGC =
# 1251|->                         GetScratchGC(new_closure->pGC->depth,
# 1252|                                        new_closure->pGC->pScreen);
# 1253|                       if (!pGC) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
xwayland-24.1.9/dix/dixfonts.c:1251:25: warning[-Wanalyzer-malloc-leak]: leak of ‘new_closure’
xwayland-24.1.9/dix/dixfonts.c:1138:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1139:13: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1192:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: following ‘false’ branch (when ‘client_state != 1’)...
xwayland-24.1.9/dix/dixfonts.c:1200:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1200:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1201:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1207:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1208:22: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1208:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1230:35: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1230:35: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1231:24: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1235:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1239:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1244:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1251:25: throw: if ‘GetScratchGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1251:25: danger: ‘new_closure’ leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
# 1249|   
# 1250|                       pGC =
# 1251|->                         GetScratchGC(new_closure->pGC->depth,
# 1252|                                        new_closure->pGC->pScreen);
# 1253|                       if (!pGC) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
xwayland-24.1.9/dix/dixfonts.c:1259:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/dixfonts.c:1138:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1139:13: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1192:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: following ‘false’ branch (when ‘client_state != 1’)...
xwayland-24.1.9/dix/dixfonts.c:1200:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1200:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1201:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1207:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1208:22: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1208:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1230:35: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1231:24: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1235:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1238:41: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1239:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1244:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1253:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1259:39: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1259:32: throw: if ‘CopyGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1259:32: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/14)
# 1257|                           goto bail;
# 1258|                       }
# 1259|->                     if ((err = CopyGC(new_closure->pGC, pGC, GCFunction |
# 1260|                                         GCPlaneMask | GCForeground |
# 1261|                                         GCBackground | GCFillStyle |

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
xwayland-24.1.9/dix/dixfonts.c:1259:32: warning[-Wanalyzer-malloc-leak]: leak of ‘new_closure’
xwayland-24.1.9/dix/dixfonts.c:1138:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1139:13: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1192:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: following ‘false’ branch (when ‘client_state != 1’)...
xwayland-24.1.9/dix/dixfonts.c:1200:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1200:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1201:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1207:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1208:22: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1208:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1230:35: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1230:35: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1231:24: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1235:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1239:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1244:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1253:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1259:39: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1259:32: throw: if ‘CopyGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1259:32: danger: ‘new_closure’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
# 1257|                           goto bail;
# 1258|                       }
# 1259|->                     if ((err = CopyGC(new_closure->pGC, pGC, GCFunction |
# 1260|                                         GCPlaneMask | GCForeground |
# 1261|                                         GCBackground | GCFillStyle |

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
xwayland-24.1.9/dix/dixfonts.c:1267:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/dixfonts.c:1138:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1139:13: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1192:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: following ‘false’ branch (when ‘client_state != 1’)...
xwayland-24.1.9/dix/dixfonts.c:1200:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1200:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1201:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1207:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1208:22: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1208:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1230:35: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1231:24: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1235:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1238:41: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1239:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1244:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1253:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1259:39: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1259:24: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1267:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1267:25: throw: if ‘FreeScratchGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1267:25: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/14)
# 1265|                                         GCSubwindowMode | GCClipXOrigin |
# 1266|                                         GCClipYOrigin | GCClipMask)) != Success) {
# 1267|->                         FreeScratchGC(pGC);
# 1268|                           free(new_closure->data);
# 1269|                           free(new_closure);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
xwayland-24.1.9/dix/dixfonts.c:1267:25: warning[-Wanalyzer-malloc-leak]: leak of ‘new_closure’
xwayland-24.1.9/dix/dixfonts.c:1138:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1139:13: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1192:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: following ‘false’ branch (when ‘client_state != 1’)...
xwayland-24.1.9/dix/dixfonts.c:1200:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1200:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1201:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1207:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1208:22: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1208:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1230:35: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1230:35: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1231:24: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1235:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1239:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1244:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1253:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1259:39: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1259:24: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1267:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1267:25: throw: if ‘FreeScratchGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1267:25: danger: ‘new_closure’ leaks here; was allocated at [(13)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/12)
# 1265|                                         GCSubwindowMode | GCClipXOrigin |
# 1266|                                         GCClipYOrigin | GCClipMask)) != Success) {
# 1267|->                         FreeScratchGC(pGC);
# 1268|                           free(new_closure->data);
# 1269|                           free(new_closure);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
xwayland-24.1.9/dix/dixfonts.c:1276:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/dixfonts.c:1138:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1139:13: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1192:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: following ‘false’ branch (when ‘client_state != 1’)...
xwayland-24.1.9/dix/dixfonts.c:1200:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1200:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1201:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1207:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1208:22: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1208:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1230:35: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1231:24: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1235:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1238:41: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1239:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1244:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1253:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1259:39: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1259:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1274:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1276:21: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1276:21: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/14)
# 1274|                       origGC = c->pGC;
# 1275|                       c->pGC = pGC;
# 1276|->                     ValidateGC(c->pDraw, c->pGC);
# 1277|   
# 1278|                       ClientSleep(client, (ClientSleepProcPtr) doPolyText, c);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
xwayland-24.1.9/dix/dixfonts.c:1276:21: warning[-Wanalyzer-malloc-leak]: leak of ‘new_closure’
xwayland-24.1.9/dix/dixfonts.c:1138:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1139:13: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1192:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: following ‘false’ branch (when ‘client_state != 1’)...
xwayland-24.1.9/dix/dixfonts.c:1200:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1200:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1201:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1207:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1208:22: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1208:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1230:35: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1230:35: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1231:24: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1235:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1239:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1244:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1253:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1259:39: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1259:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1274:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1276:21: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1276:21: danger: ‘new_closure’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
# 1274|                       origGC = c->pGC;
# 1275|                       c->pGC = pGC;
# 1276|->                     ValidateGC(c->pDraw, c->pGC);
# 1277|   
# 1278|                       ClientSleep(client, (ClientSleepProcPtr) doPolyText, c);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
xwayland-24.1.9/dix/dixfonts.c:1278:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/dixfonts.c:1138:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1139:13: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1192:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: following ‘false’ branch (when ‘client_state != 1’)...
xwayland-24.1.9/dix/dixfonts.c:1200:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1200:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1201:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1207:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1208:22: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1208:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1230:35: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1231:24: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1235:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1238:41: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1239:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1244:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1253:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1259:39: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1259:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1274:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1278:21: throw: if ‘ClientSleep’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1278:21: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/14)
# 1276|                       ValidateGC(c->pDraw, c->pGC);
# 1277|   
# 1278|->                     ClientSleep(client, (ClientSleepProcPtr) doPolyText, c);
# 1279|   
# 1280|                       /* Set up to perform steps 3 and 4 */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
xwayland-24.1.9/dix/dixfonts.c:1278:21: warning[-Wanalyzer-malloc-leak]: leak of ‘new_closure’
xwayland-24.1.9/dix/dixfonts.c:1138:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1139:13: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1192:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1196:16: branch_false: following ‘false’ branch (when ‘client_state != 1’)...
xwayland-24.1.9/dix/dixfonts.c:1200:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1200:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1201:25: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1207:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1208:22: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1208:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1230:35: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1230:35: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1231:24: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1235:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1239:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1244:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1253:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1259:39: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1259:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1274:21: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1278:21: throw: if ‘ClientSleep’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1278:21: danger: ‘new_closure’ leaks here; was allocated at [(13)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/12)
# 1276|                       ValidateGC(c->pDraw, c->pGC);
# 1277|   
# 1278|->                     ClientSleep(client, (ClientSleepProcPtr) doPolyText, c);
# 1279|   
# 1280|                       /* Set up to perform steps 3 and 4 */

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def311]
xwayland-24.1.9/dix/dixfonts.c:1435:19: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
xwayland-24.1.9/dix/dixfonts.c:1381:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1389:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1404:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1405:14: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1405:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1416:27: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1417:16: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1422:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1425:20: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1426:16: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1432:35: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1435:19: throw: if ‘GetScratchGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1435:19: danger: ‘data’ leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
# 1433|               c->data = data;
# 1434|   
# 1435|->             pGC = GetScratchGC(c->pGC->depth, c->pGC->pScreen);
# 1436|               if (!pGC) {
# 1437|                   free(c->data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
xwayland-24.1.9/dix/dixfonts.c:1435:19: warning[-Wanalyzer-malloc-leak]: leak of ‘new_closure’
xwayland-24.1.9/dix/dixfonts.c:1381:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1389:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1404:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1405:14: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1405:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1416:27: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1416:27: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1417:16: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1422:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1426:16: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1432:35: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1435:19: throw: if ‘GetScratchGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1435:19: danger: ‘new_closure’ leaks here; was allocated at [(7)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/6)
# 1433|               c->data = data;
# 1434|   
# 1435|->             pGC = GetScratchGC(c->pGC->depth, c->pGC->pScreen);
# 1436|               if (!pGC) {
# 1437|                   free(c->data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def313]
xwayland-24.1.9/dix/dixfonts.c:1443:24: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
xwayland-24.1.9/dix/dixfonts.c:1381:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1389:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1404:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1405:14: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1405:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1416:27: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1417:16: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1422:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1425:20: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1426:16: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1432:35: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1436:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1443:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1443:24: throw: if ‘CopyGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1443:24: danger: ‘data’ leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
# 1441|                   goto bail;
# 1442|               }
# 1443|->             if ((err = CopyGC(c->pGC, pGC, GCFunction | GCPlaneMask |
# 1444|                                 GCForeground | GCBackground | GCFillStyle |
# 1445|                                 GCTile | GCStipple | GCTileStipXOrigin |

Error: GCC_ANALYZER_WARNING (CWE-401): [#def314]
xwayland-24.1.9/dix/dixfonts.c:1443:24: warning[-Wanalyzer-malloc-leak]: leak of ‘new_closure’
xwayland-24.1.9/dix/dixfonts.c:1381:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1389:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1404:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1405:14: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1405:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1416:27: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1416:27: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1417:16: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1422:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1426:16: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1432:35: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1436:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1443:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1443:24: throw: if ‘CopyGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1443:24: danger: ‘new_closure’ leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
# 1441|                   goto bail;
# 1442|               }
# 1443|->             if ((err = CopyGC(c->pGC, pGC, GCFunction | GCPlaneMask |
# 1444|                                 GCForeground | GCBackground | GCFillStyle |
# 1445|                                 GCTile | GCStipple | GCTileStipXOrigin |

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
xwayland-24.1.9/dix/dixfonts.c:1449:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
xwayland-24.1.9/dix/dixfonts.c:1381:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1389:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1404:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1405:14: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1405:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1416:27: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1417:16: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1422:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1425:20: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1426:16: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1432:35: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1436:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1443:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1443:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1449:17: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1449:17: throw: if ‘FreeScratchGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1449:17: danger: ‘data’ leaks here; was allocated at [(9)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/8)
# 1447|                                 GCSubwindowMode | GCClipXOrigin |
# 1448|                                 GCClipYOrigin | GCClipMask)) != Success) {
# 1449|->                 FreeScratchGC(pGC);
# 1450|                   free(c->data);
# 1451|                   free(c);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
xwayland-24.1.9/dix/dixfonts.c:1449:17: warning[-Wanalyzer-malloc-leak]: leak of ‘new_closure’
xwayland-24.1.9/dix/dixfonts.c:1381:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1389:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1404:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1405:14: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1405:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1416:27: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1416:27: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1417:16: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1422:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1426:16: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1432:35: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1436:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1443:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1443:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1449:17: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1449:17: throw: if ‘FreeScratchGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1449:17: danger: ‘new_closure’ leaks here; was allocated at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
# 1447|                                 GCSubwindowMode | GCClipXOrigin |
# 1448|                                 GCClipYOrigin | GCClipMask)) != Success) {
# 1449|->                 FreeScratchGC(pGC);
# 1450|                   free(c->data);
# 1451|                   free(c);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
xwayland-24.1.9/dix/dixfonts.c:1457:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
xwayland-24.1.9/dix/dixfonts.c:1381:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1389:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1404:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1405:14: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1405:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1416:27: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1417:16: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1422:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1425:20: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1426:16: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1432:35: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1436:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1443:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1443:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1456:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1457:13: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1457:13: danger: ‘data’ leaks here; was allocated at [(9)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/8)
# 1455|               }
# 1456|               c->pGC = pGC;
# 1457|->             ValidateGC(c->pDraw, c->pGC);
# 1458|   
# 1459|               ClientSleep(client, (ClientSleepProcPtr) doImageText, c);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
xwayland-24.1.9/dix/dixfonts.c:1457:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_closure’
xwayland-24.1.9/dix/dixfonts.c:1381:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1389:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1404:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1405:14: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1405:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1416:27: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1416:27: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1417:16: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1422:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1426:16: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1432:35: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1436:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1443:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1443:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1456:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1457:13: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1457:13: danger: ‘new_closure’ leaks here; was allocated at [(7)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/6)
# 1455|               }
# 1456|               c->pGC = pGC;
# 1457|->             ValidateGC(c->pDraw, c->pGC);
# 1458|   
# 1459|               ClientSleep(client, (ClientSleepProcPtr) doImageText, c);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
xwayland-24.1.9/dix/dixfonts.c:1459:13: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
xwayland-24.1.9/dix/dixfonts.c:1381:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1389:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1404:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1405:14: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1405:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1416:27: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1417:16: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1422:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1425:20: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1426:16: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1432:35: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1436:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1443:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1443:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1456:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1459:13: throw: if ‘ClientSleep’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1459:13: danger: ‘data’ leaks here; was allocated at [(9)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/8)
# 1457|               ValidateGC(c->pDraw, c->pGC);
# 1458|   
# 1459|->             ClientSleep(client, (ClientSleepProcPtr) doImageText, c);
# 1460|           }
# 1461|           return TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
xwayland-24.1.9/dix/dixfonts.c:1459:13: warning[-Wanalyzer-malloc-leak]: leak of ‘new_closure’
xwayland-24.1.9/dix/dixfonts.c:1381:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1389:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1404:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1405:14: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1405:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1416:27: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1416:27: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1417:16: branch_false: following ‘false’ branch (when ‘new_closure’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1422:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1426:16: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1432:35: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1436:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1443:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1443:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1456:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1459:13: throw: if ‘ClientSleep’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1459:13: danger: ‘new_closure’ leaks here; was allocated at [(7)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/6)
# 1457|               ValidateGC(c->pDraw, c->pGC);
# 1458|   
# 1459|->             ClientSleep(client, (ClientSleepProcPtr) doImageText, c);
# 1460|           }
# 1461|           return TRUE;

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
xwayland-24.1.9/dix/dixfonts.c:1523:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fpe’
xwayland-24.1.9/dix/dixfonts.c:1570:1: enter_function: entry to ‘SetFontPathElements’
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: following ‘false’ branch (when ‘fplist’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1587:17: branch_true: following ‘true’ branch (when ‘i < npaths’)...
xwayland-24.1.9/dix/dixfonts.c:1588:32: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1603:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1615:23: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1615:23: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1616:20: branch_false: following ‘false’ branch (when ‘fpe’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1620:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1621:20: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1626:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1632:29: call_function: calling ‘DetermineFPEType’ from ‘SetFontPathElements’
# 1521|   
# 1522|       for (i = 0; i < num_fpe_types; i++) {
# 1523|->         if ((*fpe_functions[i]->name_check) (pathname))
# 1524|               return i;
# 1525|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def323]
xwayland-24.1.9/dix/dixfonts.c:1523:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fplist’
xwayland-24.1.9/dix/dixfonts.c:1570:1: enter_function: entry to ‘SetFontPathElements’
xwayland-24.1.9/dix/dixfonts.c:1578:14: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: following ‘false’ branch (when ‘fplist’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1587:17: branch_true: following ‘true’ branch (when ‘i < npaths’)...
xwayland-24.1.9/dix/dixfonts.c:1588:32: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1603:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1615:23: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1616:20: branch_false: following ‘false’ branch (when ‘fpe’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1620:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1621:20: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1626:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1632:29: call_function: calling ‘DetermineFPEType’ from ‘SetFontPathElements’
# 1521|   
# 1522|       for (i = 0; i < num_fpe_types; i++) {
# 1523|->         if ((*fpe_functions[i]->name_check) (pathname))
# 1524|               return i;
# 1525|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def324]
xwayland-24.1.9/dix/dixfonts.c:1523:13: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/dix/dixfonts.c:1570:1: enter_function: entry to ‘SetFontPathElements’
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: following ‘false’ branch (when ‘fplist’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1587:17: branch_true: following ‘true’ branch (when ‘i < npaths’)...
xwayland-24.1.9/dix/dixfonts.c:1588:32: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1603:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1615:23: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1616:20: branch_false: following ‘false’ branch (when ‘fpe’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1620:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1620:24: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1621:20: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1626:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1632:29: call_function: calling ‘DetermineFPEType’ from ‘SetFontPathElements’
# 1521|   
# 1522|       for (i = 0; i < num_fpe_types; i++) {
# 1523|->         if ((*fpe_functions[i]->name_check) (pathname))
# 1524|               return i;
# 1525|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def325]
xwayland-24.1.9/dix/dixfonts.c:1585:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fplist’
xwayland-24.1.9/dix/dixfonts.c:1578:14: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: following ‘false’ branch (when ‘fplist’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1583:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1584:26: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1584:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1585:13: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1585:13: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1585:13: danger: ‘fplist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
# 1583|       for (i = 0; i < num_fpe_types; i++) {
# 1584|           if (fpe_functions[i]->set_path_hook)
# 1585|->             (*fpe_functions[i]->set_path_hook) ();
# 1586|       }
# 1587|       for (i = 0; i < npaths; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def326]
xwayland-24.1.9/dix/dixfonts.c:1585:13: warning[-Wanalyzer-malloc-leak]: leak of ‘nump’
xwayland-24.1.9/dix/dixfonts.c:1696:1: enter_function: entry to ‘SetDefaultFontPath’
xwayland-24.1.9/dix/dixfonts.c:1707:12: branch_true: following ‘true’ branch (when ‘start’ is NULL)...
xwayland-24.1.9/dix/dixfonts.c:1714:8: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1714:8: branch_true: following ‘true’ branch (when ‘start’ is NULL)...
xwayland-24.1.9/dix/dixfonts.c:1715:57: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1715:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1722:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1722:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1726:11: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1727:27: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1728:8: branch_false: following ‘false’ branch (when ‘newpath’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1733:5: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1734:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1747:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1749:11: call_function: calling ‘SetFontPathElements’ from ‘SetDefaultFontPath’
# 1583|       for (i = 0; i < num_fpe_types; i++) {
# 1584|           if (fpe_functions[i]->set_path_hook)
# 1585|->             (*fpe_functions[i]->set_path_hook) ();
# 1586|       }
# 1587|       for (i = 0; i < npaths; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def327]
xwayland-24.1.9/dix/dixfonts.c:1592:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fplist’
xwayland-24.1.9/dix/dixfonts.c:1578:14: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: following ‘false’ branch (when ‘fplist’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1587:17: branch_true: following ‘true’ branch (when ‘i < npaths’)...
xwayland-24.1.9/dix/dixfonts.c:1588:32: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1590:12: branch_true: following ‘true’ branch (when ‘len == 0’)...
xwayland-24.1.9/dix/dixfonts.c:1591:16: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1591:16: branch_true: following ‘true’ branch (when ‘persist != 0’)...
xwayland-24.1.9/dix/dixfonts.c:1592:17: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1592:17: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1592:17: danger: ‘fplist’ leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
# 1590|           if (len == 0) {
# 1591|               if (persist)
# 1592|->                 ErrorF
# 1593|                       ("[dix] Removing empty element from the valid list of fontpaths\n");
# 1594|               err = BadValue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def328]
xwayland-24.1.9/dix/dixfonts.c:1592:17: warning[-Wanalyzer-malloc-leak]: leak of ‘nump’
xwayland-24.1.9/dix/dixfonts.c:1696:1: enter_function: entry to ‘SetDefaultFontPath’
xwayland-24.1.9/dix/dixfonts.c:1707:12: branch_true: following ‘true’ branch (when ‘start’ is NULL)...
xwayland-24.1.9/dix/dixfonts.c:1714:8: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1714:8: branch_true: following ‘true’ branch (when ‘start’ is NULL)...
xwayland-24.1.9/dix/dixfonts.c:1715:57: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1715:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1722:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1722:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1726:11: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1727:27: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1728:8: branch_false: following ‘false’ branch (when ‘newpath’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1733:5: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1734:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1747:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1749:11: call_function: calling ‘SetFontPathElements’ from ‘SetDefaultFontPath’
# 1590|           if (len == 0) {
# 1591|               if (persist)
# 1592|->                 ErrorF
# 1593|                       ("[dix] Removing empty element from the valid list of fontpaths\n");
# 1594|               err = BadValue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def329]
xwayland-24.1.9/dix/dixfonts.c:1604:23: warning[-Wanalyzer-malloc-leak]: leak of ‘fplist’
xwayland-24.1.9/dix/dixfonts.c:1570:1: enter_function: entry to ‘SetFontPathElements’
xwayland-24.1.9/dix/dixfonts.c:1578:14: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: following ‘false’ branch (when ‘fplist’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1587:17: branch_true: following ‘true’ branch (when ‘i < npaths’)...
xwayland-24.1.9/dix/dixfonts.c:1588:32: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1602:19: call_function: calling ‘find_existing_fpe’ from ‘SetFontPathElements’
xwayland-24.1.9/dix/dixfonts.c:1602:19: return_function: returning to ‘SetFontPathElements’ from ‘find_existing_fpe’
xwayland-24.1.9/dix/dixfonts.c:1603:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/dixfonts.c:1604:38: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1604:23: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1604:23: danger: ‘fplist’ leaks here; was allocated at [(2)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/1)
# 1602|               fpe = find_existing_fpe(font_path_elements, num_fpes, cp, len);
# 1603|               if (fpe) {
# 1604|->                 err = (*fpe_functions[fpe->type]->reset_fpe) (fpe);
# 1605|                   if (err == Successful) {
# 1606|                       UseFPE(fpe);        /* since it'll be decref'd later when freed

Error: GCC_ANALYZER_WARNING (CWE-401): [#def330]
xwayland-24.1.9/dix/dixfonts.c:1636:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fpe’
xwayland-24.1.9/dix/dixfonts.c:1570:1: enter_function: entry to ‘SetFontPathElements’
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: following ‘false’ branch (when ‘fplist’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1587:17: branch_true: following ‘true’ branch (when ‘i < npaths’)...
xwayland-24.1.9/dix/dixfonts.c:1588:32: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1603:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1615:23: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1615:23: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1616:20: branch_false: following ‘false’ branch (when ‘fpe’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1620:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1621:20: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1626:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1632:29: call_function: calling ‘DetermineFPEType’ from ‘SetFontPathElements’
xwayland-24.1.9/dix/dixfonts.c:1632:29: return_function: returning to ‘SetFontPathElements’ from ‘DetermineFPEType’
xwayland-24.1.9/dix/dixfonts.c:1633:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1636:42: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1636:27: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1636:27: danger: ‘fpe’ leaks here; was allocated at [(8)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/7)
# 1634|                       err = BadValue;
# 1635|                   else
# 1636|->                     err = (*fpe_functions[fpe->type]->init_fpe) (fpe);
# 1637|                   if (err != Successful) {
# 1638|                       if (persist) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def331]
xwayland-24.1.9/dix/dixfonts.c:1636:27: warning[-Wanalyzer-malloc-leak]: leak of ‘fplist’
xwayland-24.1.9/dix/dixfonts.c:1570:1: enter_function: entry to ‘SetFontPathElements’
xwayland-24.1.9/dix/dixfonts.c:1578:14: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: following ‘false’ branch (when ‘fplist’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1579:8: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1587:17: branch_true: following ‘true’ branch (when ‘i < npaths’)...
xwayland-24.1.9/dix/dixfonts.c:1588:32: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1603:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1615:23: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1616:20: branch_false: following ‘false’ branch (when ‘fpe’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1620:31: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1621:20: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1626:17: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1632:29: call_function: calling ‘DetermineFPEType’ from ‘SetFontPathElements’
xwayland-24.1.9/dix/dixfonts.c:1632:29: return_function: returning to ‘SetFontPathElements’ from ‘DetermineFPEType’
xwayland-24.1.9/dix/dixfonts.c:1633:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1636:42: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1636:27: throw: if the called function throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1636:27: danger: ‘fplist’ leaks here; was allocated at [(2)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/1)
# 1634|                       err = BadValue;
# 1635|                   else
# 1636|->                     err = (*fpe_functions[fpe->type]->init_fpe) (fpe);
# 1637|                   if (err != Successful) {
# 1638|                       if (persist) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def332]
xwayland-24.1.9/dix/dixfonts.c:1661:9: warning[-Wanalyzer-malloc-leak]: leak of ‘nump’
xwayland-24.1.9/dix/dixfonts.c:1696:1: enter_function: entry to ‘SetDefaultFontPath’
xwayland-24.1.9/dix/dixfonts.c:1707:12: branch_true: following ‘true’ branch (when ‘start’ is NULL)...
xwayland-24.1.9/dix/dixfonts.c:1714:8: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1714:8: branch_true: following ‘true’ branch (when ‘start’ is NULL)...
xwayland-24.1.9/dix/dixfonts.c:1715:57: branch_true: ...to here
xwayland-24.1.9/dix/dixfonts.c:1715:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1722:9: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1722:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1726:11: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1727:27: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1728:8: branch_false: following ‘false’ branch (when ‘newpath’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1733:5: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1734:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/dixfonts.c:1747:13: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1749:11: call_function: calling ‘SetFontPathElements’ from ‘SetDefaultFontPath’
# 1659|       font_path_elements = fplist;
# 1660|       if (patternCache)
# 1661|->         xfont2_empty_font_pattern_cache(patternCache);
# 1662|       num_fpes = valid_paths;
# 1663|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def333]
xwayland-24.1.9/dix/dixfonts.c:1956:10: warning[-Wanalyzer-malloc-leak]: leak of ‘entry’
xwayland-24.1.9/dix/dixfonts.c:1948:34: acquire_memory: allocated here
xwayland-24.1.9/dix/dixfonts.c:1950:8: branch_false: following ‘false’ branch (when ‘entry’ is non-NULL)...
xwayland-24.1.9/dix/dixfonts.c:1953:5: branch_false: ...to here
xwayland-24.1.9/dix/dixfonts.c:1956:10: throw: if ‘SetNotifyFd’ throws an exception...
xwayland-24.1.9/dix/dixfonts.c:1956:10: danger: ‘entry’ leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
# 1954|       entry->data = data;
# 1955|       entry->handler = handler;
# 1956|->     if (!SetNotifyFd(fd, fs_fd_handler, X_NOTIFY_READ, entry)) {
# 1957|           free(entry);
# 1958|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def334]
xwayland-24.1.9/dix/dixutils.c:620:5: warning[-Wanalyzer-malloc-leak]: leak of ‘q’
xwayland-24.1.9/dix/dixutils.c:616:9: acquire_memory: allocated here
xwayland-24.1.9/dix/dixutils.c:617:8: branch_false: following ‘false’ branch (when ‘q’ is non-NULL)...
xwayland-24.1.9/dix/dixutils.c:620:5: branch_false: ...to here
xwayland-24.1.9/dix/dixutils.c:620:5: throw: if ‘IgnoreClient’ throws an exception...
xwayland-24.1.9/dix/dixutils.c:620:5: danger: ‘q’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  618|           return FALSE;
#  619|   
#  620|->     IgnoreClient(client);
#  621|       q->next = sleepQueue;
#  622|       q->client = client;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def335]
xwayland-24.1.9/dix/enterleave.c:797:24: warning[-Wanalyzer-malloc-leak]: leak of ‘xi2event’
xwayland-24.1.9/dix/enterleave.c:1422:1: enter_function: entry to ‘DeviceFocusEvents’
xwayland-24.1.9/dix/enterleave.c:1430:8: branch_false: following ‘false’ branch (when ‘from != to’)...
xwayland-24.1.9/dix/enterleave.c:1432:11: branch_false: ...to here
xwayland-24.1.9/dix/enterleave.c:1441:8: branch_true: following ‘true’ branch (when ‘to <= 1’)...
xwayland-24.1.9/dix/enterleave.c:1442:12: branch_true: ...to here
xwayland-24.1.9/dix/enterleave.c:1442:12: branch_true: following ‘true’ branch (when ‘from <= 1’)...
xwayland-24.1.9/dix/enterleave.c:1443:16: branch_true: ...to here
xwayland-24.1.9/dix/enterleave.c:1443:16: branch_true: following ‘true’ branch (when ‘from == 1’)...
xwayland-24.1.9/dix/enterleave.c:1444:17: branch_true: ...to here
xwayland-24.1.9/dix/enterleave.c:1444:17: call_function: calling ‘DeviceFocusEvent’ from ‘DeviceFocusEvents’
#  795|       xi2event->sourceid = dev->id;       /* a device doesn't change focus by itself */
#  796|       xi2event->mode = mode;
#  797|->     xi2event->root_x = double_to_fp1616(mouse->spriteInfo->sprite->hot.x);
#  798|       xi2event->root_y = double_to_fp1616(mouse->spriteInfo->sprite->hot.y);
#  799|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def336]
xwayland-24.1.9/dix/enterleave.c:798:24: warning[-Wanalyzer-malloc-leak]: leak of ‘xi2event’
xwayland-24.1.9/dix/enterleave.c:1422:1: enter_function: entry to ‘DeviceFocusEvents’
xwayland-24.1.9/dix/enterleave.c:1430:8: branch_false: following ‘false’ branch (when ‘from != to’)...
xwayland-24.1.9/dix/enterleave.c:1432:11: branch_false: ...to here
xwayland-24.1.9/dix/enterleave.c:1441:8: branch_true: following ‘true’ branch (when ‘to <= 1’)...
xwayland-24.1.9/dix/enterleave.c:1442:12: branch_true: ...to here
xwayland-24.1.9/dix/enterleave.c:1442:12: branch_true: following ‘true’ branch (when ‘from <= 1’)...
xwayland-24.1.9/dix/enterleave.c:1443:16: branch_true: ...to here
xwayland-24.1.9/dix/enterleave.c:1443:16: branch_true: following ‘true’ branch (when ‘from == 1’)...
xwayland-24.1.9/dix/enterleave.c:1444:17: branch_true: ...to here
xwayland-24.1.9/dix/enterleave.c:1444:17: call_function: calling ‘DeviceFocusEvent’ from ‘DeviceFocusEvents’
#  796|       xi2event->mode = mode;
#  797|       xi2event->root_x = double_to_fp1616(mouse->spriteInfo->sprite->hot.x);
#  798|->     xi2event->root_y = double_to_fp1616(mouse->spriteInfo->sprite->hot.y);
#  799|   
#  800|       for (i = 0; mouse && mouse->button && i < mouse->button->numButtons; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def337]
xwayland-24.1.9/dix/enterleave.c:816:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xi2event’
xwayland-24.1.9/dix/enterleave.c:1422:1: enter_function: entry to ‘DeviceFocusEvents’
xwayland-24.1.9/dix/enterleave.c:1430:8: branch_false: following ‘false’ branch (when ‘from != to’)...
xwayland-24.1.9/dix/enterleave.c:1432:11: branch_false: ...to here
xwayland-24.1.9/dix/enterleave.c:1441:8: branch_true: following ‘true’ branch (when ‘to <= 1’)...
xwayland-24.1.9/dix/enterleave.c:1442:12: branch_true: ...to here
xwayland-24.1.9/dix/enterleave.c:1442:12: branch_true: following ‘true’ branch (when ‘from <= 1’)...
xwayland-24.1.9/dix/enterleave.c:1443:16: branch_true: ...to here
xwayland-24.1.9/dix/enterleave.c:1443:16: branch_true: following ‘true’ branch (when ‘from == 1’)...
xwayland-24.1.9/dix/enterleave.c:1444:17: branch_true: ...to here
xwayland-24.1.9/dix/enterleave.c:1444:17: call_function: calling ‘DeviceFocusEvent’ from ‘DeviceFocusEvents’
#  814|       }
#  815|   
#  816|->     FixUpEventFromWindow(dev->spriteInfo->sprite, (xEvent *) xi2event, pWin,
#  817|                            None, FALSE);
#  818|   

Error: GCC_ANALYZER_WARNING (CWE-122): [#def338]
xwayland-24.1.9/dix/eventconvert.c:809:24: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
xwayland-24.1.9/dix/eventconvert.c:774:1: enter_function: entry to ‘eventToRawEvent’
xwayland-24.1.9/dix/eventconvert.c:782:13: call_function: inlined call to ‘count_bits’ from ‘eventToRawEvent’
xwayland-24.1.9/dix/eventconvert.c:789:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/eventconvert.c:792:5: branch_false: ...to here
xwayland-24.1.9/dix/eventconvert.c:806:17: branch_true: following ‘true’ branch (when ‘i != 36’)...
xwayland-24.1.9/dix/eventconvert.c:807:13: branch_true: ...to here
xwayland-24.1.9/dix/eventconvert.c:807:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/eventconvert.c:807:12: branch_true: ...to here
xwayland-24.1.9/dix/eventconvert.c:809:24: danger: out-of-bounds write from byte 40 till byte 47 but region ends at byte 40
#  807|           if (BitIsOn(ev->valuators.mask, i)) {
#  808|               SetBit(ptr, i);
#  809|->             *axisval = double_to_fp3232(ev->valuators.data[i]);
#  810|               *axisval_raw = double_to_fp3232(ev->valuators.data_raw[i]);
#  811|               axisval++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def339]
xwayland-24.1.9/dix/events.c:433:16: warning[-Wanalyzer-malloc-leak]: leak of ‘event’
xwayland-24.1.9/dix/events.c:4755:1: enter_function: entry to ‘DeviceEnterLeaveEvent’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: allocated here
xwayland-24.1.9/dix/events.c:4805:8: branch_false: following ‘false’ branch (when ‘focus’ is NULL)...
xwayland-24.1.9/dix/events.c:4809:26: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4809:5: call_function: calling ‘FixUpEventFromWindow’ from ‘DeviceEnterLeaveEvent’
xwayland-24.1.9/dix/events.c:4809:5: return_function: returning to ‘DeviceEnterLeaveEvent’ from ‘FixUpEventFromWindow’
xwayland-24.1.9/dix/events.c:4812:14: call_function: calling ‘GetEventFilter’ from ‘DeviceEnterLeaveEvent’
#  431|           return event_get_filter_from_type(dev, event->u.u.type);
#  432|       else if ((evtype = xi2_get_type(event)))
#  433|->         return event_get_filter_from_xi2type(evtype);
#  434|       ErrorF("[dix] Unknown event type %d. No filter\n", event->u.u.type);
#  435|       return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
xwayland-24.1.9/dix/events.c:434:5: warning[-Wanalyzer-malloc-leak]: leak of ‘event’
xwayland-24.1.9/dix/events.c:4755:1: enter_function: entry to ‘DeviceEnterLeaveEvent’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: allocated here
xwayland-24.1.9/dix/events.c:4805:8: branch_false: following ‘false’ branch (when ‘focus’ is NULL)...
xwayland-24.1.9/dix/events.c:4809:26: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4809:5: call_function: calling ‘FixUpEventFromWindow’ from ‘DeviceEnterLeaveEvent’
xwayland-24.1.9/dix/events.c:4809:5: return_function: returning to ‘DeviceEnterLeaveEvent’ from ‘FixUpEventFromWindow’
xwayland-24.1.9/dix/events.c:4812:14: call_function: calling ‘GetEventFilter’ from ‘DeviceEnterLeaveEvent’
#  432|       else if ((evtype = xi2_get_type(event)))
#  433|           return event_get_filter_from_xi2type(evtype);
#  434|->     ErrorF("[dix] Unknown event type %d. No filter\n", event->u.u.type);
#  435|       return 0;
#  436|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def341]
xwayland-24.1.9/dix/events.c:773:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pScreen’
xwayland-24.1.9/dix/events.c:5081:1: enter_function: entry to ‘ProcChangeActivePointerGrab’
xwayland-24.1.9/dix/events.c:5090:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:5091:9: branch_false: ...to here
xwayland-24.1.9/dix/events.c:5091:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:5095:9: branch_false: ...to here
xwayland-24.1.9/dix/events.c:5095:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:5098:18: branch_false: ...to here
xwayland-24.1.9/dix/events.c:5101:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:5107:14: branch_false: ...to here
xwayland-24.1.9/dix/events.c:5110:8: branch_false: following ‘false’ branch (when ‘grab’ is non-NULL)...
xwayland-24.1.9/dix/events.c:5112:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:5112:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:5114:5: branch_false: ...to here
xwayland-24.1.9/dix/events.c:5116:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:5117:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:5116:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:5119:5: branch_false: ...to here
xwayland-24.1.9/dix/events.c:5121: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-401): [#def342]
xwayland-24.1.9/dix/events.c:2637:42: warning[-Wanalyzer-malloc-leak]: leak of ‘event’
xwayland-24.1.9/dix/events.c:4755:1: enter_function: entry to ‘DeviceEnterLeaveEvent’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: allocated here
xwayland-24.1.9/dix/events.c:4805:8: branch_false: following ‘false’ branch (when ‘focus’ is NULL)...
xwayland-24.1.9/dix/events.c:4809:26: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4809:5: call_function: calling ‘FixUpEventFromWindow’ from ‘DeviceEnterLeaveEvent’
# 2635|   
# 2636|       if (pSprite->hot.pScreen == pWin->drawable.pScreen) {
# 2637|->         event->event_x = event->root_x - double_to_fp1616(pWin->drawable.x);
# 2638|           event->event_y = event->root_y - double_to_fp1616(pWin->drawable.y);
# 2639|           event->child = child;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def343]
xwayland-24.1.9/dix/events.c:2638:42: warning[-Wanalyzer-malloc-leak]: leak of ‘event’
xwayland-24.1.9/dix/events.c:4755:1: enter_function: entry to ‘DeviceEnterLeaveEvent’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: allocated here
xwayland-24.1.9/dix/events.c:4805:8: branch_false: following ‘false’ branch (when ‘focus’ is NULL)...
xwayland-24.1.9/dix/events.c:4809:26: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4809:5: call_function: calling ‘FixUpEventFromWindow’ from ‘DeviceEnterLeaveEvent’
# 2636|       if (pSprite->hot.pScreen == pWin->drawable.pScreen) {
# 2637|           event->event_x = event->root_x - double_to_fp1616(pWin->drawable.x);
# 2638|->         event->event_y = event->root_y - double_to_fp1616(pWin->drawable.y);
# 2639|           event->child = child;
# 2640|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def344]
xwayland-24.1.9/dix/events.c:2661:42: warning[-Wanalyzer-malloc-leak]: leak of ‘event’
xwayland-24.1.9/dix/events.c:4755:1: enter_function: entry to ‘DeviceEnterLeaveEvent’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: allocated here
xwayland-24.1.9/dix/events.c:4805:8: branch_false: following ‘false’ branch (when ‘focus’ is NULL)...
xwayland-24.1.9/dix/events.c:4809:26: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4809:5: call_function: calling ‘FixUpEventFromWindow’ from ‘DeviceEnterLeaveEvent’
# 2659|   
# 2660|       if (pSprite->hot.pScreen == pWin->drawable.pScreen) {
# 2661|->         event->event_x = event->root_x - double_to_fp1616(pWin->drawable.x);
# 2662|           event->event_y = event->root_y - double_to_fp1616(pWin->drawable.y);
# 2663|           event->child = child;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
xwayland-24.1.9/dix/events.c:2662:42: warning[-Wanalyzer-malloc-leak]: leak of ‘event’
xwayland-24.1.9/dix/events.c:4755:1: enter_function: entry to ‘DeviceEnterLeaveEvent’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: allocated here
xwayland-24.1.9/dix/events.c:4805:8: branch_false: following ‘false’ branch (when ‘focus’ is NULL)...
xwayland-24.1.9/dix/events.c:4809:26: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4809:5: call_function: calling ‘FixUpEventFromWindow’ from ‘DeviceEnterLeaveEvent’
# 2660|       if (pSprite->hot.pScreen == pWin->drawable.pScreen) {
# 2661|           event->event_x = event->root_x - double_to_fp1616(pWin->drawable.x);
# 2662|->         event->event_y = event->root_y - double_to_fp1616(pWin->drawable.y);
# 2663|           event->child = child;
# 2664|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
xwayland-24.1.9/dix/events.c:2680:42: warning[-Wanalyzer-malloc-leak]: leak of ‘event’
xwayland-24.1.9/dix/events.c:4755:1: enter_function: entry to ‘DeviceEnterLeaveEvent’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: allocated here
xwayland-24.1.9/dix/events.c:4805:8: branch_false: following ‘false’ branch (when ‘focus’ is NULL)...
xwayland-24.1.9/dix/events.c:4809:26: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4809:5: call_function: calling ‘FixUpEventFromWindow’ from ‘DeviceEnterLeaveEvent’
# 2678|   
# 2679|       if (pSprite->hot.pScreen == pWin->drawable.pScreen) {
# 2680|->         event->event_x = event->root_x - double_to_fp1616(pWin->drawable.x);
# 2681|           event->event_y = event->root_y - double_to_fp1616(pWin->drawable.y);
# 2682|           event->child = child;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
xwayland-24.1.9/dix/events.c:2681:42: warning[-Wanalyzer-malloc-leak]: leak of ‘event’
xwayland-24.1.9/dix/events.c:4755:1: enter_function: entry to ‘DeviceEnterLeaveEvent’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: allocated here
xwayland-24.1.9/dix/events.c:4805:8: branch_false: following ‘false’ branch (when ‘focus’ is NULL)...
xwayland-24.1.9/dix/events.c:4809:26: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4809:5: call_function: calling ‘FixUpEventFromWindow’ from ‘DeviceEnterLeaveEvent’
# 2679|       if (pSprite->hot.pScreen == pWin->drawable.pScreen) {
# 2680|           event->event_x = event->root_x - double_to_fp1616(pWin->drawable.x);
# 2681|->         event->event_y = event->root_y - double_to_fp1616(pWin->drawable.y);
# 2682|           event->child = child;
# 2683|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def348]
xwayland-24.1.9/dix/events.c:4776:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘event’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: this call could return NULL
xwayland-24.1.9/dix/events.c:4776:5: danger: ‘event’ could be NULL: unchecked value from [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
# 4774|   
# 4775|       event = calloc(1, len);
# 4776|->     event->type = GenericEvent;
# 4777|       event->extension = IReqCode;
# 4778|       event->evtype = type;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
xwayland-24.1.9/dix/events.c:4786:21: warning[-Wanalyzer-malloc-leak]: leak of ‘event’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: allocated here
xwayland-24.1.9/dix/events.c:4786:21: throw: if ‘double_to_fp1616’ throws an exception...
xwayland-24.1.9/dix/events.c:4786:21: danger: ‘event’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
# 4784|       event->sourceid = sourceid;
# 4785|       event->mode = mode;
# 4786|->     event->root_x = double_to_fp1616(mouse->spriteInfo->sprite->hot.x);
# 4787|       event->root_y = double_to_fp1616(mouse->spriteInfo->sprite->hot.y);
# 4788|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
xwayland-24.1.9/dix/events.c:4787:21: warning[-Wanalyzer-malloc-leak]: leak of ‘event’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: allocated here
xwayland-24.1.9/dix/events.c:4787:21: throw: if ‘double_to_fp1616’ throws an exception...
xwayland-24.1.9/dix/events.c:4787:21: danger: ‘event’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
# 4785|       event->mode = mode;
# 4786|       event->root_x = double_to_fp1616(mouse->spriteInfo->sprite->hot.x);
# 4787|->     event->root_y = double_to_fp1616(mouse->spriteInfo->sprite->hot.y);
# 4788|   
# 4789|       for (i = 0; mouse && mouse->button && i < mouse->button->numButtons; i++)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
xwayland-24.1.9/dix/events.c:4793:11: warning[-Wanalyzer-malloc-leak]: leak of ‘event’
xwayland-24.1.9/dix/events.c:4767:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4768:10: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4767:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/events.c:4771:13: branch_false: ...to here
xwayland-24.1.9/dix/events.c:4775:13: acquire_memory: allocated here
xwayland-24.1.9/dix/events.c:4793:11: throw: if ‘GetMaster’ throws an exception...
xwayland-24.1.9/dix/events.c:4793:11: danger: ‘event’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
# 4791|               SetBit(&event[1], i);
# 4792|   
# 4793|->     kbd = GetMaster(mouse, MASTER_KEYBOARD);
# 4794|       if (kbd && kbd->key) {
# 4795|           event->mods.base_mods = kbd->key->xkbInfo->state.base_mods;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
xwayland-24.1.9/dix/extension.c:95:10: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
xwayland-24.1.9/dix/extension.c:83:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/extension.c:85:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/extension.c:86:21: branch_false: ...to here
xwayland-24.1.9/dix/extension.c:85:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/extension.c:92:11: branch_false: ...to here
xwayland-24.1.9/dix/extension.c:92:11: acquire_memory: allocated here
xwayland-24.1.9/dix/extension.c:93:8: branch_false: following ‘false’ branch (when ‘ext’ is non-NULL)...
xwayland-24.1.9/dix/extension.c:95:30: branch_false: ...to here
xwayland-24.1.9/dix/extension.c:95:10: throw: if ‘dixAllocatePrivates’ throws an exception...
xwayland-24.1.9/dix/extension.c:95:10: danger: ‘ext’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   93|       if (!ext)
#   94|           return NULL;
#   95|->     if (!dixAllocatePrivates(&ext->devPrivates, PRIVATE_EXTENSION)) {
#   96|           free(ext);
#   97|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
xwayland-24.1.9/dix/extension.c:218:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bufptr’
xwayland-24.1.9/dix/extension.c:260:1: enter_function: entry to ‘ProcListExtensions’
xwayland-24.1.9/dix/extension.c:266:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/extension.c:271:27: branch_false: ...to here
xwayland-24.1.9/dix/extension.c:276:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/extension.c:276:8: branch_true: ...to here
xwayland-24.1.9/dix/extension.c:281:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/extension.c:281:16: branch_true: ...to here
xwayland-24.1.9/dix/extension.c:288:27: acquire_memory: allocated here
xwayland-24.1.9/dix/extension.c:289:12: branch_false: following ‘false’ branch (when ‘bufptr’ is non-NULL)...
xwayland-24.1.9/dix/extension.c:289:12: branch_false: ...to here
xwayland-24.1.9/dix/extension.c:291:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/extension.c:294:55: branch_true: ...to here
xwayland-24.1.9/dix/extension.c:294:18: call_function: calling ‘ExtensionAvailable’ from ‘ProcListExtensions’
#  216|   ExtensionAvailable(ClientPtr client, ExtensionEntry *ext)
#  217|   {
#  218|->     if (XaceHook(XACE_EXT_ACCESS, client, ext) != Success)
#  219|           return FALSE;
#  220|       if (!ext->base)

Error: GCC_ANALYZER_WARNING (CWE-122): [#def354]
xwayland-24.1.9/dix/extension.c:297:13: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
xwayland-24.1.9/dix/extension.c:266:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/extension.c:271:27: branch_false: ...to here
xwayland-24.1.9/dix/extension.c:276:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/extension.c:276:8: branch_true: ...to here
xwayland-24.1.9/dix/extension.c:281:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/extension.c:281:16: branch_true: ...to here
xwayland-24.1.9/dix/extension.c:289:12: branch_false: following ‘false’ branch (when ‘bufptr’ is non-NULL)...
xwayland-24.1.9/dix/extension.c:289:12: branch_false: ...to here
xwayland-24.1.9/dix/extension.c:291:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/extension.c:294:55: branch_true: ...to here
xwayland-24.1.9/dix/extension.c:294:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/extension.c:297:48: branch_false: ...to here
xwayland-24.1.9/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-401): [#def355]
xwayland-24.1.9/dix/gc.c:1028:5: warning[-Wanalyzer-malloc-leak]: leak of ‘prectsNew’
xwayland-24.1.9/dix/gc.c:1012:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/gc.c:1014:5: branch_false: ...to here
xwayland-24.1.9/dix/gc.c:1015:17: acquire_memory: allocated here
xwayland-24.1.9/dix/gc.c:1016:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/gc.c:1019:5: branch_false: ...to here
xwayland-24.1.9/dix/gc.c:1028:5: throw: if the called function throws an exception...
xwayland-24.1.9/dix/gc.c:1028:5: danger: ‘prectsNew’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 1026|       if (size)
# 1027|           memmove((char *) prectsNew, (char *) prects, size);
# 1028|->     (*pGC->funcs->ChangeClip) (pGC, newct, (void *) prectsNew, nrects);
# 1029|       if (pGC->funcs->ChangeGC)
# 1030|           (*pGC->funcs->ChangeGC) (pGC,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
xwayland-24.1.9/dix/glyphcurs.c:94:24: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/dix/glyphcurs.c:90:13: acquire_memory: allocated here
xwayland-24.1.9/dix/glyphcurs.c:91:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/dix/glyphcurs.c:94:24: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:94:24: throw: if the called function throws an exception...
xwayland-24.1.9/dix/glyphcurs.c:94:24: danger: ‘pbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   92|           return BadAlloc;
#   93|   
#   94|->     ppix = (PixmapPtr) (*pScreen->CreatePixmap) (pScreen, cm->width,
#   95|                                                    cm->height, 1,
#   96|                                                    CREATE_PIXMAP_USAGE_SCRATCH);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def357]
xwayland-24.1.9/dix/glyphcurs.c:97:11: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/dix/glyphcurs.c:90:13: acquire_memory: allocated here
xwayland-24.1.9/dix/glyphcurs.c:91:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/dix/glyphcurs.c:94:24: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:97:11: throw: if ‘GetScratchGC’ throws an exception...
xwayland-24.1.9/dix/glyphcurs.c:97:11: danger: ‘pbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   95|                                                    cm->height, 1,
#   96|                                                    CREATE_PIXMAP_USAGE_SCRATCH);
#   97|->     pGC = GetScratchGC(1, pScreen);
#   98|       if (!ppix || !pGC) {
#   99|           if (ppix)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
xwayland-24.1.9/dix/glyphcurs.c:100:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/dix/glyphcurs.c:90:13: acquire_memory: allocated here
xwayland-24.1.9/dix/glyphcurs.c:91:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/dix/glyphcurs.c:94:24: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:98:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/glyphcurs.c:99:12: branch_true: ...to here
xwayland-24.1.9/dix/glyphcurs.c:99:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/glyphcurs.c:100:13: branch_true: ...to here
xwayland-24.1.9/dix/glyphcurs.c:100:13: throw: if the called function throws an exception...
xwayland-24.1.9/dix/glyphcurs.c:100:13: danger: ‘pbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   98|       if (!ppix || !pGC) {
#   99|           if (ppix)
#  100|->             (*pScreen->DestroyPixmap) (ppix);
#  101|           if (pGC)
#  102|               FreeScratchGC(pGC);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def359]
xwayland-24.1.9/dix/glyphcurs.c:102:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/dix/glyphcurs.c:90:13: acquire_memory: allocated here
xwayland-24.1.9/dix/glyphcurs.c:91:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/dix/glyphcurs.c:94:24: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:98:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/glyphcurs.c:99:12: branch_true: ...to here
xwayland-24.1.9/dix/glyphcurs.c:101:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/glyphcurs.c:102:13: branch_true: ...to here
xwayland-24.1.9/dix/glyphcurs.c:102:13: throw: if ‘FreeScratchGC’ throws an exception...
xwayland-24.1.9/dix/glyphcurs.c:102:13: danger: ‘pbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  100|               (*pScreen->DestroyPixmap) (ppix);
#  101|           if (pGC)
#  102|->             FreeScratchGC(pGC);
#  103|           free(pbits);
#  104|           return BadAlloc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
xwayland-24.1.9/dix/glyphcurs.c:116:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/dix/glyphcurs.c:90:13: acquire_memory: allocated here
xwayland-24.1.9/dix/glyphcurs.c:91:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/dix/glyphcurs.c:94:24: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:98:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/glyphcurs.c:107:5: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:116:5: throw: if ‘ChangeGC’ throws an exception...
xwayland-24.1.9/dix/glyphcurs.c:116:5: danger: ‘pbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  114|       gcval[1].val = 0;
#  115|       gcval[2].ptr = (void *) pfont;
#  116|->     ChangeGC(NullClient, pGC, GCFunction | GCForeground | GCFont, gcval);
#  117|       ValidateGC((DrawablePtr) ppix, pGC);
#  118|       (*pGC->ops->PolyFillRect) ((DrawablePtr) ppix, pGC, 1, &rect);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
xwayland-24.1.9/dix/glyphcurs.c:117:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/dix/glyphcurs.c:90:13: acquire_memory: allocated here
xwayland-24.1.9/dix/glyphcurs.c:91:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/dix/glyphcurs.c:94:24: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:98:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/glyphcurs.c:107:5: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:117:5: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/dix/glyphcurs.c:117:5: danger: ‘pbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  115|       gcval[2].ptr = (void *) pfont;
#  116|       ChangeGC(NullClient, pGC, GCFunction | GCForeground | GCFont, gcval);
#  117|->     ValidateGC((DrawablePtr) ppix, pGC);
#  118|       (*pGC->ops->PolyFillRect) ((DrawablePtr) ppix, pGC, 1, &rect);
#  119|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
xwayland-24.1.9/dix/glyphcurs.c:118:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/dix/glyphcurs.c:90:13: acquire_memory: allocated here
xwayland-24.1.9/dix/glyphcurs.c:91:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/dix/glyphcurs.c:94:24: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:98:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/glyphcurs.c:107:5: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:118:5: throw: if the called function throws an exception...
xwayland-24.1.9/dix/glyphcurs.c:118:5: danger: ‘pbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  116|       ChangeGC(NullClient, pGC, GCFunction | GCForeground | GCFont, gcval);
#  117|       ValidateGC((DrawablePtr) ppix, pGC);
#  118|->     (*pGC->ops->PolyFillRect) ((DrawablePtr) ppix, pGC, 1, &rect);
#  119|   
#  120|       /* draw the glyph */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
xwayland-24.1.9/dix/glyphcurs.c:122:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/dix/glyphcurs.c:90:13: acquire_memory: allocated here
xwayland-24.1.9/dix/glyphcurs.c:91:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/dix/glyphcurs.c:94:24: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:98:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/glyphcurs.c:107:5: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:122:5: throw: if ‘ChangeGC’ throws an exception...
xwayland-24.1.9/dix/glyphcurs.c:122:5: danger: ‘pbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  120|       /* draw the glyph */
#  121|       gcval[0].val = 1;
#  122|->     ChangeGC(NullClient, pGC, GCForeground, gcval);
#  123|       ValidateGC((DrawablePtr) ppix, pGC);
#  124|       (*pGC->ops->PolyText16) ((DrawablePtr) ppix, pGC, cm->xhot, cm->yhot,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
xwayland-24.1.9/dix/glyphcurs.c:123:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/dix/glyphcurs.c:90:13: acquire_memory: allocated here
xwayland-24.1.9/dix/glyphcurs.c:91:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/dix/glyphcurs.c:94:24: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:98:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/glyphcurs.c:107:5: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:123:5: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/dix/glyphcurs.c:123:5: danger: ‘pbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  121|       gcval[0].val = 1;
#  122|       ChangeGC(NullClient, pGC, GCForeground, gcval);
#  123|->     ValidateGC((DrawablePtr) ppix, pGC);
#  124|       (*pGC->ops->PolyText16) ((DrawablePtr) ppix, pGC, cm->xhot, cm->yhot,
#  125|                                1, (unsigned short *) char2b);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
xwayland-24.1.9/dix/glyphcurs.c:124:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/dix/glyphcurs.c:90:13: acquire_memory: allocated here
xwayland-24.1.9/dix/glyphcurs.c:91:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/dix/glyphcurs.c:94:24: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:98:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/glyphcurs.c:107:5: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:124:5: throw: if the called function throws an exception...
xwayland-24.1.9/dix/glyphcurs.c:124:5: danger: ‘pbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  122|       ChangeGC(NullClient, pGC, GCForeground, gcval);
#  123|       ValidateGC((DrawablePtr) ppix, pGC);
#  124|->     (*pGC->ops->PolyText16) ((DrawablePtr) ppix, pGC, cm->xhot, cm->yhot,
#  125|                                1, (unsigned short *) char2b);
#  126|       (*pScreen->GetImage) ((DrawablePtr) ppix, 0, 0, cm->width, cm->height,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
xwayland-24.1.9/dix/glyphcurs.c:126:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/dix/glyphcurs.c:90:13: acquire_memory: allocated here
xwayland-24.1.9/dix/glyphcurs.c:91:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/dix/glyphcurs.c:94:24: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:98:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/glyphcurs.c:107:5: branch_false: ...to here
xwayland-24.1.9/dix/glyphcurs.c:126:5: throw: if the called function throws an exception...
xwayland-24.1.9/dix/glyphcurs.c:126:5: danger: ‘pbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  124|       (*pGC->ops->PolyText16) ((DrawablePtr) ppix, pGC, cm->xhot, cm->yhot,
#  125|                                1, (unsigned short *) char2b);
#  126|->     (*pScreen->GetImage) ((DrawablePtr) ppix, 0, 0, cm->width, cm->height,
#  127|                             XYPixmap, 1, pbits);
#  128|       *ppbits = (unsigned char *) pbits;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
xwayland-24.1.9/dix/grabs.c:452:18: warning[-Wanalyzer-malloc-leak]: leak of ‘adds’
xwayland-24.1.9/dix/grabs.c:579:1: enter_function: entry to ‘DeletePassiveGrabFromList’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:601:12: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:621:17: call_function: calling ‘GrabMatchesSecond’ from ‘DeletePassiveGrabFromList’
#  450|           else if (pFirstGrab->device == inputInfo.all_master_devices) {
#  451|               if (pSecondGrab->device != inputInfo.all_master_devices &&
#  452|->                 !IsMaster(pSecondGrab->device))
#  453|                   return FALSE;
#  454|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
xwayland-24.1.9/dix/grabs.c:452:18: warning[-Wanalyzer-malloc-leak]: leak of ‘deletes’
xwayland-24.1.9/dix/grabs.c:579:1: enter_function: entry to ‘DeletePassiveGrabFromList’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:600:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:621:17: call_function: calling ‘GrabMatchesSecond’ from ‘DeletePassiveGrabFromList’
#  450|           else if (pFirstGrab->device == inputInfo.all_master_devices) {
#  451|               if (pSecondGrab->device != inputInfo.all_master_devices &&
#  452|->                 !IsMaster(pSecondGrab->device))
#  453|                   return FALSE;
#  454|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
xwayland-24.1.9/dix/grabs.c:452:18: warning[-Wanalyzer-malloc-leak]: leak of ‘details’
xwayland-24.1.9/dix/grabs.c:579:1: enter_function: entry to ‘DeletePassiveGrabFromList’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:603:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:604:30: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:604:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:612:21: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:621:17: call_function: calling ‘GrabMatchesSecond’ from ‘DeletePassiveGrabFromList’
#  450|           else if (pFirstGrab->device == inputInfo.all_master_devices) {
#  451|               if (pSecondGrab->device != inputInfo.all_master_devices &&
#  452|->                 !IsMaster(pSecondGrab->device))
#  453|                   return FALSE;
#  454|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
xwayland-24.1.9/dix/grabs.c:452:18: warning[-Wanalyzer-malloc-leak]: leak of ‘updates’
xwayland-24.1.9/dix/grabs.c:579:1: enter_function: entry to ‘DeletePassiveGrabFromList’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:602:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:604:30: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:604:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:612:21: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:621:17: call_function: calling ‘GrabMatchesSecond’ from ‘DeletePassiveGrabFromList’
#  450|           else if (pFirstGrab->device == inputInfo.all_master_devices) {
#  451|               if (pSecondGrab->device != inputInfo.all_master_devices &&
#  452|->                 !IsMaster(pSecondGrab->device))
#  453|                   return FALSE;
#  454|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
xwayland-24.1.9/dix/grabs.c:457:18: warning[-Wanalyzer-malloc-leak]: leak of ‘adds’
xwayland-24.1.9/dix/grabs.c:579:1: enter_function: entry to ‘DeletePassiveGrabFromList’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:601:12: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:621:17: call_function: calling ‘GrabMatchesSecond’ from ‘DeletePassiveGrabFromList’
#  455|           else if (pSecondGrab->device == inputInfo.all_master_devices) {
#  456|               if (pFirstGrab->device != inputInfo.all_master_devices &&
#  457|->                 !IsMaster(pFirstGrab->device))
#  458|                   return FALSE;
#  459|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
xwayland-24.1.9/dix/grabs.c:457:18: warning[-Wanalyzer-malloc-leak]: leak of ‘deletes’
xwayland-24.1.9/dix/grabs.c:579:1: enter_function: entry to ‘DeletePassiveGrabFromList’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:600:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:621:17: call_function: calling ‘GrabMatchesSecond’ from ‘DeletePassiveGrabFromList’
#  455|           else if (pSecondGrab->device == inputInfo.all_master_devices) {
#  456|               if (pFirstGrab->device != inputInfo.all_master_devices &&
#  457|->                 !IsMaster(pFirstGrab->device))
#  458|                   return FALSE;
#  459|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
xwayland-24.1.9/dix/grabs.c:457:18: warning[-Wanalyzer-malloc-leak]: leak of ‘details’
xwayland-24.1.9/dix/grabs.c:579:1: enter_function: entry to ‘DeletePassiveGrabFromList’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:603:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:604:30: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:604:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:612:21: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:621:17: call_function: calling ‘GrabMatchesSecond’ from ‘DeletePassiveGrabFromList’
#  455|           else if (pSecondGrab->device == inputInfo.all_master_devices) {
#  456|               if (pFirstGrab->device != inputInfo.all_master_devices &&
#  457|->                 !IsMaster(pFirstGrab->device))
#  458|                   return FALSE;
#  459|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
xwayland-24.1.9/dix/grabs.c:457:18: warning[-Wanalyzer-malloc-leak]: leak of ‘updates’
xwayland-24.1.9/dix/grabs.c:579:1: enter_function: entry to ‘DeletePassiveGrabFromList’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:602:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:604:30: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:604:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:612:21: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:621:17: call_function: calling ‘GrabMatchesSecond’ from ‘DeletePassiveGrabFromList’
#  455|           else if (pSecondGrab->device == inputInfo.all_master_devices) {
#  456|               if (pFirstGrab->device != inputInfo.all_master_devices &&
#  457|->                 !IsMaster(pFirstGrab->device))
#  458|                   return FALSE;
#  459|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
xwayland-24.1.9/dix/grabs.c:620:14: warning[-Wanalyzer-malloc-leak]: leak of ‘adds’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:601:12: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:620:14: throw: if ‘ResourceClientBits’ throws an exception...
xwayland-24.1.9/dix/grabs.c:620:14: danger: ‘adds’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  618|       for (grab = wPassiveGrabs(pMinuendGrab->window);
#  619|            grab && ok; grab = grab->next) {
#  620|->         if ((CLIENT_BITS(grab->resource) != CLIENT_BITS(pMinuendGrab->resource))
#  621|               || !GrabMatchesSecond(grab, pMinuendGrab, (grab->grabtype == CORE)))
#  622|               continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
xwayland-24.1.9/dix/grabs.c:620:14: warning[-Wanalyzer-malloc-leak]: leak of ‘deletes’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:600:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:620:14: throw: if ‘ResourceClientBits’ throws an exception...
xwayland-24.1.9/dix/grabs.c:620:14: danger: ‘deletes’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  618|       for (grab = wPassiveGrabs(pMinuendGrab->window);
#  619|            grab && ok; grab = grab->next) {
#  620|->         if ((CLIENT_BITS(grab->resource) != CLIENT_BITS(pMinuendGrab->resource))
#  621|               || !GrabMatchesSecond(grab, pMinuendGrab, (grab->grabtype == CORE)))
#  622|               continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
xwayland-24.1.9/dix/grabs.c:620:14: warning[-Wanalyzer-malloc-leak]: leak of ‘details’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:603:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:604:30: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:604:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:612:21: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:620:14: throw: if ‘ResourceClientBits’ throws an exception...
xwayland-24.1.9/dix/grabs.c:620:14: danger: ‘details’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  618|       for (grab = wPassiveGrabs(pMinuendGrab->window);
#  619|            grab && ok; grab = grab->next) {
#  620|->         if ((CLIENT_BITS(grab->resource) != CLIENT_BITS(pMinuendGrab->resource))
#  621|               || !GrabMatchesSecond(grab, pMinuendGrab, (grab->grabtype == CORE)))
#  622|               continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
xwayland-24.1.9/dix/grabs.c:620:14: warning[-Wanalyzer-malloc-leak]: leak of ‘updates’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:602:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:604:30: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:604:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:612:21: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:620:14: throw: if ‘ResourceClientBits’ throws an exception...
xwayland-24.1.9/dix/grabs.c:620:14: danger: ‘updates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  618|       for (grab = wPassiveGrabs(pMinuendGrab->window);
#  619|            grab && ok; grab = grab->next) {
#  620|->         if ((CLIENT_BITS(grab->resource) != CLIENT_BITS(pMinuendGrab->resource))
#  621|               || !GrabMatchesSecond(grab, pMinuendGrab, (grab->grabtype == CORE)))
#  622|               continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
xwayland-24.1.9/dix/grabs.c:620:45: warning[-Wanalyzer-malloc-leak]: leak of ‘adds’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:601:12: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:620:45: throw: if ‘ResourceClientBits’ throws an exception...
xwayland-24.1.9/dix/grabs.c:620:45: danger: ‘adds’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
#  618|       for (grab = wPassiveGrabs(pMinuendGrab->window);
#  619|            grab && ok; grab = grab->next) {
#  620|->         if ((CLIENT_BITS(grab->resource) != CLIENT_BITS(pMinuendGrab->resource))
#  621|               || !GrabMatchesSecond(grab, pMinuendGrab, (grab->grabtype == CORE)))
#  622|               continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
xwayland-24.1.9/dix/grabs.c:620:45: warning[-Wanalyzer-malloc-leak]: leak of ‘deletes’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:600:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:620:45: throw: if ‘ResourceClientBits’ throws an exception...
xwayland-24.1.9/dix/grabs.c:620:45: danger: ‘deletes’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
#  618|       for (grab = wPassiveGrabs(pMinuendGrab->window);
#  619|            grab && ok; grab = grab->next) {
#  620|->         if ((CLIENT_BITS(grab->resource) != CLIENT_BITS(pMinuendGrab->resource))
#  621|               || !GrabMatchesSecond(grab, pMinuendGrab, (grab->grabtype == CORE)))
#  622|               continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
xwayland-24.1.9/dix/grabs.c:620:45: warning[-Wanalyzer-malloc-leak]: leak of ‘details’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:603:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:604:30: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:604:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:612:21: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:620:45: throw: if ‘ResourceClientBits’ throws an exception...
xwayland-24.1.9/dix/grabs.c:620:45: danger: ‘details’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
#  618|       for (grab = wPassiveGrabs(pMinuendGrab->window);
#  619|            grab && ok; grab = grab->next) {
#  620|->         if ((CLIENT_BITS(grab->resource) != CLIENT_BITS(pMinuendGrab->resource))
#  621|               || !GrabMatchesSecond(grab, pMinuendGrab, (grab->grabtype == CORE)))
#  622|               continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
xwayland-24.1.9/dix/grabs.c:620:45: warning[-Wanalyzer-malloc-leak]: leak of ‘updates’
xwayland-24.1.9/dix/grabs.c:598:8: branch_false: following ‘false’ branch (when ‘i != 0’)...
xwayland-24.1.9/dix/grabs.c:600:15: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:602:15: acquire_memory: allocated here
xwayland-24.1.9/dix/grabs.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:604:30: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:604:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/grabs.c:612:21: branch_false: ...to here
xwayland-24.1.9/dix/grabs.c:618:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:618:10: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:619:10: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/grabs.c:620:14: branch_true: ...to here
xwayland-24.1.9/dix/grabs.c:620:45: throw: if ‘ResourceClientBits’ throws an exception...
xwayland-24.1.9/dix/grabs.c:620:45: danger: ‘updates’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#  618|       for (grab = wPassiveGrabs(pMinuendGrab->window);
#  619|            grab && ok; grab = grab->next) {
#  620|->         if ((CLIENT_BITS(grab->resource) != CLIENT_BITS(pMinuendGrab->resource))
#  621|               || !GrabMatchesSecond(grab, pMinuendGrab, (grab->grabtype == CORE)))
#  622|               continue;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
xwayland-24.1.9/dix/pixmap.c:109:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pPixmap’
xwayland-24.1.9/dix/pixmap.c:100:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/pixmap.c:102:9: branch_true: ...to here
xwayland-24.1.9/dix/pixmap.c:102:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/pixmap.c:105:25: branch_false: ...to here
xwayland-24.1.9/dix/pixmap.c:105:15: acquire_memory: allocated here
xwayland-24.1.9/dix/pixmap.c:106:8: branch_false: following ‘false’ branch (when ‘pPixmap’ is non-NULL)...
xwayland-24.1.9/dix/pixmap.c:109:5: branch_false: ...to here
xwayland-24.1.9/dix/pixmap.c:109:5: throw: if ‘_dixInitScreenPrivates’ throws an exception...
xwayland-24.1.9/dix/pixmap.c:109:5: danger: ‘pPixmap’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  107|           return NullPixmap;
#  108|   
#  109|->     dixInitScreenPrivates(pScreen, pPixmap, pPixmap + 1, PRIVATE_PIXMAP);
#  110|       return pPixmap;
#  111|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def384]
xwayland-24.1.9/dix/pixmap.c:192:28: warning[-Wanalyzer-malloc-leak]: leak of ‘dirty_update’
xwayland-24.1.9/dix/pixmap.c:181:20: acquire_memory: allocated here
xwayland-24.1.9/dix/pixmap.c:182:8: branch_false: following ‘false’ branch (when ‘dirty_update’ is non-NULL)...
xwayland-24.1.9/dix/pixmap.c:185:5: branch_false: ...to here
xwayland-24.1.9/dix/pixmap.c:192:28: throw: if ‘DamageCreate’ throws an exception...
xwayland-24.1.9/dix/pixmap.c:192:28: danger: ‘dirty_update’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  190|       dirty_update->dst_y = dst_y;
#  191|       dirty_update->rotation = rotation;
#  192|->     dirty_update->damage = DamageCreate(NULL, PixmapDirtyDamageDestroy,
#  193|                                           DamageReportNone, TRUE, screen,
#  194|                                           dirty_update);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
xwayland-24.1.9/dix/privates.c:360:27: warning[-Wanalyzer-malloc-leak]: leak of ‘key’
xwayland-24.1.9/dix/privates.c:403:1: enter_function: entry to ‘dixRegisterScreenPrivateKey’
xwayland-24.1.9/dix/privates.c:408:10: call_function: calling ‘dixRegisterPrivateKey’ from ‘dixRegisterScreenPrivateKey’
xwayland-24.1.9/dix/privates.c:408:10: return_function: returning to ‘dixRegisterScreenPrivateKey’ from ‘dixRegisterPrivateKey’
xwayland-24.1.9/dix/privates.c:408:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/privates.c:410:25: branch_false: ...to here
xwayland-24.1.9/dix/privates.c:410:11: call_function: calling ‘dixGetPrivate’ from ‘dixRegisterScreenPrivateKey’
xwayland-24.1.9/dix/privates.c:410:11: return_function: returning to ‘dixRegisterScreenPrivateKey’ from ‘dixGetPrivate’
xwayland-24.1.9/dix/privates.c:411:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/privates.c:416:11: branch_false: ...to here
xwayland-24.1.9/dix/privates.c:416:11: acquire_memory: allocated here
xwayland-24.1.9/dix/privates.c:417:8: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
xwayland-24.1.9/dix/privates.c:419:10: branch_false: ...to here
xwayland-24.1.9/dix/privates.c:419:10: call_function: calling ‘dixRegisterPrivateKey’ from ‘dixRegisterScreenPrivateKey’
#  358|                   if (!allocated_early[t])
#  359|                       assert(!global_keys[t].created);
#  360|->                 else if (!allocated_early[t] (dixReallocPrivates, bytes))
#  361|                       return FALSE;
#  362|               }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
xwayland-24.1.9/dix/privates.c:383:19: warning[-Wanalyzer-malloc-leak]: leak of ‘key’
xwayland-24.1.9/dix/privates.c:403:1: enter_function: entry to ‘dixRegisterScreenPrivateKey’
xwayland-24.1.9/dix/privates.c:408:10: call_function: calling ‘dixRegisterPrivateKey’ from ‘dixRegisterScreenPrivateKey’
xwayland-24.1.9/dix/privates.c:408:10: return_function: returning to ‘dixRegisterScreenPrivateKey’ from ‘dixRegisterPrivateKey’
xwayland-24.1.9/dix/privates.c:408:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/privates.c:410:25: branch_false: ...to here
xwayland-24.1.9/dix/privates.c:410:11: call_function: calling ‘dixGetPrivate’ from ‘dixRegisterScreenPrivateKey’
xwayland-24.1.9/dix/privates.c:410:11: return_function: returning to ‘dixRegisterScreenPrivateKey’ from ‘dixGetPrivate’
xwayland-24.1.9/dix/privates.c:411:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/privates.c:416:11: branch_false: ...to here
xwayland-24.1.9/dix/privates.c:416:11: acquire_memory: allocated here
xwayland-24.1.9/dix/privates.c:417:8: branch_false: following ‘false’ branch (when ‘key’ is non-NULL)...
xwayland-24.1.9/dix/privates.c:419:10: branch_false: ...to here
xwayland-24.1.9/dix/privates.c:419:10: call_function: calling ‘dixRegisterPrivateKey’ from ‘dixRegisterScreenPrivateKey’
#  381|           if (!allocated_early[type])
#  382|               assert(!global_keys[type].created);
#  383|->         else if (!allocated_early[type] (dixReallocPrivates, bytes))
#  384|               return FALSE;
#  385|           offset = global_keys[type].offset;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
xwayland-24.1.9/dix/privates.c:450:1: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
xwayland-24.1.9/dix/privates.c:503:1: enter_function: entry to ‘dixAllocatePrivates’
xwayland-24.1.9/dix/privates.c:508:5: branch_true: following ‘true’ branch (when ‘type != 0’)...
xwayland-24.1.9/dix/privates.c:509:5: branch_true: ...to here
xwayland-24.1.9/dix/privates.c:509:5: branch_true: following ‘true’ branch (when ‘type <= 16’)...
xwayland-24.1.9/dix/privates.c:510:5: branch_true: ...to here
xwayland-24.1.9/dix/privates.c:510:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/privates.c:512:5: branch_true: ...to here
xwayland-24.1.9/dix/privates.c:513:8: branch_false: following ‘false’ branch (when ‘size != 0’)...
xwayland-24.1.9/dix/privates.c:517:19: branch_false: ...to here
xwayland-24.1.9/dix/privates.c:517:19: acquire_memory: allocated here
xwayland-24.1.9/dix/privates.c:517:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
xwayland-24.1.9/dix/privates.c:521:5: branch_false: ...to here
xwayland-24.1.9/dix/privates.c:521:5: call_function: calling ‘_dixInitPrivates’ from ‘dixAllocatePrivates’
xwayland-24.1.9/dix/privates.c:521:5: return_function: returning to ‘dixAllocatePrivates’ from ‘_dixInitPrivates’
xwayland-24.1.9/dix/privates.c:450:1: danger: ‘p’ leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
#  448|       if (addr)
#  449|           memset(addr, '\0', global_keys[type].offset);
#  450|-> }
#  451|   
#  452|   /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
xwayland-24.1.9/dix/property.c:103:14: warning[-Wanalyzer-malloc-leak]: leak of ‘props’
xwayland-24.1.9/dix/property.c:133:1: enter_function: entry to ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:143:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:146:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:150:13: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:152:8: branch_false: ...to here
xwayland-24.1.9/dix/property.c:157:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:158:29: branch_true: ...to here
xwayland-24.1.9/dix/property.c:158:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:163:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:163:25: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:169:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:169:14: call_function: calling ‘dixLookupProperty’ from ‘ProcRotateProperties’
#  101|   
#  102|       if (pProp)
#  103|->         rc = XaceHookPropertyAccess(client, pWin, &pProp, access_mode);
#  104|       *result = pProp;
#  105|       return rc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
xwayland-24.1.9/dix/property.c:103:14: warning[-Wanalyzer-malloc-leak]: leak of ‘saved’
xwayland-24.1.9/dix/property.c:133:1: enter_function: entry to ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:143:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:146:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:151:13: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:152:8: branch_false: ...to here
xwayland-24.1.9/dix/property.c:157:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:158:29: branch_true: ...to here
xwayland-24.1.9/dix/property.c:158:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:163:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:163:25: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:169:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:169:14: call_function: calling ‘dixLookupProperty’ from ‘ProcRotateProperties’
#  101|   
#  102|       if (pProp)
#  103|->         rc = XaceHookPropertyAccess(client, pWin, &pProp, access_mode);
#  104|       *result = pProp;
#  105|       return rc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
xwayland-24.1.9/dix/property.c:119:5: warning[-Wanalyzer-malloc-leak]: leak of ‘props’
xwayland-24.1.9/dix/property.c:133:1: enter_function: entry to ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:143:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:146:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:150:13: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:152:8: branch_false: ...to here
xwayland-24.1.9/dix/property.c:158:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:163:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:163:25: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:169:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:169:14: call_function: calling ‘dixLookupProperty’ from ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:169:14: return_function: returning to ‘ProcRotateProperties’ from ‘dixLookupProperty’
xwayland-24.1.9/dix/property.c:171:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:174:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:182:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:182:8: branch_true: ...to here
xwayland-24.1.9/dix/property.c:183:16: branch_false: following ‘false’ branch (when ‘delta >= 0’)...
xwayland-24.1.9/dix/property.c:183:16: branch_false: ...to here
xwayland-24.1.9/dix/property.c:185:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:186:17: branch_true: ...to here
xwayland-24.1.9/dix/property.c:187:13: call_function: calling ‘deliverPropertyNotifyEvent’ from ‘ProcRotateProperties’
#  117|           .state = state
#  118|       };
#  119|->     UpdateCurrentTimeIf();
#  120|       event = (xEvent) {
#  121|           .u.property.window = pWin->drawable.id,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
xwayland-24.1.9/dix/property.c:119:5: warning[-Wanalyzer-malloc-leak]: leak of ‘saved’
xwayland-24.1.9/dix/property.c:133:1: enter_function: entry to ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:143:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:146:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:151:13: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:152:8: branch_false: ...to here
xwayland-24.1.9/dix/property.c:158:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:163:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:163:25: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:169:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:169:14: call_function: calling ‘dixLookupProperty’ from ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:169:14: return_function: returning to ‘ProcRotateProperties’ from ‘dixLookupProperty’
xwayland-24.1.9/dix/property.c:171:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:174:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:182:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:182:8: branch_true: ...to here
xwayland-24.1.9/dix/property.c:183:16: branch_false: following ‘false’ branch (when ‘delta >= 0’)...
xwayland-24.1.9/dix/property.c:183:16: branch_false: ...to here
xwayland-24.1.9/dix/property.c:185:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:186:17: branch_true: ...to here
xwayland-24.1.9/dix/property.c:187:13: call_function: calling ‘deliverPropertyNotifyEvent’ from ‘ProcRotateProperties’
#  117|           .state = state
#  118|       };
#  119|->     UpdateCurrentTimeIf();
#  120|       event = (xEvent) {
#  121|           .u.property.window = pWin->drawable.id,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
xwayland-24.1.9/dix/property.c:129:5: warning[-Wanalyzer-malloc-leak]: leak of ‘props’
xwayland-24.1.9/dix/property.c:133:1: enter_function: entry to ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:143:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:146:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:150:13: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:152:8: branch_false: ...to here
xwayland-24.1.9/dix/property.c:158:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:163:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:163:25: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:169:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:169:14: call_function: calling ‘dixLookupProperty’ from ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:169:14: return_function: returning to ‘ProcRotateProperties’ from ‘dixLookupProperty’
xwayland-24.1.9/dix/property.c:171:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:174:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:182:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:182:8: branch_true: ...to here
xwayland-24.1.9/dix/property.c:183:16: branch_false: following ‘false’ branch (when ‘delta >= 0’)...
xwayland-24.1.9/dix/property.c:183:16: branch_false: ...to here
xwayland-24.1.9/dix/property.c:185:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:186:17: branch_true: ...to here
xwayland-24.1.9/dix/property.c:187:13: call_function: calling ‘deliverPropertyNotifyEvent’ from ‘ProcRotateProperties’
#  127|   
#  128|       CallCallbacks(&PropertyStateCallback, &rec);
#  129|->     DeliverEvents(pWin, &event, 1, (WindowPtr) NULL);
#  130|   }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
xwayland-24.1.9/dix/property.c:129:5: warning[-Wanalyzer-malloc-leak]: leak of ‘saved’
xwayland-24.1.9/dix/property.c:133:1: enter_function: entry to ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:143:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:146:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:151:13: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:152:8: branch_false: ...to here
xwayland-24.1.9/dix/property.c:158:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:163:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:163:25: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:169:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:169:14: call_function: calling ‘dixLookupProperty’ from ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:169:14: return_function: returning to ‘ProcRotateProperties’ from ‘dixLookupProperty’
xwayland-24.1.9/dix/property.c:171:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:174:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:182:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:182:8: branch_true: ...to here
xwayland-24.1.9/dix/property.c:183:16: branch_false: following ‘false’ branch (when ‘delta >= 0’)...
xwayland-24.1.9/dix/property.c:183:16: branch_false: ...to here
xwayland-24.1.9/dix/property.c:185:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:186:17: branch_true: ...to here
xwayland-24.1.9/dix/property.c:187:13: call_function: calling ‘deliverPropertyNotifyEvent’ from ‘ProcRotateProperties’
#  127|   
#  128|       CallCallbacks(&PropertyStateCallback, &rec);
#  129|->     DeliverEvents(pWin, &event, 1, (WindowPtr) NULL);
#  130|   }
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
xwayland-24.1.9/dix/property.c:158:14: warning[-Wanalyzer-malloc-leak]: leak of ‘props’
xwayland-24.1.9/dix/property.c:143:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:146:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:150:13: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:152:8: branch_false: ...to here
xwayland-24.1.9/dix/property.c:157:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:158:29: branch_true: ...to here
xwayland-24.1.9/dix/property.c:158:14: throw: if ‘ValidAtom’ throws an exception...
xwayland-24.1.9/dix/property.c:158:14: danger: ‘props’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  156|   
#  157|       for (i = 0; i < stuff->nAtoms; i++) {
#  158|->         if (!ValidAtom(atoms[i])) {
#  159|               rc = BadAtom;
#  160|               client->errorValue = atoms[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
xwayland-24.1.9/dix/property.c:158:14: warning[-Wanalyzer-malloc-leak]: leak of ‘saved’
xwayland-24.1.9/dix/property.c:143:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:146:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:151:13: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:152:8: branch_false: ...to here
xwayland-24.1.9/dix/property.c:157:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:158:29: branch_true: ...to here
xwayland-24.1.9/dix/property.c:158:14: throw: if ‘ValidAtom’ throws an exception...
xwayland-24.1.9/dix/property.c:158:14: danger: ‘saved’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  156|   
#  157|       for (i = 0; i < stuff->nAtoms; i++) {
#  158|->         if (!ValidAtom(atoms[i])) {
#  159|               rc = BadAtom;
#  160|               client->errorValue = atoms[i];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def396]
xwayland-24.1.9/dix/property.c:299:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*pWin.optional’
xwayland-24.1.9/dix/property.c:203:1: enter_function: entry to ‘ProcChangeProperty’
xwayland-24.1.9/dix/property.c:213:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:214:5: branch_false: ...to here
xwayland-24.1.9/dix/property.c:231:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:234:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:236:20: branch_false: ...to here
xwayland-24.1.9/dix/property.c:236:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:240:20: branch_false: ...to here
xwayland-24.1.9/dix/property.c:240:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:246:66: branch_false: ...to here
xwayland-24.1.9/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): [#def397]
xwayland-24.1.9/dix/property.c:601:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pAtoms’
xwayland-24.1.9/dix/property.c:584:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:585:33: branch_false: ...to here
xwayland-24.1.9/dix/property.c:586:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:589:18: branch_false: ...to here
xwayland-24.1.9/dix/property.c:592:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.9/dix/property.c:593:18: branch_true: ...to here
xwayland-24.1.9/dix/property.c:593:18: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:594:12: branch_false: following ‘false’ branch (when ‘pAtoms’ is non-NULL)...
xwayland-24.1.9/dix/property.c:599:22: branch_false: ...to here
xwayland-24.1.9/dix/property.c:599:22: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:602:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:599:40: branch_true: following ‘true’ branch (when ‘pProp’ is non-NULL)...
xwayland-24.1.9/dix/property.c:600:13: branch_true: ...to here
xwayland-24.1.9/dix/property.c:601:18: throw: if ‘XaceHookPropertyAccess’ throws an exception...
xwayland-24.1.9/dix/property.c:601:18: danger: ‘pAtoms’ leaks here; was allocated at [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
#  599|           for (pProp = wUserProps(pWin); pProp; pProp = pProp->next) {
#  600|               realProp = pProp;
#  601|->             rc = XaceHookPropertyAccess(client, pWin, &realProp, DixGetAttrAccess);
#  602|               if (rc == Success && realProp == pProp) {
#  603|                   *temppAtoms++ = pProp->propertyName;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
xwayland-24.1.9/dix/property.c:601:18: warning[-Wanalyzer-malloc-leak]: leak of ‘temppAtoms’
xwayland-24.1.9/dix/property.c:584:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:585:33: branch_false: ...to here
xwayland-24.1.9/dix/property.c:586:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:589:18: branch_false: ...to here
xwayland-24.1.9/dix/property.c:592:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.9/dix/property.c:593:18: branch_true: ...to here
xwayland-24.1.9/dix/property.c:593:18: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:594:12: branch_false: following ‘false’ branch (when ‘pAtoms’ is non-NULL)...
xwayland-24.1.9/dix/property.c:599:22: branch_false: ...to here
xwayland-24.1.9/dix/property.c:599:22: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:601:18: throw: if ‘XaceHookPropertyAccess’ throws an exception...
xwayland-24.1.9/dix/property.c:601:18: danger: ‘temppAtoms’ leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
#  599|           for (pProp = wUserProps(pWin); pProp; pProp = pProp->next) {
#  600|               realProp = pProp;
#  601|->             rc = XaceHookPropertyAccess(client, pWin, &realProp, DixGetAttrAccess);
#  602|               if (rc == Success && realProp == pProp) {
#  603|                   *temppAtoms++ = pProp->propertyName;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
xwayland-24.1.9/dix/property.c:615:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pAtoms’
xwayland-24.1.9/dix/property.c:584:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:585:33: branch_false: ...to here
xwayland-24.1.9/dix/property.c:586:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:589:18: branch_false: ...to here
xwayland-24.1.9/dix/property.c:592:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.9/dix/property.c:593:18: branch_true: ...to here
xwayland-24.1.9/dix/property.c:593:18: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:594:12: branch_false: following ‘false’ branch (when ‘pAtoms’ is non-NULL)...
xwayland-24.1.9/dix/property.c:599:22: branch_false: ...to here
xwayland-24.1.9/dix/property.c:599:22: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:615:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:615:5: branch_true: ...to here
xwayland-24.1.9/dix/property.c:615:5: throw: if the called function throws an exception...
xwayland-24.1.9/dix/property.c:615:5: danger: ‘pAtoms’ leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
#  613|           .nProperties = numProps
#  614|       };
#  615|->     WriteReplyToClient(client, sizeof(xGenericReply), &xlpr);
#  616|       if (numProps) {
#  617|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
xwayland-24.1.9/dix/property.c:618:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pAtoms’
xwayland-24.1.9/dix/property.c:584:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:585:33: branch_false: ...to here
xwayland-24.1.9/dix/property.c:586:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:589:18: branch_false: ...to here
xwayland-24.1.9/dix/property.c:592:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.9/dix/property.c:593:18: branch_true: ...to here
xwayland-24.1.9/dix/property.c:593:18: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:594:12: branch_false: following ‘false’ branch (when ‘pAtoms’ is non-NULL)...
xwayland-24.1.9/dix/property.c:599:22: branch_false: ...to here
xwayland-24.1.9/dix/property.c:599:22: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:616:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.9/dix/property.c:617:9: branch_true: ...to here
xwayland-24.1.9/dix/property.c:618:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:618:9: branch_true: ...to here
xwayland-24.1.9/dix/property.c:618:9: throw: if ‘Swap32Write’ throws an exception...
xwayland-24.1.9/dix/property.c:618:9: danger: ‘pAtoms’ leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
#  616|       if (numProps) {
#  617|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
#  618|->         WriteSwappedDataToClient(client, numProps * sizeof(Atom), pAtoms);
#  619|       }
#  620|       free(pAtoms);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
xwayland-24.1.9/dix/ptrveloc.c:227:32: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  225|   {
#  226|       int profile = vel->statistics.profile_number;
#  227|->     Atom prop_profile_number = XIGetKnownProperty(ACCEL_PROP_PROFILE_NUMBER);
#  228|   
#  229|       XIChangeDeviceProperty(dev, prop_profile_number, XA_INTEGER, 32,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
xwayland-24.1.9/dix/ptrveloc.c:227:32: warning[-Wanalyzer-malloc-leak]: leak of ‘schemeData’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:139:18: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  225|   {
#  226|       int profile = vel->statistics.profile_number;
#  227|->     Atom prop_profile_number = XIGetKnownProperty(ACCEL_PROP_PROFILE_NUMBER);
#  228|   
#  229|       XIChangeDeviceProperty(dev, prop_profile_number, XA_INTEGER, 32,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
xwayland-24.1.9/dix/ptrveloc.c:227:32: warning[-Wanalyzer-malloc-leak]: leak of ‘vel’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:138:11: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  225|   {
#  226|       int profile = vel->statistics.profile_number;
#  227|->     Atom prop_profile_number = XIGetKnownProperty(ACCEL_PROP_PROFILE_NUMBER);
#  228|   
#  229|       XIChangeDeviceProperty(dev, prop_profile_number, XA_INTEGER, 32,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
xwayland-24.1.9/dix/ptrveloc.c:229:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  227|       Atom prop_profile_number = XIGetKnownProperty(ACCEL_PROP_PROFILE_NUMBER);
#  228|   
#  229|->     XIChangeDeviceProperty(dev, prop_profile_number, XA_INTEGER, 32,
#  230|                              PropModeReplace, 1, &profile, FALSE);
#  231|       XISetDevicePropertyDeletable(dev, prop_profile_number, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
xwayland-24.1.9/dix/ptrveloc.c:229:5: warning[-Wanalyzer-malloc-leak]: leak of ‘schemeData’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:139:18: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  227|       Atom prop_profile_number = XIGetKnownProperty(ACCEL_PROP_PROFILE_NUMBER);
#  228|   
#  229|->     XIChangeDeviceProperty(dev, prop_profile_number, XA_INTEGER, 32,
#  230|                              PropModeReplace, 1, &profile, FALSE);
#  231|       XISetDevicePropertyDeletable(dev, prop_profile_number, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
xwayland-24.1.9/dix/ptrveloc.c:229:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vel’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:138:11: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  227|       Atom prop_profile_number = XIGetKnownProperty(ACCEL_PROP_PROFILE_NUMBER);
#  228|   
#  229|->     XIChangeDeviceProperty(dev, prop_profile_number, XA_INTEGER, 32,
#  230|                              PropModeReplace, 1, &profile, FALSE);
#  231|       XISetDevicePropertyDeletable(dev, prop_profile_number, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
xwayland-24.1.9/dix/ptrveloc.c:231:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  229|       XIChangeDeviceProperty(dev, prop_profile_number, XA_INTEGER, 32,
#  230|                              PropModeReplace, 1, &profile, FALSE);
#  231|->     XISetDevicePropertyDeletable(dev, prop_profile_number, FALSE);
#  232|       return XIRegisterPropertyHandler(dev, AccelSetProfileProperty, NULL, NULL);
#  233|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
xwayland-24.1.9/dix/ptrveloc.c:231:5: warning[-Wanalyzer-malloc-leak]: leak of ‘schemeData’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:139:18: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  229|       XIChangeDeviceProperty(dev, prop_profile_number, XA_INTEGER, 32,
#  230|                              PropModeReplace, 1, &profile, FALSE);
#  231|->     XISetDevicePropertyDeletable(dev, prop_profile_number, FALSE);
#  232|       return XIRegisterPropertyHandler(dev, AccelSetProfileProperty, NULL, NULL);
#  233|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
xwayland-24.1.9/dix/ptrveloc.c:231:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vel’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:138:11: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  229|       XIChangeDeviceProperty(dev, prop_profile_number, XA_INTEGER, 32,
#  230|                              PropModeReplace, 1, &profile, FALSE);
#  231|->     XISetDevicePropertyDeletable(dev, prop_profile_number, FALSE);
#  232|       return XIRegisterPropertyHandler(dev, AccelSetProfileProperty, NULL, NULL);
#  233|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
xwayland-24.1.9/dix/ptrveloc.c:232:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  230|                              PropModeReplace, 1, &profile, FALSE);
#  231|       XISetDevicePropertyDeletable(dev, prop_profile_number, FALSE);
#  232|->     return XIRegisterPropertyHandler(dev, AccelSetProfileProperty, NULL, NULL);
#  233|   }
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
xwayland-24.1.9/dix/ptrveloc.c:232:12: warning[-Wanalyzer-malloc-leak]: leak of ‘schemeData’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:139:18: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  230|                              PropModeReplace, 1, &profile, FALSE);
#  231|       XISetDevicePropertyDeletable(dev, prop_profile_number, FALSE);
#  232|->     return XIRegisterPropertyHandler(dev, AccelSetProfileProperty, NULL, NULL);
#  233|   }
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
xwayland-24.1.9/dix/ptrveloc.c:232:12: warning[-Wanalyzer-malloc-leak]: leak of ‘vel’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:138:11: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  230|                              PropModeReplace, 1, &profile, FALSE);
#  231|       XISetDevicePropertyDeletable(dev, prop_profile_number, FALSE);
#  232|->     return XIRegisterPropertyHandler(dev, AccelSetProfileProperty, NULL, NULL);
#  233|   }
#  234|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
xwayland-24.1.9/dix/ptrveloc.c:271:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  269|       float fval = 1.0 / vel->const_acceleration;
#  270|       Atom prop_const_decel =
#  271|->         XIGetKnownProperty(ACCEL_PROP_CONSTANT_DECELERATION);
#  272|       XIChangeDeviceProperty(dev, prop_const_decel,
#  273|                              XIGetKnownProperty(XATOM_FLOAT), 32, PropModeReplace,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
xwayland-24.1.9/dix/ptrveloc.c:271:9: warning[-Wanalyzer-malloc-leak]: leak of ‘schemeData’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:139:18: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  269|       float fval = 1.0 / vel->const_acceleration;
#  270|       Atom prop_const_decel =
#  271|->         XIGetKnownProperty(ACCEL_PROP_CONSTANT_DECELERATION);
#  272|       XIChangeDeviceProperty(dev, prop_const_decel,
#  273|                              XIGetKnownProperty(XATOM_FLOAT), 32, PropModeReplace,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def415]
xwayland-24.1.9/dix/ptrveloc.c:271:9: warning[-Wanalyzer-malloc-leak]: leak of ‘vel’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:138:11: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  269|       float fval = 1.0 / vel->const_acceleration;
#  270|       Atom prop_const_decel =
#  271|->         XIGetKnownProperty(ACCEL_PROP_CONSTANT_DECELERATION);
#  272|       XIChangeDeviceProperty(dev, prop_const_decel,
#  273|                              XIGetKnownProperty(XATOM_FLOAT), 32, PropModeReplace,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def416]
xwayland-24.1.9/dix/ptrveloc.c:272:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  270|       Atom prop_const_decel =
#  271|           XIGetKnownProperty(ACCEL_PROP_CONSTANT_DECELERATION);
#  272|->     XIChangeDeviceProperty(dev, prop_const_decel,
#  273|                              XIGetKnownProperty(XATOM_FLOAT), 32, PropModeReplace,
#  274|                              1, &fval, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
xwayland-24.1.9/dix/ptrveloc.c:272:5: warning[-Wanalyzer-malloc-leak]: leak of ‘schemeData’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:139:18: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  270|       Atom prop_const_decel =
#  271|           XIGetKnownProperty(ACCEL_PROP_CONSTANT_DECELERATION);
#  272|->     XIChangeDeviceProperty(dev, prop_const_decel,
#  273|                              XIGetKnownProperty(XATOM_FLOAT), 32, PropModeReplace,
#  274|                              1, &fval, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def418]
xwayland-24.1.9/dix/ptrveloc.c:272:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vel’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:138:11: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  270|       Atom prop_const_decel =
#  271|           XIGetKnownProperty(ACCEL_PROP_CONSTANT_DECELERATION);
#  272|->     XIChangeDeviceProperty(dev, prop_const_decel,
#  273|                              XIGetKnownProperty(XATOM_FLOAT), 32, PropModeReplace,
#  274|                              1, &fval, FALSE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
xwayland-24.1.9/dix/ptrveloc.c:275:5: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  273|                              XIGetKnownProperty(XATOM_FLOAT), 32, PropModeReplace,
#  274|                              1, &fval, FALSE);
#  275|->     XISetDevicePropertyDeletable(dev, prop_const_decel, FALSE);
#  276|       return XIRegisterPropertyHandler(dev, AccelSetDecelProperty, NULL, NULL);
#  277|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def420]
xwayland-24.1.9/dix/ptrveloc.c:275:5: warning[-Wanalyzer-malloc-leak]: leak of ‘schemeData’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:139:18: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  273|                              XIGetKnownProperty(XATOM_FLOAT), 32, PropModeReplace,
#  274|                              1, &fval, FALSE);
#  275|->     XISetDevicePropertyDeletable(dev, prop_const_decel, FALSE);
#  276|       return XIRegisterPropertyHandler(dev, AccelSetDecelProperty, NULL, NULL);
#  277|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
xwayland-24.1.9/dix/ptrveloc.c:275:5: warning[-Wanalyzer-malloc-leak]: leak of ‘vel’
xwayland-24.1.9/dix/ptrveloc.c:130:1: enter_function: entry to ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:138:11: acquire_memory: allocated here
xwayland-24.1.9/dix/ptrveloc.c:140:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/ptrveloc.c:145:5: branch_false: ...to here
xwayland-24.1.9/dix/ptrveloc.c:145:5: call_function: calling ‘InitVelocityData’ from ‘InitPredictableAccelerationScheme’
xwayland-24.1.9/dix/ptrveloc.c:145:5: return_function: returning to ‘InitPredictableAccelerationScheme’ from ‘InitVelocityData’
xwayland-24.1.9/dix/ptrveloc.c:148:10: call_function: calling ‘InitializePredictableAccelerationProperties’ from ‘InitPredictableAccelerationScheme’
#  273|                              XIGetKnownProperty(XATOM_FLOAT), 32, PropModeReplace,
#  274|                              1, &fval, FALSE);
#  275|->     XISetDevicePropertyDeletable(dev, prop_const_decel, FALSE);
#  276|       return XIRegisterPropertyHandler(dev, AccelSetDecelProperty, NULL, NULL);
#  277|   }

Error: GCC_ANALYZER_WARNING (CWE-590): [#def422]
xwayland-24.1.9/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.9/dix/region.c:1316:1: enter_function: entry to ‘RegionFromRects’
xwayland-24.1.9/dix/region.c:1326:12: call_function: calling ‘RegionCreate’ from ‘RegionFromRects’
xwayland-24.1.9/dix/region.c:1326:12: return_function: returning to ‘RegionFromRects’ from ‘RegionCreate’
xwayland-24.1.9/dix/region.c:1327:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/region.c:1329:8: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1329:8: branch_false: following ‘false’ branch (when ‘nrects != 0’)...
xwayland-24.1.9/dix/region.c:1331:8: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1331:8: branch_false: following ‘false’ branch (when ‘nrects != 1’)...
xwayland-24.1.9/dix/region.c:1347:15: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1349:8: branch_true: following ‘true’ branch (when ‘pData’ is NULL)...
xwayland-24.1.9/dix/region.c:1350:9: branch_true: ...to here
xwayland-24.1.9/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-416): [#def423]
xwayland-24.1.9/dix/region.c:338:5: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘pData’
xwayland-24.1.9/dix/region.c:1316:1: enter_function: entry to ‘RegionFromRects’
xwayland-24.1.9/dix/region.c:1326:12: call_function: calling ‘RegionCreate’ from ‘RegionFromRects’
xwayland-24.1.9/dix/region.c:1326:12: return_function: returning to ‘RegionFromRects’ from ‘RegionCreate’
xwayland-24.1.9/dix/region.c:1327:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/region.c:1329:8: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1329:8: branch_false: following ‘false’ branch (when ‘nrects != 0’)...
xwayland-24.1.9/dix/region.c:1331:8: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1331:8: branch_false: following ‘false’ branch (when ‘nrects != 1’)...
xwayland-24.1.9/dix/region.c:1347:15: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1347:15: call_function: inlined call to ‘RegionSizeof’ from ‘RegionFromRects’
xwayland-24.1.9/dix/region.c:1348:29: acquire_memory: allocated here
xwayland-24.1.9/dix/region.c:1349:8: branch_false: following ‘false’ branch (when ‘pData’ is non-NULL)...
xwayland-24.1.9/dix/region.c:1353:5: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1361:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/region.c:1362:13: branch_true: ...to here
xwayland-24.1.9/dix/region.c:1369:8: branch_true: following ‘true’ branch (when ‘pBox != pBox’)...
xwayland-24.1.9/dix/region.c:1370:9: branch_true: ...to here
xwayland-24.1.9/dix/region.c:1373:12: branch_true: following ‘true’ branch (when ‘ctype != 18’)...
xwayland-24.1.9/dix/region.c:1376:32: branch_true: ...to here
xwayland-24.1.9/dix/region.c:1377:13: call_function: calling ‘RegionValidate’ from ‘RegionFromRects’
#  336|   RegionBreak(RegionPtr pReg)
#  337|   {
#  338|->     xfreeData(pReg);
#  339|       pReg->extents = RegionEmptyBox;
#  340|       pReg->data = &RegionBrokenData;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def424]
xwayland-24.1.9/dix/region.c:1226:21: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*box’
xwayland-24.1.9/dix/region.c:1316:1: enter_function: entry to ‘RegionFromRects’
xwayland-24.1.9/dix/region.c:1326:12: call_function: calling ‘RegionCreate’ from ‘RegionFromRects’
xwayland-24.1.9/dix/region.c:1326:12: return_function: returning to ‘RegionFromRects’ from ‘RegionCreate’
xwayland-24.1.9/dix/region.c:1327:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/region.c:1329:8: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1329:8: branch_false: following ‘false’ branch (when ‘nrects != 0’)...
xwayland-24.1.9/dix/region.c:1331:8: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1331:8: branch_false: following ‘false’ branch (when ‘nrects != 1’)...
xwayland-24.1.9/dix/region.c:1347:15: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1347:15: call_function: inlined call to ‘RegionSizeof’ from ‘RegionFromRects’
xwayland-24.1.9/dix/region.c:1349:8: branch_false: following ‘false’ branch (when ‘pData’ is non-NULL)...
xwayland-24.1.9/dix/region.c:1353:5: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1361:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/region.c:1362:13: branch_true: ...to here
xwayland-24.1.9/dix/region.c:1369:8: branch_true: following ‘true’ branch (when ‘pBox != pBox’)...
xwayland-24.1.9/dix/region.c:1370:9: branch_true: ...to here
xwayland-24.1.9/dix/region.c:1373:12: branch_true: following ‘true’ branch (when ‘ctype != 18’)...
xwayland-24.1.9/dix/region.c:1376:32: branch_true: ...to here
xwayland-24.1.9/dix/region.c:1377:13: call_function: calling ‘RegionValidate’ from ‘RegionFromRects’
# 1224|                   else {
# 1225|                       RECTALLOC_BAIL(reg, 1, bail);
# 1226|->                     *RegionTop(reg) = *box;
# 1227|                       reg->data->numRects++;
# 1228|                   }

Error: GCC_ANALYZER_WARNING (CWE-590): [#def425]
xwayland-24.1.9/dix/region.c:1310:9: warning[-Wanalyzer-free-of-non-heap]: ‘free’ of ‘&RegionBrokenData’ which points to memory not on the heap
xwayland-24.1.9/dix/region.c:1316:1: enter_function: entry to ‘RegionFromRects’
xwayland-24.1.9/dix/region.c:1326:12: call_function: calling ‘RegionCreate’ from ‘RegionFromRects’
xwayland-24.1.9/dix/region.c:1326:12: return_function: returning to ‘RegionFromRects’ from ‘RegionCreate’
xwayland-24.1.9/dix/region.c:1327:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/region.c:1329:8: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1329:8: branch_false: following ‘false’ branch (when ‘nrects != 0’)...
xwayland-24.1.9/dix/region.c:1331:8: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1331:8: branch_false: following ‘false’ branch (when ‘nrects != 1’)...
xwayland-24.1.9/dix/region.c:1347:15: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1347:15: call_function: inlined call to ‘RegionSizeof’ from ‘RegionFromRects’
xwayland-24.1.9/dix/region.c:1349:8: branch_false: following ‘false’ branch (when ‘pData’ is non-NULL)...
xwayland-24.1.9/dix/region.c:1353:5: branch_false: ...to here
xwayland-24.1.9/dix/region.c:1361:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/region.c:1362:13: branch_true: ...to here
xwayland-24.1.9/dix/region.c:1369:8: branch_true: following ‘true’ branch (when ‘pBox != pBox’)...
xwayland-24.1.9/dix/region.c:1370:9: branch_true: ...to here
xwayland-24.1.9/dix/region.c:1373:12: branch_true: following ‘true’ branch (when ‘ctype != 18’)...
xwayland-24.1.9/dix/region.c:1376:32: branch_true: ...to here
xwayland-24.1.9/dix/region.c:1377:13: call_function: calling ‘RegionValidate’ from ‘RegionFromRects’
# 1308|    bail:
# 1309|       for (i = 0; i < numRI; i++)
# 1310|->         xfreeData(&ri[i].reg);
# 1311|       free(ri);
# 1312|       return RegionBreak(badreg);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
xwayland-24.1.9/dix/registry.c:75:5: warning[-Wanalyzer-malloc-leak]: leak of ‘events’
xwayland-24.1.9/dix/registry.c:136:1: enter_function: entry to ‘RegisterExtensionNames’
xwayland-24.1.9/dix/registry.c:146:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/registry.c:148:15: branch_true: ...to here
xwayland-24.1.9/dix/registry.c:149:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:153:17: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:167:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:172:12: branch_false: following ‘false’ branch (when ‘lineobj’ is non-NULL)...
xwayland-24.1.9/dix/registry.c:176:15: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:177:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:181:9: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:182:12: branch_false: following ‘false’ branch (when the strings are equal)...
xwayland-24.1.9/dix/registry.c:186:18: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:193:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/registry.c:194:17: branch_true: ...to here
xwayland-24.1.9/dix/registry.c:194:17: call_function: calling ‘RegisterRequestName’ from ‘RegisterExtensionNames’
#   73|       }
#   74|   
#   75|->     *ptr = realloc(*ptr, n);
#   76|       if (!*ptr) {
#   77|           dixResetRegistry();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
xwayland-24.1.9/dix/registry.c:144:5: warning[-Wanalyzer-malloc-leak]: leak of ‘lineobj’
xwayland-24.1.9/dix/registry.c:136:1: enter_function: entry to ‘RegisterExtensionNames’
xwayland-24.1.9/dix/registry.c:146:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/registry.c:148:15: branch_true: ...to here
xwayland-24.1.9/dix/registry.c:149:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:153:17: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:167:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:171:19: acquire_memory: allocated here
xwayland-24.1.9/dix/registry.c:172:12: branch_false: following ‘false’ branch (when ‘lineobj’ is non-NULL)...
xwayland-24.1.9/dix/registry.c:176:15: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:177:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:181:9: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:182:12: branch_false: following ‘false’ branch (when the strings are equal)...
xwayland-24.1.9/dix/registry.c:186:18: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:193:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/registry.c:194:17: branch_true: ...to here
xwayland-24.1.9/dix/registry.c:194:17: call_function: calling ‘RegisterRequestName’ from ‘RegisterExtensionNames’
#  142|           return;
#  143|   
#  144|->     rewind(fh);
#  145|   
#  146|       while (fgets(buf, sizeof(buf), fh)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
xwayland-24.1.9/dix/registry.c:207:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lineobj’
xwayland-24.1.9/dix/registry.c:136:1: enter_function: entry to ‘RegisterExtensionNames’
xwayland-24.1.9/dix/registry.c:146:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/registry.c:148:15: branch_true: ...to here
xwayland-24.1.9/dix/registry.c:149:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:153:17: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:167:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:171:19: acquire_memory: allocated here
xwayland-24.1.9/dix/registry.c:172:12: branch_false: following ‘false’ branch (when ‘lineobj’ is non-NULL)...
xwayland-24.1.9/dix/registry.c:176:15: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:177:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:181:9: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:182:12: branch_false: following ‘false’ branch (when the strings are equal)...
xwayland-24.1.9/dix/registry.c:186:18: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:193:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/registry.c:194:17: branch_true: ...to here
xwayland-24.1.9/dix/registry.c:194:17: call_function: calling ‘RegisterRequestName’ from ‘RegisterExtensionNames’
#  205|   
#  206|    invalid:
#  207|->         LogMessage(X_WARNING, "Invalid line in " FILENAME ", skipping\n");
#  208|    skip:
#  209|           free(lineobj);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
xwayland-24.1.9/dix/registry.c:357:9: warning[-Wanalyzer-malloc-leak]: leak of ‘lineobj’
xwayland-24.1.9/dix/registry.c:136:1: enter_function: entry to ‘RegisterExtensionNames’
xwayland-24.1.9/dix/registry.c:146:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/registry.c:148:15: branch_true: ...to here
xwayland-24.1.9/dix/registry.c:149:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:153:17: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:167:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:171:19: acquire_memory: allocated here
xwayland-24.1.9/dix/registry.c:172:12: branch_false: following ‘false’ branch (when ‘lineobj’ is non-NULL)...
xwayland-24.1.9/dix/registry.c:176:15: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:177:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/registry.c:181:9: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:182:12: branch_false: following ‘false’ branch (when the strings are equal)...
xwayland-24.1.9/dix/registry.c:186:18: branch_false: ...to here
xwayland-24.1.9/dix/registry.c:193:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/registry.c:194:17: branch_true: ...to here
xwayland-24.1.9/dix/registry.c:194:17: call_function: calling ‘RegisterRequestName’ from ‘RegisterExtensionNames’
#  355|       fh = fopen(FILENAME, "r");
#  356|       if (!fh)
#  357|->         LogMessage(X_WARNING,
#  358|                      "Failed to open protocol names file " FILENAME "\n");
#  359|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
xwayland-24.1.9/dix/swaprep.c:130:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pbufT’
xwayland-24.1.9/dix/swaprep.c:100:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/swaprep.c:100:5: branch_true: ...to here
xwayland-24.1.9/dix/swaprep.c:103:22: acquire_memory: allocated here
xwayland-24.1.9/dix/swaprep.c:103:12: branch_false: following ‘false’ branch (when ‘pbufT’ is non-NULL)...
xwayland-24.1.9/dix/swaprep.c:112:5: branch_false: ...to here
xwayland-24.1.9/dix/swaprep.c:117:12: branch_true: following ‘true’ branch (when ‘from < fromLast’)...
xwayland-24.1.9/dix/swaprep.c:121:23: branch_true: ...to here
xwayland-24.1.9/dix/swaprep.c:121:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/swaprep.c:121:23: branch_true: ...to here
xwayland-24.1.9/dix/swaprep.c:123:16: branch_false: following ‘false’ branch (when ‘to >= toLast’)...
xwayland-24.1.9/dix/swaprep.c:130:9: branch_false: ...to here
xwayland-24.1.9/dix/swaprep.c:130:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/dix/swaprep.c:130:9: danger: ‘pbufT’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  128|               to++;
#  129|           }
#  130|->         WriteToClient(pClient, nbytes, pbufT);
#  131|       }
#  132|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
xwayland-24.1.9/dix/swaprep.c:179:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pbufT’
xwayland-24.1.9/dix/swaprep.c:149:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/swaprep.c:149:5: branch_true: ...to here
xwayland-24.1.9/dix/swaprep.c:152:22: acquire_memory: allocated here
xwayland-24.1.9/dix/swaprep.c:152:12: branch_false: following ‘false’ branch (when ‘pbufT’ is non-NULL)...
xwayland-24.1.9/dix/swaprep.c:161:5: branch_false: ...to here
xwayland-24.1.9/dix/swaprep.c:166:12: branch_true: following ‘true’ branch (when ‘from < fromLast’)...
xwayland-24.1.9/dix/swaprep.c:170:23: branch_true: ...to here
xwayland-24.1.9/dix/swaprep.c:170:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/swaprep.c:170:23: branch_true: ...to here
xwayland-24.1.9/dix/swaprep.c:172:16: branch_false: following ‘false’ branch (when ‘to >= toLast’)...
xwayland-24.1.9/dix/swaprep.c:179:9: branch_false: ...to here
xwayland-24.1.9/dix/swaprep.c:179:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/dix/swaprep.c:179:9: danger: ‘pbufT’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  177|               to++;
#  178|           }
#  179|->         WriteToClient(pClient, nbytes, pbufT);
#  180|       }
#  181|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
xwayland-24.1.9/dix/swaprep.c:1149:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pInfoTBase’
xwayland-24.1.9/dix/swaprep.c:1139:1: enter_function: entry to ‘WriteSConnectionInfo’
xwayland-24.1.9/dix/swaprep.c:1143:18: acquire_memory: allocated here
xwayland-24.1.9/dix/swaprep.c:1144:8: branch_false: following ‘false’ branch (when ‘pInfoTBase’ is non-NULL)...
xwayland-24.1.9/dix/swaprep.c:1148:5: branch_false: ...to here
xwayland-24.1.9/dix/swaprep.c:1148:5: call_function: calling ‘SwapConnSetupInfo’ from ‘WriteSConnectionInfo’
xwayland-24.1.9/dix/swaprep.c:1148:5: return_function: returning to ‘WriteSConnectionInfo’ from ‘SwapConnSetupInfo’
xwayland-24.1.9/dix/swaprep.c:1149:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/dix/swaprep.c:1149:5: danger: ‘pInfoTBase’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
# 1147|       }
# 1148|       SwapConnSetupInfo(pInfo, pInfoTBase);
# 1149|->     WriteToClient(pClient, (int) size, pInfoTBase);
# 1150|       free(pInfoTBase);
# 1151|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
xwayland-24.1.9/dix/window.c:3262:18: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/dix/window.c:3253:15: acquire_memory: allocated here
xwayland-24.1.9/dix/window.c:3254:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/window.c:3254:8: branch_false: ...to here
xwayland-24.1.9/dix/window.c:3260:21: branch_true: following ‘true’ branch (when ‘j != 64’)...
xwayland-24.1.9/dix/window.c:3261:33: branch_true: ...to here
xwayland-24.1.9/dix/window.c:3262:18: throw: if ‘AllocARGBCursor’ throws an exception...
xwayland-24.1.9/dix/window.c:3262:18: danger: ‘mskbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 3260|           for (j = 0; j < BitmapBytePad(32) * 16; j++)
# 3261|               srcbits[j] = mskbits[j] = 0x0;
# 3262|->         result = AllocARGBCursor(srcbits, mskbits, NULL, &cm, 0, 0, 0, 0, 0, 0,
# 3263|                                    &cursor, serverClient, (XID) 0);
# 3264|           if (cursor) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
xwayland-24.1.9/dix/window.c:3262:18: warning[-Wanalyzer-malloc-leak]: leak of ‘srcbits’
xwayland-24.1.9/dix/window.c:3252:15: acquire_memory: allocated here
xwayland-24.1.9/dix/window.c:3254:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/window.c:3254:8: branch_false: ...to here
xwayland-24.1.9/dix/window.c:3260:21: branch_true: following ‘true’ branch (when ‘j != 64’)...
xwayland-24.1.9/dix/window.c:3261:33: branch_true: ...to here
xwayland-24.1.9/dix/window.c:3262:18: throw: if ‘AllocARGBCursor’ throws an exception...
xwayland-24.1.9/dix/window.c:3262:18: danger: ‘srcbits’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 3260|           for (j = 0; j < BitmapBytePad(32) * 16; j++)
# 3261|               srcbits[j] = mskbits[j] = 0x0;
# 3262|->         result = AllocARGBCursor(srcbits, mskbits, NULL, &cm, 0, 0, 0, 0, 0, 0,
# 3263|                                    &cursor, serverClient, (XID) 0);
# 3264|           if (cursor) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
xwayland-24.1.9/dix/window.c:3417:28: warning[-Wanalyzer-malloc-leak]: leak of ‘optional’
xwayland-24.1.9/dix/window.c:3398:16: acquire_memory: allocated here
xwayland-24.1.9/dix/window.c:3399:8: branch_false: following ‘false’ branch (when ‘optional’ is non-NULL)...
xwayland-24.1.9/dix/window.c:3401:54: branch_false: ...to here
xwayland-24.1.9/dix/window.c:3416:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/window.c:3417:28: branch_true: ...to here
xwayland-24.1.9/dix/window.c:3417:28: throw: if ‘RefCursor’ throws an exception...
xwayland-24.1.9/dix/window.c:3417:28: danger: ‘optional’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 3415|       optional->visual = parentOptional->visual;
# 3416|       if (!pWin->cursorIsNone) {
# 3417|->         optional->cursor = RefCursor(parentOptional->cursor);
# 3418|       }
# 3419|       else {

Error: GCC_ANALYZER_WARNING (CWE-126): [#def436]
xwayland-24.1.9/dri3/dri3_screen.c:143:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xwayland-24.1.9/dri3/dri3_screen.c:112:1: enter_function: entry to ‘dri3_fd_from_pixmap’
xwayland-24.1.9/dri3/dri3_screen.c:115:38: call_function: inlined call to ‘dri3_screen_priv’ from ‘dri3_fd_from_pixmap’
xwayland-24.1.9/dri3/dri3_screen.c:115:38: call_function: inlined call to ‘dri3_screen_priv’ from ‘dri3_fd_from_pixmap’
xwayland-24.1.9/dri3/dri3_screen.c:123:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.9/dri3/dri3_screen.c:129:9: branch_false: ...to here
xwayland-24.1.9/dri3/dri3_screen.c:129:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dri3/dri3_screen.c:132:9: branch_false: ...to here
xwayland-24.1.9/dri3/dri3_screen.c:132:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.9/dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.9/dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.9/dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.9/dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.9/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): [#def437]
xwayland-24.1.9/dri3/dri3_screen.c:186:8: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)num_formats, 16)’
xwayland-24.1.9/dri3/dri3_screen.c:153:1: enter_function: entry to ‘cache_formats_and_modifiers’
xwayland-24.1.9/dri3/dri3_screen.c:155:38: call_function: inlined call to ‘dri3_screen_priv’ from ‘cache_formats_and_modifiers’
xwayland-24.1.9/dri3/dri3_screen.c:155:38: call_function: inlined call to ‘dri3_screen_priv’ from ‘cache_formats_and_modifiers’
xwayland-24.1.9/dri3/dri3_screen.c:163:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dri3/dri3_screen.c:166:8: branch_false: ...to here
xwayland-24.1.9/dri3/dri3_screen.c:166:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.9/dri3/dri3_screen.c:169:9: branch_false: ...to here
xwayland-24.1.9/dri3/dri3_screen.c:169:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dri3/dri3_screen.c:176:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dri3/dri3_screen.c:179:9: branch_false: ...to here
xwayland-24.1.9/dri3/dri3_screen.c:179:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dri3/dri3_screen.c:185:19: branch_false: ...to here
xwayland-24.1.9/dri3/dri3_screen.c:185:19: acquire_memory: allocated here
xwayland-24.1.9/dri3/dri3_screen.c:186:8: danger: ‘calloc((long unsigned int)num_formats, 16)’ leaks here; was allocated at [(22)](sarif:/runs/0/results/1/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-401): [#def438]
xwayland-24.1.9/fb/fbcopy.c:201:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
xwayland-24.1.9/fb/fbcopy.c:142:1: enter_function: entry to ‘fbCopyNto1’
xwayland-24.1.9/fb/fbcopy.c:150:25: call_function: calling ‘dixLookupPrivate’ from ‘fbCopyNto1’
xwayland-24.1.9/fb/fbcopy.c:150:25: return_function: returning to ‘fbCopyNto1’ from ‘dixLookupPrivate’
xwayland-24.1.9/fb/fbcopy.c:150:25: call_function: calling ‘dixLookupPrivate’ from ‘fbCopyNto1’
xwayland-24.1.9/fb/fbcopy.c:150:25: return_function: returning to ‘fbCopyNto1’ from ‘dixLookupPrivate’
xwayland-24.1.9/fb/fbcopy.c:152:12: branch_true: following ‘true’ branch (when ‘nbox != 0’)...
xwayland-24.1.9/fb/fbcopy.c:153:13: branch_true: ...to here
xwayland-24.1.9/fb/fbcopy.c:197:19: acquire_memory: allocated here
xwayland-24.1.9/fb/fbcopy.c:198:16: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
xwayland-24.1.9/fb/fbcopy.c:201:13: branch_false: ...to here
xwayland-24.1.9/fb/fbcopy.c:201:13: throw: if ‘fbGetScreenPrivateKey’ throws an exception...
xwayland-24.1.9/fb/fbcopy.c:201:13: danger: ‘tmp’ leaks here; was allocated at [(24)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/23)
#  199|                   return;
#  200|   
#  201|->             fbGetDrawable(pSrcDrawable, src, srcStride, srcBpp, srcXoff,
#  202|                             srcYoff);
#  203|               fbGetDrawable(pDstDrawable, dst, dstStride, dstBpp, dstXoff,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
xwayland-24.1.9/fb/fbcopy.c:203:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
xwayland-24.1.9/fb/fbcopy.c:142:1: enter_function: entry to ‘fbCopyNto1’
xwayland-24.1.9/fb/fbcopy.c:150:25: call_function: calling ‘dixLookupPrivate’ from ‘fbCopyNto1’
xwayland-24.1.9/fb/fbcopy.c:150:25: return_function: returning to ‘fbCopyNto1’ from ‘dixLookupPrivate’
xwayland-24.1.9/fb/fbcopy.c:150:25: call_function: calling ‘dixLookupPrivate’ from ‘fbCopyNto1’
xwayland-24.1.9/fb/fbcopy.c:150:25: return_function: returning to ‘fbCopyNto1’ from ‘dixLookupPrivate’
xwayland-24.1.9/fb/fbcopy.c:152:12: branch_true: following ‘true’ branch (when ‘nbox != 0’)...
xwayland-24.1.9/fb/fbcopy.c:153:13: branch_true: ...to here
xwayland-24.1.9/fb/fbcopy.c:197:19: acquire_memory: allocated here
xwayland-24.1.9/fb/fbcopy.c:198:16: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
xwayland-24.1.9/fb/fbcopy.c:201:13: branch_false: ...to here
xwayland-24.1.9/fb/fbcopy.c:203:13: throw: if ‘fbGetScreenPrivateKey’ throws an exception...
xwayland-24.1.9/fb/fbcopy.c:203:13: danger: ‘tmp’ leaks here; was allocated at [(24)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/23)
#  201|               fbGetDrawable(pSrcDrawable, src, srcStride, srcBpp, srcXoff,
#  202|                             srcYoff);
#  203|->             fbGetDrawable(pDstDrawable, dst, dstStride, dstBpp, dstXoff,
#  204|                             dstYoff);
#  205|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
xwayland-24.1.9/fb/fbcopy.c:206:13: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
xwayland-24.1.9/fb/fbcopy.c:142:1: enter_function: entry to ‘fbCopyNto1’
xwayland-24.1.9/fb/fbcopy.c:150:25: call_function: calling ‘dixLookupPrivate’ from ‘fbCopyNto1’
xwayland-24.1.9/fb/fbcopy.c:150:25: return_function: returning to ‘fbCopyNto1’ from ‘dixLookupPrivate’
xwayland-24.1.9/fb/fbcopy.c:150:25: call_function: calling ‘dixLookupPrivate’ from ‘fbCopyNto1’
xwayland-24.1.9/fb/fbcopy.c:150:25: return_function: returning to ‘fbCopyNto1’ from ‘dixLookupPrivate’
xwayland-24.1.9/fb/fbcopy.c:152:12: branch_true: following ‘true’ branch (when ‘nbox != 0’)...
xwayland-24.1.9/fb/fbcopy.c:153:13: branch_true: ...to here
xwayland-24.1.9/fb/fbcopy.c:197:19: acquire_memory: allocated here
xwayland-24.1.9/fb/fbcopy.c:198:16: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
xwayland-24.1.9/fb/fbcopy.c:201:13: branch_false: ...to here
xwayland-24.1.9/fb/fbcopy.c:206:13: throw: if ‘fbBltPlane’ throws an exception...
xwayland-24.1.9/fb/fbcopy.c:206:13: danger: ‘tmp’ leaks here; was allocated at [(24)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/23)
#  204|                             dstYoff);
#  205|   
#  206|->             fbBltPlane(src + (pbox->y1 + dy + srcYoff) * srcStride,
#  207|                          srcStride,
#  208|                          (pbox->x1 + dx + srcXoff) * srcBpp,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
xwayland-24.1.9/fb/fboverlay.c:289:10: warning[-Wanalyzer-malloc-leak]: leak of ‘pScrPriv’
xwayland-24.1.9/fb/fboverlay.c:278:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/fb/fboverlay.c:282:9: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:282:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/fb/fboverlay.c:285:16: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:285:16: acquire_memory: allocated here
xwayland-24.1.9/fb/fboverlay.c:286:8: branch_false: following ‘false’ branch (when ‘pScrPriv’ is non-NULL)...
xwayland-24.1.9/fb/fboverlay.c:290:62: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:289:10: throw: if ‘fbInitVisuals’ throws an exception...
xwayland-24.1.9/fb/fboverlay.c:289:10: danger: ‘pScrPriv’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  287|           return FALSE;
#  288|   
#  289|->     if (!fbInitVisuals(&visuals, &depths, &nvisuals, &ndepths, &depth1,
#  290|                          &defaultVisual, ((unsigned long) 1 << (bpp1 - 1)) |
#  291|                          ((unsigned long) 1 << (bpp2 - 1)), 8)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
xwayland-24.1.9/fb/fboverlay.c:295:10: warning[-Wanalyzer-malloc-leak]: leak of ‘pScrPriv’
xwayland-24.1.9/fb/fboverlay.c:278:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/fb/fboverlay.c:282:9: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:282:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/fb/fboverlay.c:285:16: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:285:16: acquire_memory: allocated here
xwayland-24.1.9/fb/fboverlay.c:286:8: branch_false: following ‘false’ branch (when ‘pScrPriv’ is non-NULL)...
xwayland-24.1.9/fb/fboverlay.c:290:62: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:289:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/fb/fboverlay.c:295:10: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:295:10: throw: if ‘miScreenInit’ throws an exception...
xwayland-24.1.9/fb/fboverlay.c:295:10: danger: ‘pScrPriv’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  293|           return FALSE;
#  294|       }
#  295|->     if (!miScreenInit(pScreen, 0, xsize, ysize, dpix, dpiy, 0,
#  296|                         depth1, ndepths, depths,
#  297|                         defaultVisual, nvisuals, visuals)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
xwayland-24.1.9/fb/fboverlay.c:303:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pScrPriv’
xwayland-24.1.9/fb/fboverlay.c:278:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/fb/fboverlay.c:282:9: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:282:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/fb/fboverlay.c:285:16: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:285:16: acquire_memory: allocated here
xwayland-24.1.9/fb/fboverlay.c:286:8: branch_false: following ‘false’ branch (when ‘pScrPriv’ is non-NULL)...
xwayland-24.1.9/fb/fboverlay.c:290:62: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:289:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/fb/fboverlay.c:295:10: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:295:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/fb/fboverlay.c:303:5: branch_false: ...to here
xwayland-24.1.9/fb/fboverlay.c:303:5: throw: if ‘ShmRegisterFbFuncs’ throws an exception...
xwayland-24.1.9/fb/fboverlay.c:303:5: danger: ‘pScrPriv’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  301|       /* MI thinks there's no frame buffer */
#  302|   #ifdef MITSHM
#  303|->     ShmRegisterFbFuncs(pScreen);
#  304|   #endif
#  305|       pScreen->minInstalledCmaps = 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def444]
xwayland-24.1.9/glamor/glamor.c:98:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor.c:93:1: enter_function: entry to ‘glamor_set_pixmap_type’
xwayland-24.1.9/glamor/glamor.c:97:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_set_pixmap_type’
xwayland-24.1.9/glamor/glamor.c:98:5: branch_true: ...to here
xwayland-24.1.9/glamor/glamor.c:98:5: danger: dereference of NULL ‘<unknown>’
#   96|   
#   97|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#   98|->     pixmap_priv->type = type;
#   99|       glamor_init_pixmap_private_small(pixmap, pixmap_priv);
#  100|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def445]
xwayland-24.1.9/glamor/glamor.c:228:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor.c:202:1: enter_function: entry to ‘glamor_create_pixmap’
xwayland-24.1.9/glamor/glamor.c:207:42: call_function: inlined call to ‘glamor_get_screen_private’ from ‘glamor_create_pixmap’
xwayland-24.1.9/glamor/glamor.c:207:42: call_function: inlined call to ‘glamor_get_screen_private’ from ‘glamor_create_pixmap’
xwayland-24.1.9/glamor/glamor.c:211:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor.c:214:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor.c:214:8: branch_false: following ‘false’ branch (when ‘usage != 256’)...
xwayland-24.1.9/glamor/glamor.c:214:10: branch_false: ...to here
xwayland-24.1.9/glamor/glamor.c:214:10: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor.c:219:14: branch_false: ...to here
xwayland-24.1.9/glamor/glamor.c:214:10: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor.c:220:14: branch_false: ...to here
xwayland-24.1.9/glamor/glamor.c:226:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_create_pixmap’
xwayland-24.1.9/glamor/glamor.c:228:28: branch_true: ...to here
xwayland-24.1.9/glamor/glamor.c:228:5: danger: dereference of NULL ‘<unknown>’
#  226|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#  227|   
#  228|->     pixmap_priv->is_cbcr = (GLAMOR_CREATE_FORMAT_CBCR & usage) == GLAMOR_CREATE_FORMAT_CBCR;
#  229|   
#  230|       pitch = (((w * pixmap->drawable.bitsPerPixel + 7) / 8) + 3) & ~3;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
xwayland-24.1.9/glamor/glamor.c:627:10: warning[-Wanalyzer-malloc-leak]: leak of ‘glamor_priv’
xwayland-24.1.9/glamor/glamor.c:615:27: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor.c:617:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor.c:617:8: branch_false: following ‘false’ branch (when ‘flags <= 3’)...
xwayland-24.1.9/glamor/glamor.c:621:19: branch_false: ...to here
xwayland-24.1.9/glamor/glamor.c:621:19: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor.c:622:8: branch_false: following ‘false’ branch (when ‘glamor_priv’ is non-NULL)...
xwayland-24.1.9/glamor/glamor.c:625:5: branch_false: ...to here
xwayland-24.1.9/glamor/glamor.c:627:10: throw: if ‘dixRegisterPrivateKey’ throws an exception...
xwayland-24.1.9/glamor/glamor.c:627:10: danger: ‘glamor_priv’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  625|       glamor_priv->flags = flags;
#  626|   
#  627|->     if (!dixRegisterPrivateKey(&glamor_screen_private_key, PRIVATE_SCREEN, 0)) {
#  628|           LogMessage(X_WARNING,
#  629|                      "glamor%d: Failed to allocate screen private\n",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
xwayland-24.1.9/glamor/glamor.c:628:9: warning[-Wanalyzer-malloc-leak]: leak of ‘glamor_priv’
xwayland-24.1.9/glamor/glamor.c:617:8: branch_false: following ‘false’ branch (when ‘flags <= 3’)...
xwayland-24.1.9/glamor/glamor.c:621:19: branch_false: ...to here
xwayland-24.1.9/glamor/glamor.c:621:19: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor.c:622:8: branch_false: following ‘false’ branch (when ‘glamor_priv’ is non-NULL)...
xwayland-24.1.9/glamor/glamor.c:625:5: branch_false: ...to here
xwayland-24.1.9/glamor/glamor.c:627:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor.c:628:9: branch_true: ...to here
xwayland-24.1.9/glamor/glamor.c:628:9: throw: if ‘LogMessage’ throws an exception...
xwayland-24.1.9/glamor/glamor.c:628:9: danger: ‘glamor_priv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  626|   
#  627|       if (!dixRegisterPrivateKey(&glamor_screen_private_key, PRIVATE_SCREEN, 0)) {
#  628|->         LogMessage(X_WARNING,
#  629|                      "glamor%d: Failed to allocate screen private\n",
#  630|                      screen->myNum);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def448]
xwayland-24.1.9/glamor/glamor.c:926:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘ps’
xwayland-24.1.9/glamor/glamor.c:904:1: enter_function: entry to ‘glamor_close_screen’
xwayland-24.1.9/glamor/glamor.c:908:27: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor.c:910:19: call_function: inlined call to ‘glamor_get_screen_private’ from ‘glamor_close_screen’
xwayland-24.1.9/glamor/glamor.c:910:19: call_function: inlined call to ‘glamor_get_screen_private’ from ‘glamor_close_screen’
xwayland-24.1.9/glamor/glamor.c:913:5: call_function: calling ‘glamor_set_glvnd_vendor’ from ‘glamor_close_screen’
xwayland-24.1.9/glamor/glamor.c:913:5: return_function: returning to ‘glamor_close_screen’ from ‘glamor_set_glvnd_vendor’
xwayland-24.1.9/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): [#def449]
xwayland-24.1.9/glamor/glamor.c:1024:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor.c:1013:1: enter_function: entry to ‘_glamor_fds_from_pixmap’
xwayland-24.1.9/glamor/glamor.c:1018:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘_glamor_fds_from_pixmap’
xwayland-24.1.9/glamor/glamor.c:1020:9: branch_true: ...to here
xwayland-24.1.9/glamor/glamor.c:1020:9: call_function: inlined call to ‘glamor_get_screen_private’ from ‘_glamor_fds_from_pixmap’
xwayland-24.1.9/glamor/glamor.c:1020:9: call_function: inlined call to ‘glamor_get_screen_private’ from ‘_glamor_fds_from_pixmap’
xwayland-24.1.9/glamor/glamor.c:1022:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor.c:1024:13: branch_false: ...to here
xwayland-24.1.9/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): [#def450]
xwayland-24.1.9/glamor/glamor.c:1101:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor.c:1097:1: enter_function: entry to ‘glamor_name_from_pixmap’
xwayland-24.1.9/glamor/glamor.c:1099:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_name_from_pixmap’
xwayland-24.1.9/glamor/glamor.c:1101:13: branch_true: ...to here
xwayland-24.1.9/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): [#def451]
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:450:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘glyph_atlas’
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:374:1: enter_function: entry to ‘glamor_composite_glyphs’
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:404:12: branch_true: following ‘true’ branch (when ‘nlist != 0’)...
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:405:14: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:414:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:420:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:420:21: call_function: calling ‘glamor_pixmap_is_memory’ from ‘glamor_composite_glyphs’
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:420:21: return_function: returning to ‘glamor_composite_glyphs’ from ‘glamor_pixmap_is_memory’
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:420:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:435:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:435:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:440:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:450:25: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:450:25: danger: dereference of NULL ‘glyph_atlas’
#  448|                       /* Glyph not cached in current atlas?
#  449|                        */
#  450|->                     if (_X_UNLIKELY(glyph_priv->serial != glyph_atlas->serial)) {
#  451|                           if (!glamor_glyph_can_add(glyph_atlas, glyph_atlas_dim, glyph_draw)) {
#  452|                               if (glyphs_queued) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
xwayland-24.1.9/glamor/glamor_compositerects.c:88:15: warning[-Wanalyzer-malloc-leak]: leak of ‘boxes’
xwayland-24.1.9/glamor/glamor_compositerects.c:59:8: branch_true: following ‘true’ branch (when ‘num_rects > 64’)...
xwayland-24.1.9/glamor/glamor_compositerects.c:60:17: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_compositerects.c:60:17: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_compositerects.c:61:12: branch_false: following ‘false’ branch (when ‘boxes’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_compositerects.c:65:5: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_compositerects.c:65:21: branch_true: following ‘true’ branch (when ‘i < num_rects’)...
xwayland-24.1.9/glamor/glamor_compositerects.c:66:28: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_compositerects.c:67:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_compositerects.c:68:13: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_compositerects.c:82:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_compositerects.c:87:8: branch_true: following ‘true’ branch (when ‘j != 0’)...
xwayland-24.1.9/glamor/glamor_compositerects.c:88:15: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_compositerects.c:88:15: throw: if ‘pixman_region_init_rects’ throws an exception...
xwayland-24.1.9/glamor/glamor_compositerects.c:88:15: danger: ‘boxes’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   86|       ret = FALSE;
#   87|       if (j)
#   88|->         ret = pixman_region_init_rects(region, boxes, j);
#   89|   
#   90|       if (boxes != stack_boxes)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
xwayland-24.1.9/glamor/glamor_copy.c:359:42: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp_box’
xwayland-24.1.9/glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.9/glamor/glamor_copy.c:741:9: call_function: calling ‘glamor_copy_gl’ from ‘glamor_copy’
#  357|   {
#  358|       ScreenPtr screen = dst->pScreen;
#  359|->     glamor_screen_private *glamor_priv = glamor_get_screen_private(screen);
#  360|       PixmapPtr src_pixmap = glamor_get_drawable_pixmap(src);
#  361|       PixmapPtr dst_pixmap = glamor_get_drawable_pixmap(dst);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
xwayland-24.1.9/glamor/glamor_copy.c:360:28: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp_box’
xwayland-24.1.9/glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.9/glamor/glamor_copy.c:741:9: call_function: calling ‘glamor_copy_gl’ from ‘glamor_copy’
#  358|       ScreenPtr screen = dst->pScreen;
#  359|       glamor_screen_private *glamor_priv = glamor_get_screen_private(screen);
#  360|->     PixmapPtr src_pixmap = glamor_get_drawable_pixmap(src);
#  361|       PixmapPtr dst_pixmap = glamor_get_drawable_pixmap(dst);
#  362|       glamor_pixmap_private *src_priv = glamor_get_pixmap_private(src_pixmap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
xwayland-24.1.9/glamor/glamor_copy.c:361:28: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp_box’
xwayland-24.1.9/glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.9/glamor/glamor_copy.c:741:9: call_function: calling ‘glamor_copy_gl’ from ‘glamor_copy’
#  359|       glamor_screen_private *glamor_priv = glamor_get_screen_private(screen);
#  360|       PixmapPtr src_pixmap = glamor_get_drawable_pixmap(src);
#  361|->     PixmapPtr dst_pixmap = glamor_get_drawable_pixmap(dst);
#  362|       glamor_pixmap_private *src_priv = glamor_get_pixmap_private(src_pixmap);
#  363|       glamor_pixmap_private *dst_priv = glamor_get_pixmap_private(dst_pixmap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
xwayland-24.1.9/glamor/glamor_copy.c:381:10: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp_box’
xwayland-24.1.9/glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.9/glamor/glamor_copy.c:741:9: call_function: calling ‘glamor_copy_gl’ from ‘glamor_copy’
#  379|           goto bail_ctx;
#  380|   
#  381|->     if (!glamor_set_alu(dst, gc ? gc->alu : GXcopy))
#  382|           goto bail_ctx;
#  383|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
xwayland-24.1.9/glamor/glamor_copy.c:399:14: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp_box’
xwayland-24.1.9/glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.9/glamor/glamor_copy.c:741:9: call_function: calling ‘glamor_copy_gl’ from ‘glamor_copy’
#  397|   
#  398|       if (!prog->prog) {
#  399|->         if (!glamor_build_program(screen, prog,
#  400|                                     copy_facet, NULL, NULL, NULL))
#  401|               goto bail_ctx;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def458]
xwayland-24.1.9/glamor/glamor_copy.c:704:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.9/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): [#def459]
xwayland-24.1.9/glamor/glamor_copy.c:705:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.9/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): [#def460]
xwayland-24.1.9/glamor/glamor_copy.c:716:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.9/glamor/glamor_copy.c:741:9: call_function: calling ‘glamor_copy_gl’ from ‘glamor_copy’
#  714|           return glamor_copy_cpu_fbo(src, dst, gc, box, nbox, dx, dy,
#  715|                                      reverse, upsidedown, bitplane, closure);
#  716|->     } else if (GLAMOR_PIXMAP_PRIV_HAS_FBO(src_priv) &&
#  717|                  dst_priv->type != GLAMOR_DRM_ONLY &&
#  718|                  bitplane == 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def461]
xwayland-24.1.9/glamor/glamor_core.c:44:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_core.c:39:1: enter_function: entry to ‘glamor_get_drawable_location’
xwayland-24.1.9/glamor/glamor_core.c:42:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_get_drawable_location’
xwayland-24.1.9/glamor/glamor_core.c:44:9: branch_true: ...to here
xwayland-24.1.9/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-404): [#def462]
xwayland-24.1.9/glamor/glamor_core.c:92:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
xwayland-24.1.9/glamor/glamor_core.c:87:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_core.c:91:9: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_core.c:91:9: acquire_resource: ‘va_start’ called here
xwayland-24.1.9/glamor/glamor_core.c:92:9: throw: if ‘XNFvasprintf’ throws an exception...
xwayland-24.1.9/glamor/glamor_core.c:92:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   90|   
#   91|           va_start(va, format);
#   92|->         XNFvasprintf(&label, format, va);
#   93|           glObjectLabel(GL_PROGRAM, prog, -1, label);
#   94|           free(label);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def463]
xwayland-24.1.9/glamor/glamor_core.c:205:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_core.c:195:1: enter_function: entry to ‘glamor_validate_gc’
xwayland-24.1.9/glamor/glamor_core.c:201:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_core.c:202:13: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_core.c:202:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_core.c:204:17: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_core.c:204:17: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_validate_gc’
xwayland-24.1.9/glamor/glamor_core.c:205:19: branch_true: ...to here
xwayland-24.1.9/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): [#def464]
xwayland-24.1.9/glamor/glamor_dash.c:143:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_dash.c:133:1: enter_function: entry to ‘glamor_dash_setup’
xwayland-24.1.9/glamor/glamor_dash.c:138:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_dash_setup’
xwayland-24.1.9/glamor/glamor_dash.c:143:10: branch_true: ...to here
xwayland-24.1.9/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-401): [#def465]
xwayland-24.1.9/glamor/glamor_fbo.c:126:37: warning[-Wanalyzer-malloc-leak]: leak of ‘box_array’
xwayland-24.1.9/glamor/glamor_fbo.c:174:1: enter_function: entry to ‘glamor_create_fbo_array’
xwayland-24.1.9/glamor/glamor_fbo.c:193:17: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_fbo.c:194:8: branch_false: following ‘false’ branch (when ‘box_array’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_fbo.c:197:17: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:198:8: branch_false: following ‘false’ branch (when ‘fbo_array’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_fbo.c:198:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:202:17: branch_true: following ‘true’ branch (when ‘i < block_hcnt’)...
xwayland-24.1.9/glamor/glamor_fbo.c:206:9: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:219:45: call_function: calling ‘glamor_create_fbo’ from ‘glamor_create_fbo_array’
#  124|                      PixmapPtr pixmap, int w, int h)
#  125|   {
#  126|->     const struct glamor_format *f = glamor_format_for_pixmap(pixmap);
#  127|       unsigned int tex;
#  128|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
xwayland-24.1.9/glamor/glamor_fbo.c:126:37: warning[-Wanalyzer-malloc-leak]: leak of ‘fbo_array’
xwayland-24.1.9/glamor/glamor_fbo.c:174:1: enter_function: entry to ‘glamor_create_fbo_array’
xwayland-24.1.9/glamor/glamor_fbo.c:194:8: branch_false: following ‘false’ branch (when ‘box_array’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_fbo.c:197:17: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:197:17: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_fbo.c:198:8: branch_false: following ‘false’ branch (when ‘fbo_array’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_fbo.c:198:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:202:17: branch_true: following ‘true’ branch (when ‘i < block_hcnt’)...
xwayland-24.1.9/glamor/glamor_fbo.c:206:9: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:219:45: call_function: calling ‘glamor_create_fbo’ from ‘glamor_create_fbo_array’
#  124|                      PixmapPtr pixmap, int w, int h)
#  125|   {
#  126|->     const struct glamor_format *f = glamor_format_for_pixmap(pixmap);
#  127|       unsigned int tex;
#  128|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def467]
xwayland-24.1.9/glamor/glamor_fbo.c:287:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_fbo.c:281:1: enter_function: entry to ‘glamor_pixmap_attach_fbo’
xwayland-24.1.9/glamor/glamor_fbo.c:285:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_attach_fbo’
xwayland-24.1.9/glamor/glamor_fbo.c:287:9: branch_true: ...to here
xwayland-24.1.9/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): [#def468]
xwayland-24.1.9/glamor/glamor_fbo.c:366:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_fbo.c:359:1: enter_function: entry to ‘glamor_pixmap_exchange_fbos’
xwayland-24.1.9/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): [#def469]
xwayland-24.1.9/glamor/glamor_fbo.c:367:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_fbo.c:359:1: enter_function: entry to ‘glamor_pixmap_exchange_fbos’
xwayland-24.1.9/glamor/glamor_fbo.c:364:18: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_exchange_fbos’
xwayland-24.1.9/glamor/glamor_fbo.c:364:18: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_exchange_fbos’
xwayland-24.1.9/glamor/glamor_fbo.c:365:17: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_exchange_fbos’
xwayland-24.1.9/glamor/glamor_fbo.c:366:5: branch_true: ...to here
xwayland-24.1.9/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-401): [#def470]
xwayland-24.1.9/glamor/glamor_font.c:58:9: warning[-Wanalyzer-malloc-leak]: leak of ‘privates’
xwayland-24.1.9/glamor/glamor_font.c:55:20: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_font.c:56:12: branch_false: following ‘false’ branch (when ‘privates’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_font.c:58:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_font.c:58:9: throw: if ‘xfont2_font_set_private’ throws an exception...
xwayland-24.1.9/glamor/glamor_font.c:58:9: danger: ‘privates’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   56|           if (!privates)
#   57|               return NULL;
#   58|->         xfont2_font_set_private(font, glamor_font_private_index, privates);
#   59|       }
#   60|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
xwayland-24.1.9/glamor/glamor_font.c:106:5: warning[-Wanalyzer-malloc-leak]: leak of ‘bits’
xwayland-24.1.9/glamor/glamor_font.c:63:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_font.c:67:16: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_font.c:94:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_font.c:99:12: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_font.c:100:8: branch_false: following ‘false’ branch (when ‘bits’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_font.c:104:12: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_font.c:106:5: throw: if the called function throws an exception...
xwayland-24.1.9/glamor/glamor_font.c:106:5: danger: ‘bits’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  104|       c[0] = font->info.lastRow + 1;
#  105|       c[1] = font->info.lastCol + 1;
#  106|->     (*font->get_glyphs)(font, 1, c, TwoD16Bit, &count, &glyph);
#  107|   
#  108|       glamor_font->default_char = count ? glyph : NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
xwayland-24.1.9/glamor/glamor_font.c:112:19: warning[-Wanalyzer-malloc-leak]: leak of ‘bits’
xwayland-24.1.9/glamor/glamor_font.c:63:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_font.c:67:16: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_font.c:94:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_font.c:99:12: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_font.c:100:8: branch_false: following ‘false’ branch (when ‘bits’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_font.c:104:12: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_font.c:112:19: throw: if ‘glamor_get_screen_private’ throws an exception...
xwayland-24.1.9/glamor/glamor_font.c:112:19: danger: ‘bits’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  110|       glamor_font->default_col = font->info.defaultCh;
#  111|   
#  112|->     glamor_priv = glamor_get_screen_private(screen);
#  113|       glamor_make_current(glamor_priv);
#  114|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
xwayland-24.1.9/glamor/glamor_font.c:128:13: warning[-Wanalyzer-malloc-leak]: leak of ‘bits’
xwayland-24.1.9/glamor/glamor_font.c:63:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_font.c:67:16: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_font.c:94:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_font.c:99:12: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_font.c:100:8: branch_false: following ‘false’ branch (when ‘bits’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_font.c:104:12: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_font.c:123:19: branch_true: following ‘true’ branch (when ‘row < num_rows’)...
xwayland-24.1.9/glamor/glamor_font.c:123:19: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_font.c:128:13: throw: if the called function throws an exception...
xwayland-24.1.9/glamor/glamor_font.c:128:13: danger: ‘bits’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  126|               c[1] = col + font->info.firstCol;
#  127|   
#  128|->             (*font->get_glyphs)(font, 1, c, TwoD16Bit, &count, &glyph);
#  129|   
#  130|               if (count) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def474]
xwayland-24.1.9/glamor/glamor_glx_provider.c:399:5: warning[-Wanalyzer-malloc-leak]: leak of ‘screen’
xwayland-24.1.9/glamor/glamor_glx_provider.c:382:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_glx_provider.c:385:21: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_glx_provider.c:386:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_glx_provider.c:389:20: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_glx_provider.c:389:20: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_glx_provider.c:389:8: branch_false: following ‘false’ branch (when ‘screen’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_glx_provider.c:392:5: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_glx_provider.c:399:5: throw: if ‘__glXInitExtensionEnableBits’ throws an exception...
xwayland-24.1.9/glamor/glamor_glx_provider.c:399:5: danger: ‘screen’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  397|       screen->display = glamor_screen->ctx.display;
#  398|   
#  399|->     __glXInitExtensionEnableBits(screen->base.glx_enable_bits);
#  400|       __glXEnableExtension(base->glx_enable_bits, "GLX_ARB_context_flush_control");
#  401|       __glXEnableExtension(base->glx_enable_bits, "GLX_ARB_create_context");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def475]
xwayland-24.1.9/glamor/glamor_glyphblt.c:56:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_glyphblt.c:157:1: enter_function: entry to ‘glamor_poly_glyph_blt’
xwayland-24.1.9/glamor/glamor_glyphblt.c:161:9: call_function: calling ‘glamor_poly_glyph_blt_gl’ from ‘glamor_poly_glyph_blt’
#   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): [#def476]
xwayland-24.1.9/glamor/glamor_glyphblt.c:191:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_glyphblt.c:169:1: enter_function: entry to ‘glamor_push_pixels_gl’
xwayland-24.1.9/glamor/glamor_glyphblt.c:187:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_glyphblt.c:190:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_push_pixels_gl’
xwayland-24.1.9/glamor/glamor_glyphblt.c:191:10: branch_true: ...to here
xwayland-24.1.9/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): [#def477]
xwayland-24.1.9/glamor/glamor_gradient.c:671:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_gradient.c:656:1: enter_function: entry to ‘_glamor_gradient_set_pixmap_destination’
xwayland-24.1.9/glamor/glamor_gradient.c:669:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘_glamor_gradient_set_pixmap_destination’
xwayland-24.1.9/glamor/glamor_gradient.c:671:10: branch_true: ...to here
xwayland-24.1.9/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): [#def478]
xwayland-24.1.9/glamor/glamor_image.c:46:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_image.c:32:1: enter_function: entry to ‘glamor_put_image_gl’
xwayland-24.1.9/glamor/glamor_image.c:44:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_put_image_gl’
xwayland-24.1.9/glamor/glamor_image.c:46:10: branch_true: ...to here
xwayland-24.1.9/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): [#def479]
xwayland-24.1.9/glamor/glamor_image.c:116:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_image.c:106:1: enter_function: entry to ‘glamor_get_image_gl’
xwayland-24.1.9/glamor/glamor_image.c:115:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_get_image_gl’
xwayland-24.1.9/glamor/glamor_image.c:116:10: branch_true: ...to here
xwayland-24.1.9/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): [#def480]
xwayland-24.1.9/glamor/glamor_largepixmap.c:130:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1109:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1158:13: branch_true: ...to here
xwayland-24.1.9/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-401): [#def481]
xwayland-24.1.9/glamor/glamor_largepixmap.c:142:1: warning[-Wanalyzer-malloc-leak]: leak of ‘clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1109:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1158:13: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1158:13: call_function: calling ‘glamor_compute_clipped_regions_ext’ from ‘glamor_composite_largepixmap_region’
#  140|       *n_region = k;
#  141|       return clipped_regions;
#  142|-> }
#  143|   
#  144|   /**

Error: GCC_ANALYZER_WARNING (CWE-401): [#def482]
xwayland-24.1.9/glamor/glamor_largepixmap.c:142:1: warning[-Wanalyzer-malloc-leak]: leak of ‘result_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1109:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1158:13: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1158:13: call_function: calling ‘glamor_compute_clipped_regions_ext’ from ‘glamor_composite_largepixmap_region’
#  140|       *n_region = k;
#  141|       return clipped_regions;
#  142|-> }
#  143|   
#  144|   /**

Error: GCC_ANALYZER_WARNING (CWE-401): [#def483]
xwayland-24.1.9/glamor/glamor_largepixmap.c:181:37: warning[-Wanalyzer-malloc-leak]: leak of ‘clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1109:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1158:13: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1158:13: call_function: calling ‘glamor_compute_clipped_regions_ext’ from ‘glamor_composite_largepixmap_region’
#  179|               return NULL;
#  180|           }
#  181|->         clipped_regions[0].region = RegionCreate(NULL, 1);
#  182|           clipped_regions[0].block_idx = 0;
#  183|           RegionCopy(clipped_regions[0].region, region);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def484]
xwayland-24.1.9/glamor/glamor_largepixmap.c:365:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:690:1: enter_function: entry to ‘glamor_compute_transform_clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:696:35: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_compute_transform_clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:696:35: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_compute_transform_clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:716:8: branch_false: following ‘false’ branch (when ‘transform’ is NULL)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:718:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:734:11: call_function: calling ‘_glamor_compute_clipped_regions’ from ‘glamor_compute_transform_clipped_regions’
#  363|       if (glamor_pixmap_priv_is_small(pixmap_priv)) {
#  364|           clipped_regions = calloc(1, sizeof(*clipped_regions));
#  365|->         clipped_regions[0].region = RegionCreate(NULL, 1);
#  366|           clipped_regions[0].block_idx = 0;
#  367|           RegionCopy(clipped_regions[0].region, region);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def485]
xwayland-24.1.9/glamor/glamor_largepixmap.c:365:37: warning[-Wanalyzer-malloc-leak]: leak of ‘clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:690:1: enter_function: entry to ‘glamor_compute_transform_clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:696:35: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_compute_transform_clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:696:35: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_compute_transform_clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:716:8: branch_false: following ‘false’ branch (when ‘transform’ is NULL)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:718:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:734:11: call_function: calling ‘_glamor_compute_clipped_regions’ from ‘glamor_compute_transform_clipped_regions’
#  363|       if (glamor_pixmap_priv_is_small(pixmap_priv)) {
#  364|           clipped_regions = calloc(1, sizeof(*clipped_regions));
#  365|->         clipped_regions[0].region = RegionCreate(NULL, 1);
#  366|           clipped_regions[0].block_idx = 0;
#  367|           RegionCopy(clipped_regions[0].region, region);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def486]
xwayland-24.1.9/glamor/glamor_largepixmap.c:1449:17: warning[-Wanalyzer-malloc-leak]: leak of ‘clipped_dest_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1109:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:9: branch_false: following ‘false’ branch (when ‘fixed_block_height >= dest_block_height’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1163:32: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1163:32: call_function: calling ‘glamor_compute_clipped_regions’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1163:32: return_function: returning to ‘glamor_composite_largepixmap_region’ from ‘glamor_compute_clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1168:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1178:5: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1178:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1178:5: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1180:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1185:52: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1184:9: call_function: calling ‘glamor_set_pixmap_fbo_current’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1184:9: return_function: returning to ‘glamor_composite_largepixmap_region’ from ‘glamor_set_pixmap_fbo_current’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1186:12: branch_false: following ‘false’ branch (when ‘source_pixmap_priv’ is NULL)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1385:16: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1385:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1448:53: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1449:17: throw: if ‘glamor_composite_clipped_region’ throws an exception...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1449:17: danger: ‘clipped_dest_regions’ leaks here; was allocated at [(45)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/44)
# 1447|                   RegionTranslate(clipped_dest_regions[i].region,
# 1448|                                   dest->pDrawable->x, dest->pDrawable->y);
# 1449|->                 COMPOSITE_REGION(clipped_dest_regions[i].region);
# 1450|               }
# 1451|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
xwayland-24.1.9/glamor/glamor_largepixmap.c:1452:9: warning[-Wanalyzer-malloc-leak]: leak of ‘clipped_dest_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1109:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:9: branch_false: following ‘false’ branch (when ‘fixed_block_height >= dest_block_height’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1163:32: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1163:32: call_function: calling ‘glamor_compute_clipped_regions’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1163:32: return_function: returning to ‘glamor_composite_largepixmap_region’ from ‘glamor_compute_clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1168:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1178:5: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1178:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1178:5: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1180:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1185:52: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1184:9: call_function: calling ‘glamor_set_pixmap_fbo_current’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1184:9: return_function: returning to ‘glamor_composite_largepixmap_region’ from ‘glamor_set_pixmap_fbo_current’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1186:12: branch_false: following ‘false’ branch (when ‘source_pixmap_priv’ is NULL)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1385:16: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1385:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1448:53: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1449:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1452:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1452:9: throw: if ‘RegionDestroy’ throws an exception...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1452:9: danger: ‘clipped_dest_regions’ leaks here; was allocated at [(45)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/44)
# 1450|               }
# 1451|           }
# 1452|->         RegionDestroy(clipped_dest_regions[i].region);
# 1453|       }
# 1454|       free(clipped_dest_regions);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def488]
xwayland-24.1.9/glamor/glamor_lines.c:52:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_lines.c:131:1: enter_function: entry to ‘glamor_poly_lines_gl’
xwayland-24.1.9/glamor/glamor_lines.c:134:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_lines.c:137:13: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_lines.c:139:16: call_function: calling ‘glamor_poly_lines_solid_gl’ from ‘glamor_poly_lines_gl’
#   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): [#def489]
xwayland-24.1.9/glamor/glamor_pixmap.c:92:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_pixmap.c:100:1: enter_function: entry to ‘glamor_set_destination_pixmap’
xwayland-24.1.9/glamor/glamor_pixmap.c:103:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_set_destination_pixmap’
xwayland-24.1.9/glamor/glamor_pixmap.c:104:15: branch_true: ...to here
xwayland-24.1.9/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): [#def490]
xwayland-24.1.9/glamor/glamor_points.c:54:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_points.c:40:1: enter_function: entry to ‘glamor_poly_point_gl’
xwayland-24.1.9/glamor/glamor_points.c:53:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_poly_point_gl’
xwayland-24.1.9/glamor/glamor_points.c:54:10: branch_true: ...to here
xwayland-24.1.9/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): [#def491]
xwayland-24.1.9/glamor/glamor_prepare.c:44:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_prepare.c:227:1: enter_function: entry to ‘glamor_prepare_access_picture’
xwayland-24.1.9/glamor/glamor_prepare.c:229:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_prepare.c:232:12: call_function: calling ‘glamor_prepare_access’ from ‘glamor_prepare_access_picture’
#   42|       int                         off_x, off_y;
#   43|   
#   44|->     if (priv->type == GLAMOR_DRM_ONLY)
#   45|           return FALSE;
#   46|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def492]
xwayland-24.1.9/glamor/glamor_prepare.c:159:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_prepare.c:260:1: enter_function: entry to ‘glamor_finish_access_picture’
xwayland-24.1.9/glamor/glamor_prepare.c:262:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_prepare.c:265:5: call_function: calling ‘glamor_finish_access’ from ‘glamor_finish_access_picture’
#  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): [#def493]
xwayland-24.1.9/glamor/glamor_priv.h:458:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_priv.h:454:1: enter_function: entry to ‘glamor_pixmap_drm_only’
xwayland-24.1.9/glamor/glamor_priv.h:456:35: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_drm_only’
xwayland-24.1.9/glamor/glamor_priv.h:458:12: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_priv.h:458:12: danger: dereference of NULL ‘<unknown>’
#  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): [#def494]
xwayland-24.1.9/glamor/glamor_priv.h:469:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_priv.h:465:1: enter_function: entry to ‘glamor_pixmap_is_memory’
xwayland-24.1.9/glamor/glamor_priv.h:467:35: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_is_memory’
xwayland-24.1.9/glamor/glamor_priv.h:469:12: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_priv.h:469:12: danger: dereference of NULL ‘<unknown>’
#  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): [#def495]
xwayland-24.1.9/glamor/glamor_priv.h:469:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘temp_mask_priv’
xwayland-24.1.9/glamor/glamor_render.c:1490:1: enter_function: entry to ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1502:49: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1502:49: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1527:12: call_function: inlined call to ‘RegionNumRects’ from ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1528:13: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1573:8: branch_false: following ‘false’ branch (when ‘source’ is NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1595:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1595:8: branch_true: following ‘true’ branch (when ‘mask’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1597:12: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1597:10: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1597:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1597:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1619:14: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1619:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1620:13: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1620:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1623:16: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1623:16: branch_true: following ‘true’ branch (when ‘op == 3’)...
xwayland-24.1.9/glamor/glamor_render.c:1624:21: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1624:21: call_function: calling ‘glamor_pixmap_is_memory’ from ‘glamor_composite_clipped_region’
#  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): [#def496]
xwayland-24.1.9/glamor/glamor_priv.h:469:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘temp_src_priv’
xwayland-24.1.9/glamor/glamor_render.c:1490:1: enter_function: entry to ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1527:12: call_function: inlined call to ‘RegionNumRects’ from ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1528:13: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1573:8: branch_false: following ‘false’ branch (when ‘source’ is NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1595:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1595:8: branch_true: following ‘true’ branch (when ‘mask’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1597:12: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1597:10: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1597:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1597:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1619:14: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1619:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1620:13: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1620:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1623:16: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1623:16: branch_true: following ‘true’ branch (when ‘op == 3’)...
xwayland-24.1.9/glamor/glamor_render.c:1624:21: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1624:21: call_function: calling ‘glamor_pixmap_is_memory’ from ‘glamor_composite_clipped_region’
#  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): [#def497]
xwayland-24.1.9/glamor/glamor_priv.h:478:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_priv.h:488:1: enter_function: entry to ‘glamor_pixmap_is_large’
xwayland-24.1.9/glamor/glamor_priv.h:490:35: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_is_large’
xwayland-24.1.9/glamor/glamor_priv.h:492:12: call_function: inlined call to ‘glamor_pixmap_priv_is_large’ from ‘glamor_pixmap_is_large’
#  476|   glamor_pixmap_priv_is_large(glamor_pixmap_private *priv)
#  477|   {
#  478|->     return priv->block_wcnt > 1 || priv->block_hcnt > 1;
#  479|   }
#  480|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def498]
xwayland-24.1.9/glamor/glamor_priv.h:484:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pixmap_priv’
xwayland-24.1.9/glamor/glamor_largepixmap.c:690:1: enter_function: entry to ‘glamor_compute_transform_clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:696:35: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_compute_transform_clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:703:19: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:734:11: call_function: calling ‘_glamor_compute_clipped_regions’ from ‘glamor_compute_transform_clipped_regions’
#  482|   glamor_pixmap_priv_is_small(glamor_pixmap_private *priv)
#  483|   {
#  484|->     return priv->block_wcnt <= 1 && priv->block_hcnt <= 1;
#  485|   }
#  486|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def499]
xwayland-24.1.9/glamor/glamor_priv.h:502:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_priv.h:498:1: enter_function: entry to ‘glamor_pixmap_has_fbo’
xwayland-24.1.9/glamor/glamor_priv.h:500:35: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_pixmap_has_fbo’
xwayland-24.1.9/glamor/glamor_priv.h:502:12: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_priv.h:502:12: danger: dereference of NULL ‘<unknown>’
#  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): [#def500]
xwayland-24.1.9/glamor/glamor_priv.h:517:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:263:1: enter_function: entry to ‘glamor_glyphs_flush’
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:270:41: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_glyphs_flush’
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:271:36: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_composite_glyphs.c:271:36: call_function: calling ‘glamor_pixmap_fbo_at’ from ‘glamor_glyphs_flush’
#  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): [#def501]
xwayland-24.1.9/glamor/glamor_priv.h:524:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘priv’
xwayland-24.1.9/glamor/glamor_transform.c:37:1: enter_function: entry to ‘glamor_set_destination_drawable’
xwayland-24.1.9/glamor/glamor_transform.c:48:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_set_destination_drawable’
xwayland-24.1.9/glamor/glamor_transform.c:50:18: branch_true: ...to here
xwayland-24.1.9/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): [#def502]
xwayland-24.1.9/glamor/glamor_priv.h:537:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.9/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): [#def503]
xwayland-24.1.9/glamor/glamor_rects.c:61:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_rects.c:45:1: enter_function: entry to ‘glamor_poly_fill_rect_gl’
xwayland-24.1.9/glamor/glamor_rects.c:60:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_poly_fill_rect_gl’
xwayland-24.1.9/glamor/glamor_rects.c:61:10: branch_true: ...to here
xwayland-24.1.9/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): [#def504]
xwayland-24.1.9/glamor/glamor_render.c:584:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_render.c:577:1: enter_function: entry to ‘glamor_set_composite_texture’
xwayland-24.1.9/glamor/glamor_render.c:583:42: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_set_composite_texture’
xwayland-24.1.9/glamor/glamor_render.c:584:24: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:584:24: danger: dereference of NULL ‘<unknown>’
#  582|   {
#  583|       glamor_pixmap_private *pixmap_priv = glamor_get_pixmap_private(pixmap);
#  584|->     glamor_pixmap_fbo *fbo = pixmap_priv->fbo;
#  585|       float wh[4];
#  586|       int repeat_type;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def505]
xwayland-24.1.9/glamor/glamor_render.c:1019:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘source_pixmap_priv’
xwayland-24.1.9/glamor/glamor_render.c:1701:1: enter_function: entry to ‘glamor_composite’
xwayland-24.1.9/glamor/glamor_render.c:1720:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1726:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1737:10: call_function: calling ‘glamor_pixmap_has_fbo’ from ‘glamor_composite’
xwayland-24.1.9/glamor/glamor_render.c:1737:10: return_function: returning to ‘glamor_composite’ from ‘glamor_pixmap_has_fbo’
xwayland-24.1.9/glamor/glamor_render.c:1737:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1740:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1740:8: branch_false: following ‘false’ branch (when ‘op <= 12’)...
xwayland-24.1.9/glamor/glamor_render.c:1745:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1754:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1754:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1768:35: branch_false: following ‘false’ branch (when ‘mask_pixmap’ is NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1766:35: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1764:35: branch_false: following ‘false’ branch (when ‘source_pixmap’ is NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1762:35: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1760:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1775:12: call_function: inlined call to ‘RegionNumRects’ from ‘glamor_composite’
xwayland-24.1.9/glamor/glamor_render.c:1803:23: call_function: calling ‘glamor_pixmap_is_large’ from ‘glamor_composite’
xwayland-24.1.9/glamor/glamor_render.c:1803:23: return_function: returning to ‘glamor_composite’ from ‘glamor_pixmap_is_large’
xwayland-24.1.9/glamor/glamor_render.c:1803:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1803:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1803:9: branch_false: following ‘false’ branch (when ‘source_pixmap’ is NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1803:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1803:9: branch_false: following ‘false’ branch (when ‘mask_pixmap’ is NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1817:14: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1817:14: call_function: calling ‘glamor_composite_clipped_region’ from ‘glamor_composite’
# 1017|               glamor_fallback("source == dest\n");
# 1018|           }
# 1019|->         if (source_pixmap_priv->gl_fbo == GLAMOR_FBO_UNATTACHED) {
# 1020|               source_needs_upload = TRUE;
# 1021|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def506]
xwayland-24.1.9/glamor/glamor_render.c:1577:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_render.c:1490:1: enter_function: entry to ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1527:12: call_function: inlined call to ‘RegionNumRects’ from ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1528:13: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1574:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1577:21: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1577:21: danger: dereference of NULL ‘<unknown>’
# 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): [#def507]
xwayland-24.1.9/glamor/glamor_render.c:1599:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_render.c:1490:1: enter_function: entry to ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1502:49: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1502:49: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1527:12: call_function: inlined call to ‘RegionNumRects’ from ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1528:13: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1573:8: branch_false: following ‘false’ branch (when ‘source’ is NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1595:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1595:8: branch_true: following ‘true’ branch (when ‘mask’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1597:12: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1597:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1599:34: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1599:34: danger: dereference of NULL ‘<unknown>’
# 1597|           ((!mask->pDrawable
# 1598|             && (mask->pSourcePict->type != SourcePictTypeSolidFill))
# 1599|->          || (mask->pDrawable && !GLAMOR_PIXMAP_PRIV_HAS_FBO(mask_pixmap_priv)
# 1600|                && (mask_pixmap->drawable.width != width
# 1601|                    || mask_pixmap->drawable.height != height)))) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def508]
xwayland-24.1.9/glamor/glamor_render.c:1599:34: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘temp_src_priv’
xwayland-24.1.9/glamor/glamor_render.c:1490:1: enter_function: entry to ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1527:12: call_function: inlined call to ‘RegionNumRects’ from ‘glamor_composite_clipped_region’
xwayland-24.1.9/glamor/glamor_render.c:1528:13: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1573:8: branch_false: following ‘false’ branch (when ‘source’ is NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1595:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1595:8: branch_true: following ‘true’ branch (when ‘mask’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_render.c:1597:12: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1597:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_render.c:1599:34: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_render.c:1599:34: danger: dereference of NULL ‘<unknown>’
# 1597|           ((!mask->pDrawable
# 1598|             && (mask->pSourcePict->type != SourcePictTypeSolidFill))
# 1599|->          || (mask->pDrawable && !GLAMOR_PIXMAP_PRIV_HAS_FBO(mask_pixmap_priv)
# 1600|                && (mask_pixmap->drawable.width != width
# 1601|                    || mask_pixmap->drawable.height != height)))) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def509]
xwayland-24.1.9/glamor/glamor_segs.c:52:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_segs.c:123:1: enter_function: entry to ‘glamor_poly_segment_gl’
xwayland-24.1.9/glamor/glamor_segs.c:126:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_segs.c:129:13: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_segs.c:131:16: call_function: calling ‘glamor_poly_segment_solid_gl’ from ‘glamor_poly_segment_gl’
#   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): [#def510]
xwayland-24.1.9/glamor/glamor_spans.c:62:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_spans.c:45:1: enter_function: entry to ‘glamor_fill_spans_gl’
xwayland-24.1.9/glamor/glamor_spans.c:61:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_fill_spans_gl’
xwayland-24.1.9/glamor/glamor_spans.c:62:10: branch_true: ...to here
xwayland-24.1.9/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): [#def511]
xwayland-24.1.9/glamor/glamor_spans.c:194:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_spans.c:180:1: enter_function: entry to ‘glamor_get_spans_gl’
xwayland-24.1.9/glamor/glamor_spans.c:193:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_get_spans_gl’
xwayland-24.1.9/glamor/glamor_spans.c:194:10: branch_true: ...to here
xwayland-24.1.9/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): [#def512]
xwayland-24.1.9/glamor/glamor_spans.c:277:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_spans.c:263:1: enter_function: entry to ‘glamor_set_spans_gl’
xwayland-24.1.9/glamor/glamor_spans.c:276:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_set_spans_gl’
xwayland-24.1.9/glamor/glamor_spans.c:277:10: branch_true: ...to here
xwayland-24.1.9/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): [#def513]
xwayland-24.1.9/glamor/glamor_text.c:294:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_text.c:315:1: enter_function: entry to ‘glamor_poly_text8’
xwayland-24.1.9/glamor/glamor_text.c:320:9: call_function: calling ‘glamor_poly_text’ from ‘glamor_poly_text8’
#  292|   
#  293|       pixmap_priv = glamor_get_pixmap_private(pixmap);
#  294|->     if (!GLAMOR_PIXMAP_PRIV_HAS_FBO(pixmap_priv))
#  295|           goto bail;
#  296|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def514]
xwayland-24.1.9/glamor/glamor_text.c:406:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_text.c:391:1: enter_function: entry to ‘glamor_image_text’
xwayland-24.1.9/glamor/glamor_text.c:405:19: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_image_text’
xwayland-24.1.9/glamor/glamor_text.c:406:10: branch_true: ...to here
xwayland-24.1.9/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): [#def515]
xwayland-24.1.9/glamor/glamor_transform.c:173:10: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/glamor/glamor_transform.c:167:1: enter_function: entry to ‘glamor_set_texture_pixmap’
xwayland-24.1.9/glamor/glamor_transform.c:171:20: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_set_texture_pixmap’
xwayland-24.1.9/glamor/glamor_transform.c:173:10: branch_true: ...to here
xwayland-24.1.9/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): [#def516]
xwayland-24.1.9/glamor/glamor_utils.c:43:10: warning[-Wanalyzer-malloc-leak]: leak of ‘rect’
xwayland-24.1.9/glamor/glamor_utils.c:33:12: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_utils.c:34:8: branch_false: following ‘false’ branch (when ‘rect’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_utils.c:34:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_utils.c:43:10: throw: if ‘GetScratchGC’ throws an exception...
xwayland-24.1.9/glamor/glamor_utils.c:43:10: danger: ‘rect’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   41|       }
#   42|   
#   43|->     gc = GetScratchGC(drawable->depth, drawable->pScreen);
#   44|       if (gc) {
#   45|           ChangeGCVal vals[1];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
xwayland-24.1.9/glamor/glamor_utils.c:48:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rect’
xwayland-24.1.9/glamor/glamor_utils.c:33:12: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_utils.c:34:8: branch_false: following ‘false’ branch (when ‘rect’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_utils.c:34:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_utils.c:44:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_utils.c:47:9: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_utils.c:48:9: throw: if ‘ChangeGC’ throws an exception...
xwayland-24.1.9/glamor/glamor_utils.c:48:9: danger: ‘rect’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   46|   
#   47|           vals[0].val = fg_pixel;
#   48|->         ChangeGC(NullClient, gc, GCForeground, vals);
#   49|           ValidateGC(drawable, gc);
#   50|           gc->ops->PolyFillRect(drawable, gc, nbox, rect);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
xwayland-24.1.9/glamor/glamor_utils.c:49:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rect’
xwayland-24.1.9/glamor/glamor_utils.c:33:12: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_utils.c:34:8: branch_false: following ‘false’ branch (when ‘rect’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_utils.c:34:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_utils.c:44:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_utils.c:47:9: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_utils.c:49:9: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/glamor/glamor_utils.c:49:9: danger: ‘rect’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   47|           vals[0].val = fg_pixel;
#   48|           ChangeGC(NullClient, gc, GCForeground, vals);
#   49|->         ValidateGC(drawable, gc);
#   50|           gc->ops->PolyFillRect(drawable, gc, nbox, rect);
#   51|           FreeScratchGC(gc);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
xwayland-24.1.9/glamor/glamor_utils.c:50:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rect’
xwayland-24.1.9/glamor/glamor_utils.c:33:12: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_utils.c:34:8: branch_false: following ‘false’ branch (when ‘rect’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_utils.c:34:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_utils.c:44:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_utils.c:47:9: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_utils.c:50:9: throw: if the called function throws an exception...
xwayland-24.1.9/glamor/glamor_utils.c:50:9: danger: ‘rect’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   48|           ChangeGC(NullClient, gc, GCForeground, vals);
#   49|           ValidateGC(drawable, gc);
#   50|->         gc->ops->PolyFillRect(drawable, gc, nbox, rect);
#   51|           FreeScratchGC(gc);
#   52|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
xwayland-24.1.9/glamor/glamor_utils.h:673:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bits’
xwayland-24.1.9/glamor/glamor_font.c:32:1: enter_function: entry to ‘glamor_font_get’
xwayland-24.1.9/glamor/glamor_font.c:63:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_font.c:67:16: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_font.c:94:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_font.c:99:12: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_font.c:100:8: branch_false: following ‘false’ branch (when ‘bits’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_font.c:104:12: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_font.c:113:5: call_function: calling ‘glamor_make_current’ from ‘glamor_font_get’
#  671|       if (lastGLContext != glamor_priv->ctx.ctx) {
#  672|           lastGLContext = glamor_priv->ctx.ctx;
#  673|->         glamor_priv->ctx.make_current(&glamor_priv->ctx);
#  674|       }
#  675|       glamor_priv->dirty = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
xwayland-24.1.9/glamor/glamor_utils.h:673:9: warning[-Wanalyzer-malloc-leak]: leak of ‘box_array’
xwayland-24.1.9/glamor/glamor_fbo.c:174:1: enter_function: entry to ‘glamor_create_fbo_array’
xwayland-24.1.9/glamor/glamor_fbo.c:193:17: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_fbo.c:194:8: branch_false: following ‘false’ branch (when ‘box_array’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_fbo.c:197:17: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:198:8: branch_false: following ‘false’ branch (when ‘fbo_array’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_fbo.c:198:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:202:17: branch_true: following ‘true’ branch (when ‘i < block_hcnt’)...
xwayland-24.1.9/glamor/glamor_fbo.c:206:9: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:219:45: call_function: calling ‘glamor_create_fbo’ from ‘glamor_create_fbo_array’
#  671|       if (lastGLContext != glamor_priv->ctx.ctx) {
#  672|           lastGLContext = glamor_priv->ctx.ctx;
#  673|->         glamor_priv->ctx.make_current(&glamor_priv->ctx);
#  674|       }
#  675|       glamor_priv->dirty = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
xwayland-24.1.9/glamor/glamor_utils.h:673:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fbo_array’
xwayland-24.1.9/glamor/glamor_fbo.c:174:1: enter_function: entry to ‘glamor_create_fbo_array’
xwayland-24.1.9/glamor/glamor_fbo.c:194:8: branch_false: following ‘false’ branch (when ‘box_array’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_fbo.c:197:17: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:197:17: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_fbo.c:198:8: branch_false: following ‘false’ branch (when ‘fbo_array’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_fbo.c:198:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:202:17: branch_true: following ‘true’ branch (when ‘i < block_hcnt’)...
xwayland-24.1.9/glamor/glamor_fbo.c:206:9: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:219:45: call_function: calling ‘glamor_create_fbo’ from ‘glamor_create_fbo_array’
#  671|       if (lastGLContext != glamor_priv->ctx.ctx) {
#  672|           lastGLContext = glamor_priv->ctx.ctx;
#  673|->         glamor_priv->ctx.make_current(&glamor_priv->ctx);
#  674|       }
#  675|       glamor_priv->dirty = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
xwayland-24.1.9/glamor/glamor_utils.h:673:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fbo’
xwayland-24.1.9/glamor/glamor_fbo.c:97:1: enter_function: entry to ‘glamor_create_fbo_from_tex’
xwayland-24.1.9/glamor/glamor_fbo.c:103:11: acquire_memory: allocated here
xwayland-24.1.9/glamor/glamor_fbo.c:104:8: branch_false: following ‘false’ branch (when ‘fbo’ is non-NULL)...
xwayland-24.1.9/glamor/glamor_fbo.c:107:5: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:112:8: branch_true: following ‘true’ branch (when ‘flag != 259’)...
xwayland-24.1.9/glamor/glamor_fbo.c:113:13: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_fbo.c:113:13: call_function: calling ‘glamor_pixmap_ensure_fb’ from ‘glamor_create_fbo_from_tex’
#  671|       if (lastGLContext != glamor_priv->ctx.ctx) {
#  672|           lastGLContext = glamor_priv->ctx.ctx;
#  673|->         glamor_priv->ctx.make_current(&glamor_priv->ctx);
#  674|       }
#  675|       glamor_priv->dirty = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
xwayland-24.1.9/glamor/glamor_utils.h:673:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp_box’
xwayland-24.1.9/glamor/glamor_copy.c:726:1: enter_function: entry to ‘glamor_copy’
xwayland-24.1.9/glamor/glamor_copy.c:741:9: call_function: calling ‘glamor_copy_gl’ from ‘glamor_copy’
#  671|       if (lastGLContext != glamor_priv->ctx.ctx) {
#  672|           lastGLContext = glamor_priv->ctx.ctx;
#  673|->         glamor_priv->ctx.make_current(&glamor_priv->ctx);
#  674|       }
#  675|       glamor_priv->dirty = TRUE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def525]
xwayland-24.1.9/glx/createcontext.c:174:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘attribs’
xwayland-24.1.9/glx/createcontext.c:85:24: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/createcontext.c:93:19: branch_false: ...to here
xwayland-24.1.9/glx/createcontext.c:122:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/createcontext.c:133:33: branch_false: ...to here
xwayland-24.1.9/glx/createcontext.c:133:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/createcontext.c:138:9: branch_false: ...to here
xwayland-24.1.9/glx/createcontext.c:138:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/createcontext.c:147:9: branch_false: ...to here
xwayland-24.1.9/glx/createcontext.c:147:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/createcontext.c:173:5: branch_false: ...to here
xwayland-24.1.9/glx/createcontext.c:173:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/glx/createcontext.c:174:25: branch_true: ...to here
xwayland-24.1.9/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): [#def526]
xwayland-24.1.9/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-401): [#def527]
xwayland-24.1.9/glx/glxcmds.c:364:10: warning[-Wanalyzer-malloc-leak]: leak of ‘glxc’
xwayland-24.1.9/glx/glxcmds.c:243:1: enter_function: entry to ‘DoCreateContext’
xwayland-24.1.9/glx/glxcmds.c:261:8: branch_true: following ‘true’ branch (when ‘shareList == 0’)...
xwayland-24.1.9/glx/glxcmds.c:262:9: branch_true: ...to here
xwayland-24.1.9/glx/glxcmds.c:303:8: branch_false: following ‘false’ branch (when ‘isDirect != 0’)...
xwayland-24.1.9/glx/glxcmds.c:323:16: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:323:16: call_function: calling ‘__glXdirectContextCreate’ from ‘DoCreateContext’
xwayland-24.1.9/glx/glxcmds.c:323:16: return_function: returning to ‘DoCreateContext’ from ‘__glXdirectContextCreate’
xwayland-24.1.9/glx/glxcmds.c:324:8: branch_false: following ‘false’ branch (when ‘glxc’ is non-NULL)...
xwayland-24.1.9/glx/glxcmds.c:330:5: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:364:10: throw: if ‘__glXAddContext’ throws an exception...
xwayland-24.1.9/glx/glxcmds.c:364:10: danger: ‘glxc’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#  362|       /* Add the new context to the various global tables of GLX contexts.
#  363|        */
#  364|->     if (!__glXAddContext(glxc)) {
#  365|           (*glxc->destroy) (glxc);
#  366|           client->errorValue = gcId;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def528]
xwayland-24.1.9/glx/glxcmds.c:2406:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/glx/glxcmds.c:2382:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2385:26: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2395:11: acquire_memory: allocated here
xwayland-24.1.9/glx/glxcmds.c:2396:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/glx/glxcmds.c:2398:5: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2400:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glx/glxcmds.c:2400:8: branch_true: ...to here
xwayland-24.1.9/glx/glxcmds.c:2406:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/glx/glxcmds.c:2406:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 2404|           __GLX_SWAP_INT(&reply.length);
# 2405|           __GLX_SWAP_INT(&reply.n);
# 2406|->         WriteToClient(client, sz_xGLXQueryExtensionsStringReply, &reply);
# 2407|           __GLX_SWAP_INT_ARRAY((int *) buf, length);
# 2408|           WriteToClient(client, length << 2, buf);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
xwayland-24.1.9/glx/glxcmds.c:2408:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/glx/glxcmds.c:2382:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2385:26: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2395:11: acquire_memory: allocated here
xwayland-24.1.9/glx/glxcmds.c:2396:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/glx/glxcmds.c:2398:5: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2400:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glx/glxcmds.c:2400:8: branch_true: ...to here
xwayland-24.1.9/glx/glxcmds.c:2407:9: branch_false: following ‘false’ branch (when ‘swapPC >= swapEnd’)...
xwayland-24.1.9/glx/glxcmds.c:2408:9: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2408:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/glx/glxcmds.c:2408:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 2406|           WriteToClient(client, sz_xGLXQueryExtensionsStringReply, &reply);
# 2407|           __GLX_SWAP_INT_ARRAY((int *) buf, length);
# 2408|->         WriteToClient(client, length << 2, buf);
# 2409|       }
# 2410|       else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
xwayland-24.1.9/glx/glxcmds.c:2411:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/glx/glxcmds.c:2382:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2385:26: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2395:11: acquire_memory: allocated here
xwayland-24.1.9/glx/glxcmds.c:2396:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/glx/glxcmds.c:2398:5: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2400:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2411:9: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2411:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/glx/glxcmds.c:2411:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 2409|       }
# 2410|       else {
# 2411|->         WriteToClient(client, sz_xGLXQueryExtensionsStringReply, &reply);
# 2412|           WriteToClient(client, (int) (length << 2), buf);
# 2413|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
xwayland-24.1.9/glx/glxcmds.c:2412:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/glx/glxcmds.c:2382:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2385:26: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2395:11: acquire_memory: allocated here
xwayland-24.1.9/glx/glxcmds.c:2396:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/glx/glxcmds.c:2398:5: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2400:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2411:9: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2412:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/glx/glxcmds.c:2412:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
# 2410|       else {
# 2411|           WriteToClient(client, sz_xGLXQueryExtensionsStringReply, &reply);
# 2412|->         WriteToClient(client, (int) (length << 2), buf);
# 2413|       }
# 2414|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
xwayland-24.1.9/glx/glxcmds.c:2478:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/glx/glxcmds.c:2435:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2438:13: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2467:11: acquire_memory: allocated here
xwayland-24.1.9/glx/glxcmds.c:2468:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/glx/glxcmds.c:2471:5: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2473:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glx/glxcmds.c:2473:8: branch_true: ...to here
xwayland-24.1.9/glx/glxcmds.c:2478:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/glx/glxcmds.c:2478:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
# 2476|           __GLX_SWAP_INT(&reply.length);
# 2477|           __GLX_SWAP_INT(&reply.n);
# 2478|->         WriteToClient(client, sz_xGLXQueryServerStringReply, &reply);
# 2479|           /** no swap is needed for an array of chars **/
# 2480|           /* __GLX_SWAP_INT_ARRAY((int *)buf, length); */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def533]
xwayland-24.1.9/glx/glxcmds.c:2481:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/glx/glxcmds.c:2435:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2438:13: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2467:11: acquire_memory: allocated here
xwayland-24.1.9/glx/glxcmds.c:2468:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/glx/glxcmds.c:2471:5: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2473:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glx/glxcmds.c:2473:8: branch_true: ...to here
xwayland-24.1.9/glx/glxcmds.c:2481:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/glx/glxcmds.c:2481:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
# 2479|           /** no swap is needed for an array of chars **/
# 2480|           /* __GLX_SWAP_INT_ARRAY((int *)buf, length); */
# 2481|->         WriteToClient(client, length << 2, buf);
# 2482|       }
# 2483|       else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
xwayland-24.1.9/glx/glxcmds.c:2484:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/glx/glxcmds.c:2435:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2438:13: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2467:11: acquire_memory: allocated here
xwayland-24.1.9/glx/glxcmds.c:2468:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/glx/glxcmds.c:2471:5: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2473:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2484:9: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2484:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/glx/glxcmds.c:2484:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 2482|       }
# 2483|       else {
# 2484|->         WriteToClient(client, sz_xGLXQueryServerStringReply, &reply);
# 2485|           WriteToClient(client, (int) (length << 2), buf);
# 2486|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
xwayland-24.1.9/glx/glxcmds.c:2485:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buf’
xwayland-24.1.9/glx/glxcmds.c:2435:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2438:13: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2467:11: acquire_memory: allocated here
xwayland-24.1.9/glx/glxcmds.c:2468:8: branch_false: following ‘false’ branch (when ‘buf’ is non-NULL)...
xwayland-24.1.9/glx/glxcmds.c:2471:5: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2473:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/glxcmds.c:2484:9: branch_false: ...to here
xwayland-24.1.9/glx/glxcmds.c:2485:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/glx/glxcmds.c:2485:9: danger: ‘buf’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
# 2483|       else {
# 2484|           WriteToClient(client, sz_xGLXQueryServerStringReply, &reply);
# 2485|->         WriteToClient(client, (int) (length << 2), buf);
# 2486|       }
# 2487|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def536]
xwayland-24.1.9/glx/glxdricommon.c:142:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘config’
xwayland-24.1.9/glx/glxdricommon.c:238:1: enter_function: entry to ‘glxConvertConfigs’
xwayland-24.1.9/glx/glxdricommon.c:247:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/glx/glxdricommon.c:248:22: branch_true: ...to here
xwayland-24.1.9/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-401): [#def537]
xwayland-24.1.9/glx/glxdricommon.c:145:12: warning[-Wanalyzer-malloc-leak]: leak of ‘config’
xwayland-24.1.9/glx/glxdricommon.c:238:1: enter_function: entry to ‘glxConvertConfigs’
xwayland-24.1.9/glx/glxdricommon.c:247:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/glx/glxdricommon.c:248:22: branch_true: ...to here
xwayland-24.1.9/glx/glxdricommon.c:248:22: call_function: calling ‘createModeFromConfig’ from ‘glxConvertConfigs’
#  143|   
#  144|       i = 0;
#  145|->     while (core->indexConfigAttrib(driConfig, i++, &attrib, &value)) {
#  146|           switch (attrib) {
#  147|           case __DRI_ATTRIB_RENDER_TYPE:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def538]
xwayland-24.1.9/glx/glxdricommon.c:234:12: warning[-Wanalyzer-malloc-leak]: leak of ‘config’
xwayland-24.1.9/glx/glxdricommon.c:238:1: enter_function: entry to ‘glxConvertConfigs’
xwayland-24.1.9/glx/glxdricommon.c:247:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/glx/glxdricommon.c:248:22: branch_true: ...to here
xwayland-24.1.9/glx/glxdricommon.c:248:22: call_function: calling ‘createModeFromConfig’ from ‘glxConvertConfigs’
#  232|   #endif
#  233|   
#  234|->     return &config->config;
#  235|   }
#  236|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def539]
xwayland-24.1.9/glx/glxdriswrast.c:244:9: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
xwayland-24.1.9/glx/glxdriswrast.c:214:36: branch_false: following ‘false’ branch (when ‘glxConfig’ is NULL)...
xwayland-24.1.9/glx/glxdriswrast.c:215:31: branch_false: ...to here
xwayland-24.1.9/glx/glxdriswrast.c:226:8: branch_false: following ‘false’ branch (when ‘baseShareContext’ is NULL)...
xwayland-24.1.9/glx/glxdriswrast.c:231:15: branch_false: ...to here
xwayland-24.1.9/glx/glxdriswrast.c:231:15: acquire_memory: allocated here
xwayland-24.1.9/glx/glxdriswrast.c:232:8: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
xwayland-24.1.9/glx/glxdriswrast.c:235:5: branch_false: ...to here
xwayland-24.1.9/glx/glxdriswrast.c:244:9: throw: if the called function throws an exception...
xwayland-24.1.9/glx/glxdriswrast.c:244:9: danger: ‘context’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  242|   
#  243|       context->driContext =
#  244|->         (*core->createNewContext) (screen->driScreen, driConfig, driShare,
#  245|                                      context);
#  246|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
xwayland-24.1.9/glx/glxdriswrast.c:266:10: warning[-Wanalyzer-malloc-leak]: leak of ‘private’
xwayland-24.1.9/glx/glxdriswrast.c:261:15: acquire_memory: allocated here
xwayland-24.1.9/glx/glxdriswrast.c:262:8: branch_false: following ‘false’ branch (when ‘private’ is non-NULL)...
xwayland-24.1.9/glx/glxdriswrast.c:265:5: branch_false: ...to here
xwayland-24.1.9/glx/glxdriswrast.c:266:10: throw: if ‘__glXDrawableInit’ throws an exception...
xwayland-24.1.9/glx/glxdriswrast.c:266:10: danger: ‘private’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  264|   
#  265|       private->screen = driScreen;
#  266|->     if (!__glXDrawableInit(&private->base, screen,
#  267|                              pDraw, type, glxDrawId, glxConfig)) {
#  268|           free(private);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
xwayland-24.1.9/glx/glxdriswrast.c:436:5: warning[-Wanalyzer-malloc-leak]: leak of ‘screen’
xwayland-24.1.9/glx/glxdriswrast.c:426:14: acquire_memory: allocated here
xwayland-24.1.9/glx/glxdriswrast.c:427:8: branch_false: following ‘false’ branch (when ‘screen’ is non-NULL)...
xwayland-24.1.9/glx/glxdriswrast.c:430:5: branch_false: ...to here
xwayland-24.1.9/glx/glxdriswrast.c:436:5: throw: if ‘__glXInitExtensionEnableBits’ throws an exception...
xwayland-24.1.9/glx/glxdriswrast.c:436:5: danger: ‘screen’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  434|       screen->base.pScreen = pScreen;
#  435|   
#  436|->     __glXInitExtensionEnableBits(screen->base.glx_enable_bits);
#  437|   
#  438|       screen->driver = glxProbeDriver(driverName,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
xwayland-24.1.9/glx/single2swap.c:74:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*<unknown>.feedbackBuf’
xwayland-24.1.9/glx/single2swap.c:52:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/single2swap.c:54:5: branch_false: ...to here
xwayland-24.1.9/glx/single2swap.c:56:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/single2swap.c:61:5: branch_false: ...to here
xwayland-24.1.9/glx/single2swap.c:65:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glx/single2swap.c:66:27: branch_true: ...to here
xwayland-24.1.9/glx/single2swap.c:66:27: acquire_memory: allocated here
xwayland-24.1.9/glx/single2swap.c:68:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/single2swap.c:72:9: branch_false: ...to here
xwayland-24.1.9/glx/single2swap.c:74:5: danger: ‘*<unknown>.feedbackBuf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   72|           cx->feedbackBufSize = size;
#   73|       }
#   74|->     glFeedbackBuffer(size, type, cx->feedbackBuf);
#   75|       return Success;
#   76|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def543]
xwayland-24.1.9/glx/single2swap.c:108:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*<unknown>.selectBuf’
xwayland-24.1.9/glx/single2swap.c:88:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/single2swap.c:90:5: branch_false: ...to here
xwayland-24.1.9/glx/single2swap.c:92:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/single2swap.c:97:5: branch_false: ...to here
xwayland-24.1.9/glx/single2swap.c:99:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glx/single2swap.c:100:25: branch_true: ...to here
xwayland-24.1.9/glx/single2swap.c:100:25: acquire_memory: allocated here
xwayland-24.1.9/glx/single2swap.c:102:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/single2swap.c:106:9: branch_false: ...to here
xwayland-24.1.9/glx/single2swap.c:108:5: danger: ‘*<unknown>.selectBuf’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  106|           cx->selectBufSize = size;
#  107|       }
#  108|->     glSelectBuffer(size, cx->selectBuf);
#  109|       return Success;
#  110|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def544]
xwayland-24.1.9/glx/vndcmds.c:152:9: warning[-Wanalyzer-malloc-leak]: leak of ‘requestCopy’
xwayland-24.1.9/glx/vndcmds.c:133:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/glx/vndcmds.c:145:19: branch_false: ...to here
xwayland-24.1.9/glx/vndcmds.c:145:19: acquire_memory: allocated here
xwayland-24.1.9/glx/vndcmds.c:146:8: branch_false: following ‘false’ branch (when ‘requestCopy’ is non-NULL)...
xwayland-24.1.9/glx/vndcmds.c:149:25: branch_false: ...to here
xwayland-24.1.9/glx/vndcmds.c:151:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/glx/vndcmds.c:152:9: branch_true: ...to here
xwayland-24.1.9/glx/vndcmds.c:152:9: throw: if the called function throws an exception...
xwayland-24.1.9/glx/vndcmds.c:152:9: danger: ‘requestCopy’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  150|   
#  151|       xorg_list_for_each_entry(vendor, &GlxVendorList, entry) {
#  152|->         vendor->glxvc.handleRequest(client);
#  153|           // Revert the request buffer back to our copy.
#  154|           memcpy(client->requestBuffer, requestCopy, requestSize);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def545]
xwayland-24.1.9/hw/vfb/InitOutput.c:416:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ppix’
xwayland-24.1.9/hw/vfb/InitOutput.c:411:16: acquire_memory: this call could return NULL
xwayland-24.1.9/hw/vfb/InitOutput.c:415:21: branch_true: following ‘true’ branch (when ‘entries > i’)...
xwayland-24.1.9/hw/vfb/InitOutput.c:416:17: branch_true: ...to here
xwayland-24.1.9/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-401): [#def546]
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: warning[-Wanalyzer-malloc-leak]: leak of ‘defs’
xwayland-24.1.9/hw/vfb/InitOutput.c:413:16: acquire_memory: allocated here
xwayland-24.1.9/hw/vfb/InitOutput.c:415:21: branch_false: following ‘false’ branch (when ‘entries <= i’)...
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: branch_false: ...to here
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: throw: if ‘QueryColors’ throws an exception...
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: danger: ‘defs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  416|               ppix[i] = i;
#  417|           /* XXX truecolor */
#  418|->         QueryColors(pmap, entries, ppix, prgb, serverClient);
#  419|   
#  420|           for (i = 0; i < entries; i++) { /* convert xrgbs to xColorItems */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def547]
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ppix’
xwayland-24.1.9/hw/vfb/InitOutput.c:411:16: acquire_memory: allocated here
xwayland-24.1.9/hw/vfb/InitOutput.c:415:21: branch_false: following ‘false’ branch (when ‘entries <= i’)...
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: branch_false: ...to here
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: throw: if ‘QueryColors’ throws an exception...
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: danger: ‘ppix’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  416|               ppix[i] = i;
#  417|           /* XXX truecolor */
#  418|->         QueryColors(pmap, entries, ppix, prgb, serverClient);
#  419|   
#  420|           for (i = 0; i < entries; i++) { /* convert xrgbs to xColorItems */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def548]
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: warning[-Wanalyzer-malloc-leak]: leak of ‘prgb’
xwayland-24.1.9/hw/vfb/InitOutput.c:412:16: acquire_memory: allocated here
xwayland-24.1.9/hw/vfb/InitOutput.c:415:21: branch_false: following ‘false’ branch (when ‘entries <= i’)...
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: branch_false: ...to here
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: throw: if ‘QueryColors’ throws an exception...
xwayland-24.1.9/hw/vfb/InitOutput.c:418:9: danger: ‘prgb’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  416|               ppix[i] = i;
#  417|           /* XXX truecolor */
#  418|->         QueryColors(pmap, entries, ppix, prgb, serverClient);
#  419|   
#  420|           for (i = 0; i < entries; i++) { /* convert xrgbs to xColorItems */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def549]
xwayland-24.1.9/hw/vfb/InitOutput.c:421:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘defs’
xwayland-24.1.9/hw/vfb/InitOutput.c:413:16: acquire_memory: this call could return NULL
xwayland-24.1.9/hw/vfb/InitOutput.c:420:21: branch_true: following ‘true’ branch (when ‘entries > i’)...
xwayland-24.1.9/hw/vfb/InitOutput.c:421:33: branch_true: ...to here
xwayland-24.1.9/hw/vfb/InitOutput.c:421:13: danger: ‘defs + (long unsigned int)i * 12’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  419|   
#  420|           for (i = 0; i < entries; i++) { /* convert xrgbs to xColorItems */
#  421|->             defs[i].pixel = ppix[i] & 0xff;     /* change pixel to index */
#  422|               defs[i].red = prgb[i].red;
#  423|               defs[i].green = prgb[i].green;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def550]
xwayland-24.1.9/hw/vfb/InitOutput.c:427:9: warning[-Wanalyzer-malloc-leak]: leak of ‘defs’
xwayland-24.1.9/hw/vfb/InitOutput.c:413:16: acquire_memory: allocated here
xwayland-24.1.9/hw/vfb/InitOutput.c:420:21: branch_false: following ‘false’ branch (when ‘entries <= i’)...
xwayland-24.1.9/hw/vfb/InitOutput.c:427:11: branch_false: ...to here
xwayland-24.1.9/hw/vfb/InitOutput.c:427:9: throw: if the called function throws an exception...
xwayland-24.1.9/hw/vfb/InitOutput.c:427:9: danger: ‘defs’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  425|               defs[i].flags = DoRed | DoGreen | DoBlue;
#  426|           }
#  427|->         (*pmap->pScreen->StoreColors) (pmap, entries, defs);
#  428|   
#  429|           free(ppix);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def551]
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:238:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_get_rrmodes_from_connector_id(*MEM[(struct xwl_output *)data_16(D)].lease_device.drm_read_only_fd, (int)connector_id, & nmode, & npref)’
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:296:1: enter_function: entry to ‘lease_connector_handle_connector_id’
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:327:15: call_function: calling ‘xwl_get_rrmodes_from_connector_id’ from ‘lease_connector_handle_connector_id’
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:327:15: return_function: returning to ‘lease_connector_handle_connector_id’ from ‘xwl_get_rrmodes_from_connector_id’
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:330:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:331:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:331:9: throw: if ‘RROutputSetModes’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:238:12: danger: ‘xwl_get_rrmodes_from_connector_id(*MEM[(struct xwl_output *)data_16(D)].lease_device.drm_read_only_fd, (int)connector_id, & nmode, & npref)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#  236|       *nmode = *npref = 0;
#  237|   
#  238|->     conn = drmModeGetConnectorCurrent(drm, connector_id);
#  239|       if (!conn) {
#  240|           ErrorF("drmModeGetConnector for connector %d failed\n", connector_id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def552]
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:274:26: warning[-Wanalyzer-malloc-leak]: leak of ‘rrmodes’
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:239:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:243:15: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:243:15: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:244:8: branch_false: following ‘false’ branch (when ‘rrmodes’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:244:8: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:252:20: branch_true: following ‘true’ branch (when ‘pref != -1’)...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:252:20: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:255:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:259:46: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:274:26: throw: if ‘RRModeGet’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:274:26: danger: ‘rrmodes’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  272|                   modeInfo.modeFlags = kmode->flags;
#  273|   
#  274|->                 rrmode = RRModeGet(&modeInfo, kmode->name);
#  275|                   if (rrmode) {
#  276|                       rrmodes[*nmode] = rrmode;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def553]
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:287:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rrmodes’
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:239:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:243:15: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:243:15: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:244:8: branch_false: following ‘false’ branch (when ‘rrmodes’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:244:8: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:252:20: branch_true: following ‘true’ branch (when ‘pref != -1’)...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:252:20: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:253:21: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:252:31: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:253:21: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:252:31: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:287:5: throw: if ‘drmModeFreeConnector’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:287:5: danger: ‘rrmodes’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  285|           *npref = 1;
#  286|   
#  287|->     drmModeFreeConnector(conn);
#  288|       return rrmodes;
#  289|   #else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def554]
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:393:30: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_output’
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:384:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:385:8: branch_false: following ‘false’ branch (when ‘xwl_output’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:390:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:393:30: throw: if ‘RRCrtcCreate’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:393:30: danger: ‘xwl_output’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  391|       xwl_output->xwl_screen = xwl_screen;
#  392|       xwl_output->lease_connector = connector;
#  393|->     xwl_output->randr_crtc = RRCrtcCreate(xwl_screen->screen, xwl_output);
#  394|       if (!xwl_output->randr_crtc) {
#  395|           ErrorF("Failed creating RandR CRTC\n");

Error: GCC_ANALYZER_WARNING (CWE-476): [#def555]
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:458:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘device_data’
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:456:48: acquire_memory: this call could return NULL
xwayland-24.1.9/hw/xwayland/xwayland-drm-lease.c:458:5: danger: ‘device_data’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/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-775): [#def556]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:157:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(device_path, 524290)’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:153:10: acquire_resource: opened here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:154:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:157:23: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:157:23: throw: if ‘drmGetNodeTypeFromFd’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:157:23: danger: ‘open(device_path, 524290)’ leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  155|           return 0;
#  156|   
#  157|->     is_render_node = (drmGetNodeTypeFromFd(fd) == DRM_NODE_RENDER);
#  158|       close(fd);
#  159|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def557]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:225:14: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:164:1: enter_function: entry to ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:221:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:222:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:225:14: throw: if ‘glamor_create_pixmap’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:225:14: danger: ‘xwl_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
#  223|           return NULL;
#  224|   
#  225|->     pixmap = glamor_create_pixmap(screen,
#  226|                                     gbm_bo_get_width(bo),
#  227|                                     gbm_bo_get_height(bo),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def558]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:226:35: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:164:1: enter_function: entry to ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:221:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:222:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:226:35: throw: if ‘gbm_bo_get_width’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:226:35: danger: ‘xwl_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
#  224|   
#  225|       pixmap = glamor_create_pixmap(screen,
#  226|->                                   gbm_bo_get_width(bo),
#  227|                                     gbm_bo_get_height(bo),
#  228|                                     depth,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:164:1: enter_function: entry to ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:221:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:222:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: throw: if ‘gbm_bo_get_height’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: danger: ‘xwl_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
#  225|       pixmap = glamor_create_pixmap(screen,
#  226|                                     gbm_bo_get_width(bo),
#  227|->                                   gbm_bo_get_height(bo),
#  228|                                     depth,
#  229|                                     GLAMOR_CREATE_PIXMAP_NO_TEXTURE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:235:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:164:1: enter_function: entry to ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:221:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:222:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:230:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:235:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:235:5: throw: if ‘xwl_glamor_egl_make_current’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:235:5: danger: ‘xwl_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
#  233|       }
#  234|   
#  235|->     xwl_glamor_egl_make_current(xwl_screen);
#  236|       xwl_pixmap->bo = bo;
#  237|       xwl_pixmap->buffer = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:251:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:164:1: enter_function: entry to ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:221:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:222:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:230:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:235:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:244:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:250:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:251:9: throw: if ‘gbm_bo_get_width’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:251:9: danger: ‘xwl_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
#  249|           } while (0)
#  250|           ADD_ATTR(img_attrs, attr_num, EGL_WIDTH);
#  251|->         ADD_ATTR(img_attrs, attr_num, gbm_bo_get_width(bo));
#  252|           ADD_ATTR(img_attrs, attr_num, EGL_HEIGHT);
#  253|           ADD_ATTR(img_attrs, attr_num, gbm_bo_get_height(bo));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:253:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:164:1: enter_function: entry to ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:221:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:222:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:230:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:235:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:244:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:250:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:253:9: throw: if ‘gbm_bo_get_height’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:253:9: danger: ‘xwl_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/12)
#  251|           ADD_ATTR(img_attrs, attr_num, gbm_bo_get_width(bo));
#  252|           ADD_ATTR(img_attrs, attr_num, EGL_HEIGHT);
#  253|->         ADD_ATTR(img_attrs, attr_num, gbm_bo_get_height(bo));
#  254|           ADD_ATTR(img_attrs, attr_num, EGL_LINUX_DRM_FOURCC_EXT);
#  255|           ADD_ATTR(img_attrs, attr_num, gbm_bo_get_format(bo));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def563]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:164:1: enter_function: entry to ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:221:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:222:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:230:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:235:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:244:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:250:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:255:9: throw: if ‘gbm_bo_get_format’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:255:9: danger: ‘xwl_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/12)
#  253|           ADD_ATTR(img_attrs, attr_num, gbm_bo_get_height(bo));
#  254|           ADD_ATTR(img_attrs, attr_num, EGL_LINUX_DRM_FOURCC_EXT);
#  255|->         ADD_ATTR(img_attrs, attr_num, gbm_bo_get_format(bo));
#  256|   
#  257|           for (plane = 0; plane < num_planes; plane++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def564]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:258:26: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:164:1: enter_function: entry to ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:221:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:222:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:230:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:235:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:244:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:250:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:257:25: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:258:26: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:258:26: throw: if ‘gbm_bo_get_fd_for_plane’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:258:26: danger: ‘xwl_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
#  256|   
#  257|           for (plane = 0; plane < num_planes; plane++) {
#  258|->             fds[plane] = gbm_bo_get_fd_for_plane(bo, plane);
#  259|               ADD_ATTR(img_attrs, attr_num, planeAttrs[plane][PLANE_FD]);
#  260|               ADD_ATTR(img_attrs, attr_num, fds[plane]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def565]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:262:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:164:1: enter_function: entry to ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:221:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:222:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:230:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:235:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:244:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:250:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:257:25: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:258:26: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:262:13: throw: if ‘gbm_bo_get_offset’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:262:13: danger: ‘xwl_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/12)
#  260|               ADD_ATTR(img_attrs, attr_num, fds[plane]);
#  261|               ADD_ATTR(img_attrs, attr_num, planeAttrs[plane][PLANE_OFFSET]);
#  262|->             ADD_ATTR(img_attrs, attr_num, gbm_bo_get_offset(bo, plane));
#  263|               ADD_ATTR(img_attrs, attr_num, planeAttrs[plane][PLANE_PITCH]);
#  264|               ADD_ATTR(img_attrs, attr_num, gbm_bo_get_stride_for_plane(bo, plane));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def566]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:264:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:164:1: enter_function: entry to ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:221:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:222:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:230:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:235:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:244:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:250:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:257:25: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:258:26: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:264:13: throw: if ‘gbm_bo_get_stride_for_plane’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:264:13: danger: ‘xwl_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/12)
#  262|               ADD_ATTR(img_attrs, attr_num, gbm_bo_get_offset(bo, plane));
#  263|               ADD_ATTR(img_attrs, attr_num, planeAttrs[plane][PLANE_PITCH]);
#  264|->             ADD_ATTR(img_attrs, attr_num, gbm_bo_get_stride_for_plane(bo, plane));
#  265|               ADD_ATTR(img_attrs, attr_num, planeAttrs[plane][PLANE_MODIFIER_LO]);
#  266|               ADD_ATTR(img_attrs, attr_num, (uint32_t)(modifier & 0xFFFFFFFFULL));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:280:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:759:1: enter_function: entry to ‘glamor_pixmap_from_fds’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:765:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘glamor_pixmap_from_fds’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:765:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘glamor_pixmap_from_fds’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:771:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:771:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:773:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:771:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:776:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:793:15: branch_true: following ‘true’ branch (when ‘num_fds == 1’)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:796:18: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:808:8: branch_false: following ‘false’ branch (when ‘bo’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:811:14: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:811:14: call_function: calling ‘xwl_glamor_gbm_create_pixmap_for_bo’ from ‘glamor_pixmap_from_fds’
#  278|   
#  279|           for (plane = 0; plane < num_planes; plane++) {
#  280|->             close(fds[plane]);
#  281|               fds[plane] = -1;
#  282|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:319:7: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:164:1: enter_function: entry to ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:172:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_glamor_gbm_create_pixmap_for_bo’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:221:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:222:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:227:35: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:230:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:235:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:293:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:294:7: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:319:7: throw: if ‘glamor_destroy_pixmap’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:319:7: danger: ‘xwl_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/12)
#  317|         eglDestroyImageKHR(xwl_screen->egl_display, xwl_pixmap->image);
#  318|       if (pixmap)
#  319|->       glamor_destroy_pixmap(pixmap);
#  320|       free(xwl_pixmap);
#  321|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def569]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(*<unknown>.device_name, 524290)’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:713:1: enter_function: entry to ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:719:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:719:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:724:10: acquire_resource: opened here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:725:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:732:13: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:733:8: branch_true: following ‘true’ branch (when ‘state’ is NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:734:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:9: danger: ‘open(*<unknown>.device_name, 524290)’ leaks here; was opened at [(13)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/12)
#  725|       if (fd < 0)
#  726|           return BadAlloc;
#  727|->     if (xwl_gbm->fd_render_node) {
#  728|           *pfd = fd;
#  729|           return Success;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def570]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:741:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:713:1: enter_function: entry to ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:719:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:719:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:724:10: acquire_resource: opened here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:725:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:732:13: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:733:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:738:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:741:9: throw: if ‘drmGetMagic’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:741:9: danger: leaks here; was opened at [(13)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/12)
#  739|       state->fd = fd;
#  740|   
#  741|->     if (drmGetMagic(state->fd, &magic) < 0) {
#  742|           close(state->fd);
#  743|           free(state);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:741:9: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:713:1: enter_function: entry to ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:719:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:719:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:725:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:732:13: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:732:13: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:733:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:738:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:741:9: throw: if ‘drmGetMagic’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:741:9: danger: ‘state’ leaks here; was allocated at [(17)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/16)
#  739|       state->fd = fd;
#  740|   
#  741|->     if (drmGetMagic(state->fd, &magic) < 0) {
#  742|           close(state->fd);
#  743|           free(state);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def572]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:742:9: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:713:1: enter_function: entry to ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:719:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:719:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:725:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:732:13: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:732:13: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:733:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:738:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:741:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:742:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:742:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:742:9: danger: ‘state’ leaks here; was allocated at [(17)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/16)
#  740|   
#  741|       if (drmGetMagic(state->fd, &magic) < 0) {
#  742|->         close(state->fd);
#  743|           free(state);
#  744|           return BadMatch;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def573]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1157:19: warning[-Wanalyzer-malloc-leak]: leak of ‘syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1148:1: enter_function: entry to ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1150:40: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1154:8: branch_false: following ‘false’ branch (when ‘syncobj’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1157:8: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1157:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1157:19: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1157:19: throw: if ‘drmSyncobjCreate’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1157:19: danger: ‘syncobj’ leaks here; was allocated at [(2)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/1)
# 1155|           return NULL;
# 1156|   
# 1157|->     if (create && drmSyncobjCreate(xwl_gbm->drm_fd, 0, &handle))
# 1158|           goto fail;
# 1159|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def574]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1162:13: warning[-Wanalyzer-malloc-leak]: leak of ‘syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1148:1: enter_function: entry to ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1150:40: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1154:8: branch_false: following ‘false’ branch (when ‘syncobj’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1157:8: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1160:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1161:13: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1162:13: throw: if ‘drmSyncobjHandleToFD’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1162:13: danger: ‘syncobj’ leaks here; was allocated at [(2)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/1)
# 1160|       if (xwl_screen->explicit_sync) {
# 1161|           int syncobj_fd = -1;
# 1162|->         if (drmSyncobjHandleToFD(xwl_gbm->drm_fd, handle, &syncobj_fd))
# 1163|               goto fail;
# 1164|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def575]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1168:9: warning[-Wanalyzer-malloc-leak]: leak of ‘syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1148:1: enter_function: entry to ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1150:40: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1154:8: branch_false: following ‘false’ branch (when ‘syncobj’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1157:8: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1160:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1161:13: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1162:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1166:13: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1168:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1168:9: danger: ‘syncobj’ leaks here; was allocated at [(2)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/1)
# 1166|               wp_linux_drm_syncobj_manager_v1_import_timeline(xwl_screen->explicit_sync,
# 1167|                                                               syncobj_fd);
# 1168|->         close(syncobj_fd);
# 1169|           if (!syncobj->timeline)
# 1170|               goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def576]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1185:12: warning[-Wanalyzer-malloc-leak]: leak of ‘syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1148:1: enter_function: entry to ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1150:40: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1154:8: branch_false: following ‘false’ branch (when ‘syncobj’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1157:8: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1160:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1173:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1185:12: danger: ‘syncobj’ leaks here; was allocated at [(2)](sarif:/runs/0/results/24/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-401): [#def577]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1189:9: warning[-Wanalyzer-malloc-leak]: leak of ‘syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1148:1: enter_function: entry to ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1150:40: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1154:8: branch_false: following ‘false’ branch (when ‘syncobj’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1157:8: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1188:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1189:9: throw: if ‘drmSyncobjDestroy’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1189:9: danger: ‘syncobj’ leaks here; was allocated at [(2)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/1)
# 1187|   fail:
# 1188|       if (create && handle)
# 1189|->         drmSyncobjDestroy(xwl_gbm->drm_fd, handle);
# 1190|       free(syncobj);
# 1191|       return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1294:17: warning[-Wanalyzer-malloc-leak]: leak of ‘devices’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1287:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1290:15: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1290:15: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1291:8: branch_false: following ‘false’ branch (when ‘devices’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1294:17: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1294:17: throw: if ‘drmGetDevices2’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1294:17: danger: ‘devices’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
# 1292|           goto out;
# 1293|   
# 1294|->     n_devices = drmGetDevices2(0, devices, max_devices);
# 1295|       if (n_devices < 0)
# 1296|           goto out;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def579]
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3309:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘warp_emulator’
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3485:1: enter_function: entry to ‘xwl_seat_maybe_lock_on_hidden_cursor’
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3508:5: call_function: calling ‘xwl_seat_create_pointer_warp_emulator’ from ‘xwl_seat_maybe_lock_on_hidden_cursor’
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3508:5: return_function: returning to ‘xwl_seat_maybe_lock_on_hidden_cursor’ from ‘xwl_seat_create_pointer_warp_emulator’
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3509:5: call_function: calling ‘xwl_pointer_warp_emulator_lock’ from ‘xwl_seat_maybe_lock_on_hidden_cursor’
# 3307|   xwl_pointer_warp_emulator_lock(struct xwl_pointer_warp_emulator *warp_emulator)
# 3308|   {
# 3309|->     struct xwl_seat *xwl_seat = warp_emulator->xwl_seat;
# 3310|       struct xwl_screen *xwl_screen = xwl_seat->xwl_screen;
# 3311|       struct zwp_pointer_constraints_v1 *pointer_constraints =

Error: GCC_ANALYZER_WARNING (CWE-476): [#def580]
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3310:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xwl_seat’
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3372:1: enter_function: entry to ‘xwl_pointer_warp_emulator_handle_motion’
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3393:9: call_function: inlined call to ‘xwl_pointer_warp_emulator_is_locked’ from ‘xwl_pointer_warp_emulator_handle_motion’
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3394:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3393:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3395:14: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3399:9: call_function: calling ‘xwl_seat_destroy_pointer_warp_emulator’ from ‘xwl_pointer_warp_emulator_handle_motion’
# 3308|   {
# 3309|       struct xwl_seat *xwl_seat = warp_emulator->xwl_seat;
# 3310|->     struct xwl_screen *xwl_screen = xwl_seat->xwl_screen;
# 3311|       struct zwp_pointer_constraints_v1 *pointer_constraints =
# 3312|           xwl_screen->pointer_constraints;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def581]
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3434:5: warning[-Wanalyzer-malloc-leak]: leak of ‘*xwl_seat.pointer_warp_emulator’
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3372:1: enter_function: entry to ‘xwl_pointer_warp_emulator_handle_motion’
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3393:9: call_function: inlined call to ‘xwl_pointer_warp_emulator_is_locked’ from ‘xwl_pointer_warp_emulator_handle_motion’
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3394:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3393:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3395:14: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-input.c:3399:9: call_function: calling ‘xwl_seat_destroy_pointer_warp_emulator’ from ‘xwl_pointer_warp_emulator_handle_motion’
# 3432|           xwl_seat_destroy_confined_pointer(xwl_seat);
# 3433|   
# 3434|->     xwl_seat->pointer_warp_emulator =
# 3435|           xwl_pointer_warp_emulator_create(xwl_seat);
# 3436|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def582]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:363:19: warning[-Wanalyzer-malloc-leak]: leak of ‘rr_modes’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:628:1: enter_function: entry to ‘apply_output_change’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:651:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:653:23: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:653:23: call_function: calling ‘output_get_rr_modes’ from ‘apply_output_change’
#  361|   
#  362|       /* Add actual output mode */
#  363|->     rr_modes[0] = xwayland_cvt(width, height, xwl_output->refresh / 1000.0, 0, 0);
#  364|       if (!rr_modes[0])
#  365|           goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def583]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:363:47: warning[-Wanalyzer-malloc-leak]: leak of ‘output_get_rr_modes(xwl_output,  mode_width,  mode_height, & count)’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:628:1: enter_function: entry to ‘apply_output_change’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:651:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:653:23: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:653:23: call_function: calling ‘output_get_rr_modes’ from ‘apply_output_change’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:653:23: return_function: returning to ‘apply_output_change’ from ‘output_get_rr_modes’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:654:9: throw: if ‘RROutputSetModes’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:363:47: danger: ‘output_get_rr_modes(xwl_output,  mode_width,  mode_height, & count)’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#  361|   
#  362|       /* Add actual output mode */
#  363|->     rr_modes[0] = xwayland_cvt(width, height, xwl_output->refresh / 1000.0, 0, 0);
#  364|       if (!rr_modes[0])
#  365|           goto err;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:369:10: warning[-Wanalyzer-malloc-leak]: leak of ‘rr_modes’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:628:1: enter_function: entry to ‘apply_output_change’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:651:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:653:23: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:653:23: call_function: calling ‘output_get_rr_modes’ from ‘apply_output_change’
#  367|       *count = 1;
#  368|   
#  369|->     if (!xwl_screen_has_resolution_change_emulation(xwl_screen) && !xwl_screen->force_xrandr_emulation)
#  370|           return rr_modes;
#  371|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def585]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:384:28: warning[-Wanalyzer-malloc-leak]: leak of ‘rr_modes’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:628:1: enter_function: entry to ‘apply_output_change’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:651:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:653:23: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:653:23: call_function: calling ‘output_get_rr_modes’ from ‘apply_output_change’
#  382|               continue;
#  383|   
#  384|->         rr_modes[*count] = xwayland_cvt(xwl_output_fake_modes[i][0],
#  385|                                           xwl_output_fake_modes[i][1],
#  386|                                           xwl_output->refresh / 1000.0, 0, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def586]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:395:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rr_modes’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:628:1: enter_function: entry to ‘apply_output_change’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:651:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:653:23: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:653:23: call_function: calling ‘output_get_rr_modes’ from ‘apply_output_change’
#  393|       return rr_modes;
#  394|   err:
#  395|->     FatalError("Failed to allocate memory for list of RR modes");
#  396|   }
#  397|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:921:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_output’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:912:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:913:8: branch_false: following ‘false’ branch (when ‘xwl_output’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:918:26: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:920:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:921:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:921:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:921:9: danger: ‘xwl_output’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  919|                                             &wl_output_interface, min(version, 4));
#  920|       if (!xwl_output->output) {
#  921|->         ErrorF("Failed binding wl_output\n");
#  922|           goto err;
#  923|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1247:16: warning[-Wanalyzer-malloc-leak]: leak of ‘modes’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1229:13: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1230:8: branch_false: following ‘false’ branch (when ‘modes’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1235:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1242:17: branch_true: following ‘true’ branch (when ‘i != 40’)...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1243:13: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1247:16: throw: if ‘xwayland_cvt’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1247:16: danger: ‘modes’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1245|               current = 1;
# 1246|   
# 1247|->         mode = xwayland_cvt(xwl_output_fake_modes[i][0],
# 1248|                               xwl_output_fake_modes[i][1],
# 1249|                               60, 0, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def589]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1257:16: warning[-Wanalyzer-malloc-leak]: leak of ‘modes’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1298:1: enter_function: entry to ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1306:8: branch_false: following ‘false’ branch (when ‘xwl_output’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1314:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: call_function: calling ‘dixLookupPrivate’ from ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: return_function: returning to ‘xwl_screen_init_randr_fixed’ from ‘dixLookupPrivate’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1324:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1329:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1330:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1334:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1339:5: call_function: calling ‘xwl_randr_add_modes_fixed’ from ‘xwl_screen_init_randr_fixed’
# 1255|       if (!current) {
# 1256|           /* Add the current mode as it's not part of the fake modes. */
# 1257|->         mode = xwayland_cvt(current_width, current_height, 60, 0, 0);
# 1258|   
# 1259|           if (mode)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:10: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_output’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1305:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1306:8: branch_false: following ‘false’ branch (when ‘xwl_output’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:10: throw: if ‘RRScreenInit’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:10: danger: ‘xwl_output’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 1309|       }
# 1310|   
# 1311|->     if (!RRScreenInit(xwl_screen->screen))
# 1312|           goto err;
# 1313|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def591]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1314:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_output’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1305:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1306:8: branch_false: following ‘false’ branch (when ‘xwl_output’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1314:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1314:5: throw: if ‘RRScreenSetSizeRange’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1314:5: danger: ‘xwl_output’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 1312|           goto err;
# 1313|   
# 1314|->     RRScreenSetSizeRange(xwl_screen->screen, 16, 16, 32767, 32767);
# 1315|   
# 1316|       rp = rrGetScrPriv(xwl_screen->screen);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def592]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1320:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_output’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1298:1: enter_function: entry to ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1305:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1306:8: branch_false: following ‘false’ branch (when ‘xwl_output’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1314:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: call_function: calling ‘dixLookupPrivate’ from ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: return_function: returning to ‘xwl_screen_init_randr_fixed’ from ‘dixLookupPrivate’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1320:5: throw: if ‘xwl_screen_get_next_output_serial’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1320:5: danger: ‘xwl_output’ leaks here; was allocated at [(2)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/1)
# 1318|       rp->rrSetConfig = xwl_randr_set_config_fixed;
# 1319|   
# 1320|->     snprintf(name, MAX_OUTPUT_NAME, "XWAYLAND%d",
# 1321|                xwl_screen_get_next_output_serial(xwl_screen));
# 1322|       xwl_output->randr_output = RROutputCreate(xwl_screen->screen, name,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def593]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1322:32: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_output’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1298:1: enter_function: entry to ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1305:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1306:8: branch_false: following ‘false’ branch (when ‘xwl_output’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1314:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: call_function: calling ‘dixLookupPrivate’ from ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: return_function: returning to ‘xwl_screen_init_randr_fixed’ from ‘dixLookupPrivate’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1322:32: throw: if ‘RROutputCreate’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1322:32: danger: ‘xwl_output’ leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
# 1320|       snprintf(name, MAX_OUTPUT_NAME, "XWAYLAND%d",
# 1321|                xwl_screen_get_next_output_serial(xwl_screen));
# 1322|->     xwl_output->randr_output = RROutputCreate(xwl_screen->screen, name,
# 1323|                                                 strlen(name), NULL);
# 1324|       if (!xwl_output->randr_output) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1325:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_output’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1298:1: enter_function: entry to ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1305:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1306:8: branch_false: following ‘false’ branch (when ‘xwl_output’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1314:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: call_function: calling ‘dixLookupPrivate’ from ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: return_function: returning to ‘xwl_screen_init_randr_fixed’ from ‘dixLookupPrivate’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1324:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1325:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1325:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1325:9: danger: ‘xwl_output’ leaks here; was allocated at [(2)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/1)
# 1323|                                                 strlen(name), NULL);
# 1324|       if (!xwl_output->randr_output) {
# 1325|->         ErrorF("Failed to create RandR output\n");
# 1326|           goto err;
# 1327|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def595]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1329:30: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_output’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1298:1: enter_function: entry to ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1305:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1306:8: branch_false: following ‘false’ branch (when ‘xwl_output’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1314:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: call_function: calling ‘dixLookupPrivate’ from ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: return_function: returning to ‘xwl_screen_init_randr_fixed’ from ‘dixLookupPrivate’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1324:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1329:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1329:30: throw: if ‘RRCrtcCreate’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1329:30: danger: ‘xwl_output’ leaks here; was allocated at [(2)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/1)
# 1327|       }
# 1328|   
# 1329|->     xwl_output->randr_crtc = RRCrtcCreate(xwl_screen->screen, xwl_output);
# 1330|       if (!xwl_output->randr_crtc) {
# 1331|           ErrorF("Failed to create RandR CRTC\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1363:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_output’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1298:1: enter_function: entry to ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1305:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1306:8: branch_false: following ‘false’ branch (when ‘xwl_output’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1311:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1314:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: call_function: calling ‘dixLookupPrivate’ from ‘xwl_screen_init_randr_fixed’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1316:10: return_function: returning to ‘xwl_screen_init_randr_fixed’ from ‘dixLookupPrivate’
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1324:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1325:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1362:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1363:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1363:9: throw: if ‘RRCrtcDestroy’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-output.c:1363:9: danger: ‘xwl_output’ leaks here; was allocated at [(2)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/1)
# 1361|   err:
# 1362|       if (xwl_output->randr_crtc)
# 1363|->         RRCrtcDestroy(xwl_output->randr_crtc);
# 1364|       if (xwl_output->randr_output)
# 1365|           RROutputDestroy(xwl_output->randr_output);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def597]
xwayland-24.1.9/hw/xwayland/xwayland-present.c:81:35: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_present_window’
xwayland-24.1.9/hw/xwayland/xwayland-present.c:184:1: enter_function: entry to ‘xwl_present_reset_timer’
xwayland-24.1.9/hw/xwayland/xwayland-present.c:202:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-present.c:203:22: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-present.c:203:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-present.c:204:17: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-present.c:204:17: call_function: calling ‘xwl_present_timer_callback’ from ‘xwl_present_reset_timer’
#   79|           xwl_present_window->window = window;
#   80|           xwl_present_window->msc = 1;
#   81|->         xwl_present_window->ust = GetTimeInMicros();
#   82|   
#   83|           xorg_list_init(&xwl_present_window->frame_callback_list);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def598]
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:86:5: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:85:5: acquire_resource: ‘va_start’ called here
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:86:5: throw: if ‘VErrorFSigSafe’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:86:5: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   84|   
#   85|       va_start(args, f);
#   86|->     VErrorFSigSafe(f, args);
#   87|       va_end(args);
#   88|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def599]
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:307:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xwl_seat’
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:288:1: enter_function: entry to ‘xwl_cursor_warped_to’
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:295:37: call_function: inlined call to ‘xwl_screen_get’ from ‘xwl_cursor_warped_to’
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:295:37: call_function: inlined call to ‘xwl_screen_get’ from ‘xwl_cursor_warped_to’
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:300:8: branch_true: following ‘true’ branch (when ‘xwl_seat’ is NULL)...
xwayland-24.1.9/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.9/hw/xwayland/xwayland-screen.c:303:8: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:307:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:307:24: branch_true: ...to here
xwayland-24.1.9/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): [#def600]
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:520:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘queued’
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:496:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:499:32: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:499:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:506:32: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:510:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:517:32: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:517:13: branch_true: following ‘true’ branch (when the strings are equal)...
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:518:13: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:518:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:519:58: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:519:58: acquire_memory: this call could return NULL
xwayland-24.1.9/hw/xwayland/xwayland-screen.c:520:13: danger: ‘queued’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/2/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): [#def601]
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:84:10: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:127:1: enter_function: entry to ‘os_create_anonymous_file’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:137:8: branch_false: following ‘false’ branch (when ‘fd < 0’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:148:16: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:149:12: branch_false: following ‘false’ branch (when ‘path’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:154:23: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:154:16: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:155:12: branch_false: following ‘false’ branch (when ‘name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:158:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:161:14: call_function: calling ‘create_tmpfile_cloexec’ from ‘os_create_anonymous_file’
#   82|   
#   83|   #ifdef HAVE_MKOSTEMP
#   84|->     fd = mkostemp(tmpname, O_CLOEXEC);
#   85|       if (fd >= 0)
#   86|           unlink(tmpname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def602]
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:84:10: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:245:1: enter_function: entry to ‘xwl_shm_create_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:8: branch_false: following ‘false’ branch (when ‘hint != 3’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:257:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch (when ‘depth > 14’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:268:8: branch_false: following ‘false’ branch (when ‘size <= 2147483647’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:271:14: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:272:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:276:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:280:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:281:10: call_function: calling ‘os_create_anonymous_file’ from ‘xwl_shm_create_pixmap’
#   82|   
#   83|   #ifdef HAVE_MKOSTEMP
#   84|->     fd = mkostemp(tmpname, O_CLOEXEC);
#   85|       if (fd >= 0)
#   86|           unlink(tmpname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def603]
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:95:12: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:245:1: enter_function: entry to ‘xwl_shm_create_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:8: branch_false: following ‘false’ branch (when ‘hint != 3’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:257:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch (when ‘depth > 14’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:268:8: branch_false: following ‘false’ branch (when ‘size <= 2147483647’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:271:14: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:272:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:276:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:280:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:281:10: call_function: calling ‘os_create_anonymous_file’ from ‘xwl_shm_create_pixmap’
#   93|   #endif
#   94|   
#   95|->     return os_move_fd(fd);
#   96|   }
#   97|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:144:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:245:1: enter_function: entry to ‘xwl_shm_create_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:8: branch_false: following ‘false’ branch (when ‘hint != 3’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:257:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch (when ‘depth > 14’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:268:8: branch_false: following ‘false’ branch (when ‘size <= 2147483647’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:271:14: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:272:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:276:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:280:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:281:10: call_function: calling ‘os_create_anonymous_file’ from ‘xwl_shm_create_pixmap’
#  142|            * couldn't do anything with it anyway.
#  143|            */
#  144|->         fcntl(fd, F_ADD_SEALS, F_SEAL_SHRINK);
#  145|       } else
#  146|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def605]
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:176:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:245:1: enter_function: entry to ‘xwl_shm_create_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:8: branch_false: following ‘false’ branch (when ‘hint != 3’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:257:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch (when ‘depth > 14’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:268:8: branch_false: following ‘false’ branch (when ‘size <= 2147483647’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:271:14: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:272:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:276:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:280:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:281:10: call_function: calling ‘os_create_anonymous_file’ from ‘xwl_shm_create_pixmap’
#  174|        * large allocation attempts from ever succeeding.
#  175|        */
#  176|->     OsBlockSignals();
#  177|       do {
#  178|           ret = posix_fallocate(fd, 0, size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def606]
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:178:15: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:245:1: enter_function: entry to ‘xwl_shm_create_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:8: branch_false: following ‘false’ branch (when ‘hint != 3’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:257:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch (when ‘depth > 14’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:268:8: branch_false: following ‘false’ branch (when ‘size <= 2147483647’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:271:14: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:272:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:276:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:280:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:281:10: call_function: calling ‘os_create_anonymous_file’ from ‘xwl_shm_create_pixmap’
#  176|       OsBlockSignals();
#  177|       do {
#  178|->         ret = posix_fallocate(fd, 0, size);
#  179|       } while (ret == EINTR);
#  180|       OsReleaseSignals();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def607]
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:180:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:245:1: enter_function: entry to ‘xwl_shm_create_pixmap’
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:8: branch_false: following ‘false’ branch (when ‘hint != 3’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:257:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: following ‘false’ branch (when ‘depth > 14’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:256:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:268:8: branch_false: following ‘false’ branch (when ‘size <= 2147483647’)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:271:14: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:272:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:275:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:276:8: branch_false: following ‘false’ branch (when ‘xwl_pixmap’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:280:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-shm.c:281:10: call_function: calling ‘os_create_anonymous_file’ from ‘xwl_shm_create_pixmap’
#  178|           ret = posix_fallocate(fd, 0, size);
#  179|       } while (ret == EINTR);
#  180|->     OsReleaseSignals();
#  181|   
#  182|       if (ret != 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def608]
xwayland-24.1.9/hw/xwayland/xwayland-window-buffers.c:88:40: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_window_buffer’
xwayland-24.1.9/hw/xwayland/xwayland-window-buffers.c:83:25: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-window-buffers.c:84:8: branch_false: following ‘false’ branch (when ‘xwl_window_buffer’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-window-buffers.c:87:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window-buffers.c:88:40: throw: if ‘RegionCreate’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-window-buffers.c:88:40: danger: ‘xwl_window_buffer’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   86|   
#   87|       xwl_window_buffer->xwl_window = xwl_window;
#   88|->     xwl_window_buffer->damage_region = RegionCreate(NullBox, 1);
#   89|       xwl_window_buffer->pixmap = NullPixmap;
#   90|       xwl_window_buffer->refcnt = 1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def609]
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1302:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1457:1: enter_function: entry to ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: call_function: calling ‘xwl_window_from_window’ from ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: return_function: returning to ‘ensure_surface_for_window’ from ‘xwl_window_from_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1465:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1468:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1475:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1480:8: branch_false: following ‘false’ branch (when ‘xwl_window’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1483:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1492:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:35: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:35: call_function: calling ‘xwl_create_root_surface’ from ‘ensure_surface_for_window’
# 1300|       if (xwl_screen->decorate) {
# 1301|           xwl_window->libdecor_frame =
# 1302|->             libdecor_decorate(xwl_screen->libdecor_context,
# 1303|                                 xwl_window->surface,
# 1304|                                 &libdecor_frame_iface,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def610]
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1315:13: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1457:1: enter_function: entry to ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: call_function: calling ‘xwl_window_from_window’ from ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: return_function: returning to ‘ensure_surface_for_window’ from ‘xwl_window_from_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1465:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1468:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1475:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1480:8: branch_false: following ‘false’ branch (when ‘xwl_window’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1483:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1492:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:35: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:35: call_function: calling ‘xwl_create_root_surface’ from ‘ensure_surface_for_window’
# 1313|               xdg_wm_base_get_xdg_surface(xwl_screen->xdg_wm_base, xwl_window->surface);
# 1314|           if (xwl_window->xdg_surface == NULL) {
# 1315|->             ErrorF("Failed creating xdg_wm_base xdg_surface\n");
# 1316|               goto err_surf;
# 1317|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def611]
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1493:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1457:1: enter_function: entry to ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: call_function: calling ‘xwl_window_from_window’ from ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: return_function: returning to ‘ensure_surface_for_window’ from ‘xwl_window_from_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1465:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1468:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1475:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1480:8: branch_false: following ‘false’ branch (when ‘xwl_window’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1483:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1492:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1493:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1493:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1493:9: danger: ‘xwl_window’ leaks here; was allocated at [(26)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/25)
# 1491|       xwl_window->surface = wl_compositor_create_surface(xwl_screen->compositor);
# 1492|       if (xwl_window->surface == NULL) {
# 1493|->         ErrorF("wl_display_create_surface failed\n");
# 1494|           goto err;
# 1495|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def612]
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1507:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1457:1: enter_function: entry to ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: call_function: calling ‘xwl_window_from_window’ from ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: return_function: returning to ‘ensure_surface_for_window’ from ‘xwl_window_from_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1465:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1468:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1471:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1480:8: branch_false: following ‘false’ branch (when ‘xwl_window’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1483:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1492:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1506:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1506:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1507:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1507:9: throw: if ‘xwl_dmabuf_setup_feedback_for_window’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1507:9: danger: ‘xwl_window’ leaks here; was allocated at [(26)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/25)
# 1505|   #ifdef XWL_HAS_GLAMOR
# 1506|       if (xwl_screen->dmabuf_protocol_version >= 4)
# 1507|->         xwl_dmabuf_setup_feedback_for_window(xwl_window);
# 1508|   #endif
# 1509|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def613]
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1510:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1457:1: enter_function: entry to ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: call_function: calling ‘xwl_window_from_window’ from ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: return_function: returning to ‘ensure_surface_for_window’ from ‘xwl_window_from_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1465:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1468:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1471:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1480:8: branch_false: following ‘false’ branch (when ‘xwl_window’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1483:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1492:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1506:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1506:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1510:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1510:5: throw: if ‘wl_display_flush’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1510:5: danger: ‘xwl_window’ leaks here; was allocated at [(26)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/25)
# 1508|   #endif
# 1509|   
# 1510|->     wl_display_flush(xwl_screen->display);
# 1511|   
# 1512|       send_surface_id_event(xwl_window);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def614]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:122:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_emulated_event’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:646:1: enter_function: entry to ‘xwayland_xtest_send_events’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:657:21: call_function: inlined call to ‘get_xwl_ei_client’ from ‘xwayland_xtest_send_events’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:657:21: call_function: inlined call to ‘get_xwl_ei_client’ from ‘xwayland_xtest_send_events’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:658:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:670:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:670:5: call_function: calling ‘dixSetPrivate’ from ‘xwayland_xtest_send_events’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:670:5: return_function: returning to ‘xwayland_xtest_send_events’ from ‘dixSetPrivate’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:691:8: branch_false: following ‘false’ branch (when ‘accept == 0’)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:696:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:696:9: call_function: calling ‘xwl_queue_emulated_event’ from ‘xwayland_xtest_send_events’
#  120|       xwl_emulated_event->detail = detail;
#  121|       xwl_emulated_event->flags = flags;
#  122|->     valuator_mask_copy(&xwl_emulated_event->mask, mask);
#  123|   
#  124|       xorg_list_append(&xwl_emulated_event->link,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def615]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:291:29: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:338:1: enter_function: entry to ‘setup_ei’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:384:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:385:18: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:385:18: call_function: calling ‘setup_oeffis’ from ‘setup_ei’
#  289|   #ifdef XWL_HAS_EI_PORTAL
#  290|       xwl_ei_client->oeffis_fd = -1;
#  291|->     xwl_ei_client->oeffis = oeffis_new(NULL);
#  292|       if (!xwl_ei_client->oeffis)
#  293|           return false;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def616]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:295:32: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:338:1: enter_function: entry to ‘setup_ei’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:384:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:385:18: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:385:18: call_function: calling ‘setup_oeffis’ from ‘setup_ei’
#  293|           return false;
#  294|   
#  295|->     xwl_ei_client->oeffis_fd = oeffis_get_fd(xwl_ei_client->oeffis);
#  296|       if (xwl_ei_client->oeffis_fd < 0) {
#  297|           error_ei("Failed to setup OEFFIS file descriptor\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:338:1: enter_function: entry to ‘setup_ei’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:384:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:385:18: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:385:18: call_function: calling ‘setup_oeffis’ from ‘setup_ei’
#  295|       xwl_ei_client->oeffis_fd = oeffis_get_fd(xwl_ei_client->oeffis);
#  296|       if (xwl_ei_client->oeffis_fd < 0) {
#  297|->         error_ei("Failed to setup OEFFIS file descriptor\n");
#  298|           return false;
#  299|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def618]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:301:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:338:1: enter_function: entry to ‘setup_ei’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:384:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:385:18: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:385:18: call_function: calling ‘setup_oeffis’ from ‘setup_ei’
#  299|       }
#  300|   
#  301|->     SetNotifyFd(xwl_ei_client->oeffis_fd, xwl_handle_oeffis_event,
#  302|           X_NOTIFY_READ, xwl_ei_client);
#  303|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def619]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:318:10: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:338:1: enter_function: entry to ‘setup_ei’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:384:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:387:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:387:18: call_function: calling ‘setup_ei_from_socket’ from ‘setup_ei’
#  316|       int rc;
#  317|   
#  318|->     rc = ei_setup_backend_socket(xwl_ei_client->ei, NULL);
#  319|   
#  320|       if (rc != 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def620]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:321:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:338:1: enter_function: entry to ‘setup_ei’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:384:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:387:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:387:18: call_function: calling ‘setup_ei_from_socket’ from ‘setup_ei’
#  319|   
#  320|       if (rc != 0) {
#  321|->         error_ei("Setup failed: %s\n", strerror(-rc));
#  322|           return false;
#  323|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def621]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:325:28: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:338:1: enter_function: entry to ‘setup_ei’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:384:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:387:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:387:18: call_function: calling ‘setup_ei_from_socket’ from ‘setup_ei’
#  323|       }
#  324|   
#  325|->     xwl_ei_client->ei_fd = ei_get_fd(xwl_ei_client->ei);
#  326|       if (xwl_ei_client->ei_fd < 0) {
#  327|           error_ei("Failed to setup EI file descriptor from socket\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def622]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:327:9: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:338:1: enter_function: entry to ‘setup_ei’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:384:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:387:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:387:18: call_function: calling ‘setup_ei_from_socket’ from ‘setup_ei’
#  325|       xwl_ei_client->ei_fd = ei_get_fd(xwl_ei_client->ei);
#  326|       if (xwl_ei_client->ei_fd < 0) {
#  327|->         error_ei("Failed to setup EI file descriptor from socket\n");
#  328|           return false;
#  329|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def623]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:331:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:338:1: enter_function: entry to ‘setup_ei’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:384:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:387:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:387:18: call_function: calling ‘setup_ei_from_socket’ from ‘setup_ei’
#  329|       }
#  330|   
#  331|->     SetNotifyFd(xwl_ei_client->ei_fd, xwl_handle_ei_event,
#  332|           X_NOTIFY_READ, xwl_ei_client);
#  333|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def624]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: throw: if ‘Xstrdup’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: danger: ‘xwl_ei_client’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
#  364|       }
#  365|   
#  366|->     xwl_ei_client->cmdline = xstrdup(cmdname);
#  367|       xorg_list_init(&xwl_ei_client->link);
#  368|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def625]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:369:10: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:369:10: throw: if ‘ei_new’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:369:10: danger: ‘xwl_ei_client’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#  367|       xorg_list_init(&xwl_ei_client->link);
#  368|   
#  369|->     ei = ei_new(NULL);
#  370|       ei_configure_name(ei, basename(client_name));
#  371|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def626]
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:370:5: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_ei_client’
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:350:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:351:9: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:355:8: branch_false: following ‘false’ branch (when ‘client_name’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:360:21: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:361:8: branch_false: following ‘false’ branch (when ‘xwl_ei_client’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:366:30: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:370:5: throw: if ‘ei_configure_name’ throws an exception...
xwayland-24.1.9/hw/xwayland/xwayland-xtest.c:370:5: danger: ‘xwl_ei_client’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
#  368|   
#  369|       ei = ei_new(NULL);
#  370|->     ei_configure_name(ei, basename(client_name));
#  371|   
#  372|       /* We can't send events to EIS until we have a device and the device

Error: GCC_ANALYZER_WARNING (CWE-401): [#def627]
xwayland-24.1.9/include/callback.h:83:5: warning[-Wanalyzer-malloc-leak]: leak of ‘props’
xwayland-24.1.9/dix/property.c:133:1: enter_function: entry to ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:143:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:146:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:150:13: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:152:8: branch_false: ...to here
xwayland-24.1.9/dix/property.c:158:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:163:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:163:25: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:169:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:169:14: call_function: calling ‘dixLookupProperty’ from ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:169:14: return_function: returning to ‘ProcRotateProperties’ from ‘dixLookupProperty’
xwayland-24.1.9/dix/property.c:171:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:174:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:182:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:182:8: branch_true: ...to here
xwayland-24.1.9/dix/property.c:183:16: branch_false: following ‘false’ branch (when ‘delta >= 0’)...
xwayland-24.1.9/dix/property.c:183:16: branch_false: ...to here
xwayland-24.1.9/dix/property.c:185:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:186:17: branch_true: ...to here
xwayland-24.1.9/dix/property.c:187:13: call_function: calling ‘deliverPropertyNotifyEvent’ from ‘ProcRotateProperties’
#   81|       if (!pcbl || !*pcbl)
#   82|           return;
#   83|->     _CallCallbacks(pcbl, call_data);
#   84|   }
#   85|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def628]
xwayland-24.1.9/include/callback.h:83:5: warning[-Wanalyzer-malloc-leak]: leak of ‘saved’
xwayland-24.1.9/dix/property.c:133:1: enter_function: entry to ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:143:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:146:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:151:13: acquire_memory: allocated here
xwayland-24.1.9/dix/property.c:152:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:152:8: branch_false: ...to here
xwayland-24.1.9/dix/property.c:158:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:163:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:163:25: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:169:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:169:14: call_function: calling ‘dixLookupProperty’ from ‘ProcRotateProperties’
xwayland-24.1.9/dix/property.c:169:14: return_function: returning to ‘ProcRotateProperties’ from ‘dixLookupProperty’
xwayland-24.1.9/dix/property.c:171:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/dix/property.c:174:14: branch_false: ...to here
xwayland-24.1.9/dix/property.c:182:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:182:8: branch_true: ...to here
xwayland-24.1.9/dix/property.c:183:16: branch_false: following ‘false’ branch (when ‘delta >= 0’)...
xwayland-24.1.9/dix/property.c:183:16: branch_false: ...to here
xwayland-24.1.9/dix/property.c:185:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/dix/property.c:186:17: branch_true: ...to here
xwayland-24.1.9/dix/property.c:187:13: call_function: calling ‘deliverPropertyNotifyEvent’ from ‘ProcRotateProperties’
#   81|       if (!pcbl || !*pcbl)
#   82|           return;
#   83|->     _CallCallbacks(pcbl, call_data);
#   84|   }
#   85|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def629]
xwayland-24.1.9/include/dixstruct.h:165:1: warning[-Wanalyzer-malloc-leak]: leak of ‘obuf’
xwayland-24.1.9/os/io.c:834:1: enter_function: entry to ‘FlushClient’
xwayland-24.1.9/os/io.c:846:8: branch_false: following ‘false’ branch (when ‘oco’ is non-NULL)...
xwayland-24.1.9/os/io.c:849:15: call_function: inlined call to ‘padding_for_int32’ from ‘FlushClient’
xwayland-24.1.9/os/io.c:851:8: branch_false: following ‘false’ branch (when ‘notWritten != 0’)...
xwayland-24.1.9/os/io.c:854:9: branch_false: ...to here
xwayland-24.1.9/os/io.c:858:12: branch_true: following ‘true’ branch (when ‘notWritten != 0’)...
xwayland-24.1.9/os/io.c:891:9: branch_true: ...to here
xwayland-24.1.9/os/io.c:924:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/io.c:927:20: branch_true: ...to here
xwayland-24.1.9/os/io.c:927:20: branch_true: following ‘true’ branch (when ‘notWritten <= 2147467263’)...
xwayland-24.1.9/os/io.c:928:46: branch_true: ...to here
xwayland-24.1.9/os/io.c:930:20: branch_false: following ‘false’ branch (when ‘obuf’ is non-NULL)...
xwayland-24.1.9/os/io.c:936:29: branch_false: ...to here
xwayland-24.1.9/os/io.c:942:16: branch_false: following ‘false’ branch (when ‘len <= 0’)...
xwayland-24.1.9/os/io.c:946:13: branch_false: ...to here
xwayland-24.1.9/include/dixstruct.h:165:1: danger: ‘obuf’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  163|       if (!client->clientGone && xorg_list_is_empty(&client->output_pending))
#  164|           xorg_list_append(&client->output_pending, &output_pending_clients);
#  165|-> }
#  166|   
#  167|   static inline void

Error: GCC_ANALYZER_WARNING (CWE-476): [#def630]
xwayland-24.1.9/include/list.h:177:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/hw/xwayland/xwayland-present.c:184:1: enter_function: entry to ‘xwl_present_reset_timer’
xwayland-24.1.9/hw/xwayland/xwayland-present.c:202:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-present.c:203:22: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-present.c:203:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-present.c:204:17: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-present.c:204:17: call_function: calling ‘xwl_present_timer_callback’ from ‘xwl_present_reset_timer’
#  175|   xorg_list_append(struct xorg_list *entry, struct xorg_list *head)
#  176|   {
#  177|->     __xorg_list_add(entry, head->prev, head);
#  178|   }
#  179|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def631]
xwayland-24.1.9/include/list.h:220:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/hw/xwayland/xwayland-present.c:184:1: enter_function: entry to ‘xwl_present_reset_timer’
xwayland-24.1.9/hw/xwayland/xwayland-present.c:202:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-present.c:203:22: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-present.c:203:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-present.c:204:17: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-present.c:204:17: call_function: calling ‘xwl_present_timer_callback’ from ‘xwl_present_reset_timer’
#  218|   xorg_list_is_empty(struct xorg_list *head)
#  219|   {
#  220|->     return head->next == head;
#  221|   }
#  222|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def632]
xwayland-24.1.9/include/privates.h:165:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ccw’
xwayland-24.1.9/composite/compalloc.c:344:1: enter_function: entry to ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: call_function: calling ‘dixLookupPrivate’ from ‘compRedirectSubwindows’
xwayland-24.1.9/composite/compalloc.c:346:29: return_function: returning to ‘compRedirectSubwindows’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compalloc.c:362:11: acquire_memory: allocated here
xwayland-24.1.9/composite/compalloc.c:363:8: branch_false: following ‘false’ branch (when ‘ccw’ is non-NULL)...
xwayland-24.1.9/composite/compalloc.c:365:28: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:370:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compalloc.c:383:10: branch_false: ...to here
xwayland-24.1.9/composite/compalloc.c:383:36: branch_false: following ‘false’ branch (when ‘pChild’ is NULL)...
xwayland-24.1.9/composite/compalloc.c:400:17: branch_false: ...to here
xwayland-24.1.9/include/privates.h:165:16: danger: ‘ccw’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  163|   {
#  164|       if (key->size)
#  165|->         return dixGetPrivateAddr(privates, key);
#  166|       else
#  167|           return dixGetPrivate(privates, key);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def633]
xwayland-24.1.9/include/privates.h:165:16: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.9/composite/compext.c:701:1: enter_function: entry to ‘PanoramiXCompositeNameWindowPixmap’
xwayland-24.1.9/composite/compext.c:712:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:714:15: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:714:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:720:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:720:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:722:20: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:722:20: acquire_memory: allocated here
xwayland-24.1.9/composite/compext.c:722:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.9/composite/compext.c:725:5: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:729:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:730:58: branch_true: ...to here
xwayland-24.1.9/composite/compext.c:732:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:738:18: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:738:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:743:14: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:743:14: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeNameWindowPixmap’
xwayland-24.1.9/composite/compext.c:743:14: return_function: returning to ‘PanoramiXCompositeNameWindowPixmap’ from ‘dixLookupPrivate’
xwayland-24.1.9/composite/compext.c:744:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:749:21: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:750:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/composite/compext.c:755:14: branch_false: ...to here
xwayland-24.1.9/composite/compext.c:755:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/composite/compext.c:712:5: branch_true: ...to here
xwayland-24.1.9/include/privates.h:165:16: danger: ‘newPix’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#  163|   {
#  164|       if (key->size)
#  165|->         return dixGetPrivateAddr(privates, key);
#  166|       else
#  167|           return dixGetPrivate(privates, key);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def634]
xwayland-24.1.9/include/privates.h:209:29: warning[-Wanalyzer-malloc-leak]: leak of ‘pBuffer’
xwayland-24.1.9/mi/midispcur.c:439:1: enter_function: entry to ‘miDCDeviceInitialize’
xwayland-24.1.9/mi/midispcur.c:445:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/midispcur.c:445:8: branch_false: ...to here
xwayland-24.1.9/mi/midispcur.c:448:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/midispcur.c:449:9: branch_true: ...to here
xwayland-24.1.9/mi/midispcur.c:451:19: acquire_memory: allocated here
xwayland-24.1.9/mi/midispcur.c:452:12: branch_false: following ‘false’ branch (when ‘pBuffer’ is non-NULL)...
xwayland-24.1.9/mi/midispcur.c:455:29: branch_false: ...to here
xwayland-24.1.9/mi/midispcur.c:455:9: call_function: calling ‘dixSetScreenPrivate’ from ‘miDCDeviceInitialize’
#  207|                       ScreenPtr pScreen, void *val)
#  208|   {
#  209|->     dixSetPrivate(privates, _dixGetScreenPrivateKey(key, pScreen), val);
#  210|   }
#  211|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def635]
xwayland-24.1.9/include/regionstr.h:74:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xwayland-24.1.9/fb/fboverlay.c:190:1: enter_function: entry to ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:193:36: call_function: calling ‘dixLookupPrivate’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:193:36: return_function: returning to ‘fbOverlayCopyWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.9/fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.9/fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/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): [#def636]
xwayland-24.1.9/include/regionstr.h:165:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xwayland-24.1.9/fb/fboverlay.c:190:1: enter_function: entry to ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:193:36: call_function: calling ‘dixLookupPrivate’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:193:36: return_function: returning to ‘fbOverlayCopyWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.9/fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.9/fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/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): [#def637]
xwayland-24.1.9/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.9/mi/mioverlay.c:721:1: enter_function: entry to ‘miOverlayValidateTree’
xwayland-24.1.9/mi/mioverlay.c:725:32: call_function: calling ‘dixLookupPrivate’ from ‘miOverlayValidateTree’
xwayland-24.1.9/mi/mioverlay.c:725:32: return_function: returning to ‘miOverlayValidateTree’ from ‘dixLookupPrivate’
xwayland-24.1.9/mi/mioverlay.c:731:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mioverlay.c:734:8: branch_false: ...to here
xwayland-24.1.9/mi/mioverlay.c:743:12: call_function: calling ‘dixLookupPrivate’ from ‘miOverlayValidateTree’
xwayland-24.1.9/mi/mioverlay.c:743:12: return_function: returning to ‘miOverlayValidateTree’ from ‘dixLookupPrivate’
xwayland-24.1.9/mi/mioverlay.c:748:9: call_function: calling ‘dixLookupPrivate’ from ‘miOverlayValidateTree’
xwayland-24.1.9/mi/mioverlay.c:748:9: return_function: returning to ‘miOverlayValidateTree’ from ‘dixLookupPrivate’
xwayland-24.1.9/mi/mioverlay.c:753:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mioverlay.c:753:46: call_function: inlined call to ‘RegionBroken’ from ‘miOverlayValidateTree’
xwayland-24.1.9/mi/mioverlay.c:753:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mioverlay.c:755:32: branch_true: ...to here
xwayland-24.1.9/mi/mioverlay.c:775:25: branch_true: following ‘true’ branch (when ‘tWin’ is non-NULL)...
xwayland-24.1.9/mi/mioverlay.c:776:13: branch_true: ...to here
xwayland-24.1.9/mi/mioverlay.c:780:17: call_function: calling ‘miOverlayComputeClips’ from ‘miOverlayValidateTree’
#  164|   {
#  165|       if ((_pReg)->data && (_pReg)->data->size) {
#  166|->         free((_pReg)->data);
#  167|           (_pReg)->data = NULL;
#  168|       }

Error: GCC_ANALYZER_WARNING (CWE-121): [#def638]
xwayland-24.1.9/include/regionstr.h:167:9: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
xwayland-24.1.9/fb/fboverlay.c:190:1: enter_function: entry to ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:193:36: call_function: calling ‘dixLookupPrivate’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:193:36: return_function: returning to ‘fbOverlayCopyWindow’ from ‘dixLookupPrivate’
xwayland-24.1.9/fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.9/fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: call_function: calling ‘RegionUninit’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/fb/fboverlay.c:233:9: return_function: returning to ‘fbOverlayCopyWindow’ from ‘RegionUninit’
xwayland-24.1.9/fb/fboverlay.c:229:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/fb/fboverlay.c:230:13: call_function: inlined call to ‘RegionNotEmpty’ from ‘fbOverlayCopyWindow’
xwayland-24.1.9/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-401): [#def639]
xwayland-24.1.9/include/regionstr.h:225:12: warning[-Wanalyzer-malloc-leak]: leak of ‘clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1109:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1158:13: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1158:13: call_function: calling ‘glamor_compute_clipped_regions_ext’ from ‘glamor_composite_largepixmap_region’
#  223|   RegionCopy(RegionPtr dst, RegionPtr src)
#  224|   {
#  225|->     return pixman_region_copy(dst, src);
#  226|   }
#  227|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def640]
xwayland-24.1.9/include/regionstr.h:225:12: warning[-Wanalyzer-malloc-leak]: leak of ‘pptFirst’
xwayland-24.1.9/mi/mibitblt.c:373:1: enter_function: entry to ‘miOpqStipDrawable’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:403:22: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:417:5: call_function: inlined call to ‘RegionCopy’ from ‘miOpqStipDrawable’
#  223|   RegionCopy(RegionPtr dst, RegionPtr src)
#  224|   {
#  225|->     return pixman_region_copy(dst, src);
#  226|   }
#  227|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def641]
xwayland-24.1.9/include/regionstr.h:225:12: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidthFirst’
xwayland-24.1.9/mi/mibitblt.c:373:1: enter_function: entry to ‘miOpqStipDrawable’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:404:28: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:417:5: call_function: inlined call to ‘RegionCopy’ from ‘miOpqStipDrawable’
#  223|   RegionCopy(RegionPtr dst, RegionPtr src)
#  224|   {
#  225|->     return pixman_region_copy(dst, src);
#  226|   }
#  227|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def642]
xwayland-24.1.9/include/regionstr.h:241:12: warning[-Wanalyzer-malloc-leak]: leak of ‘pTmp’
xwayland-24.1.9/xfixes/region.c:764:1: enter_function: entry to ‘ProcXFixesExpandRegion’
xwayland-24.1.9/xfixes/region.c:774:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/region.c:775:5: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:775:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/region.c:776:5: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:776:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/region.c:778:14: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:778:14: call_function: inlined call to ‘RegionNumRects’ from ‘ProcXFixesExpandRegion’
xwayland-24.1.9/xfixes/region.c:779:12: call_function: inlined call to ‘RegionRects’ from ‘ProcXFixesExpandRegion’
xwayland-24.1.9/xfixes/region.c:780:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xfixes/region.c:781:16: branch_true: ...to here
xwayland-24.1.9/xfixes/region.c:781:16: acquire_memory: allocated here
xwayland-24.1.9/xfixes/region.c:782:12: branch_false: following ‘false’ branch (when ‘pTmp’ is non-NULL)...
xwayland-24.1.9/xfixes/region.c:782:12: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:784:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/xfixes/region.c:785:30: branch_true: ...to here
xwayland-24.1.9/xfixes/region.c:791:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/xfixes/region.c:794:33: branch_true: ...to here
xwayland-24.1.9/xfixes/region.c:795:13: call_function: inlined call to ‘RegionUnion’ from ‘ProcXFixesExpandRegion’
#  239|       )
#  240|   {
#  241|->     return pixman_region_union(newReg, reg1, reg2);
#  242|   }
#  243|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def643]
xwayland-24.1.9/include/regionstr.h:312:5: warning[-Wanalyzer-malloc-leak]: leak of ‘clipped_dest_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1022:1: enter_function: entry to ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1041:47: call_function: inlined call to ‘glamor_get_pixmap_private’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1061:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != source_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1065:8: branch_false: following ‘false’ branch (when ‘dest_pixmap != mask_pixmap’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1070:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1075:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1109:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1132:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:9: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1155:9: branch_false: following ‘false’ branch (when ‘fixed_block_height >= dest_block_height’)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1163:32: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1163:32: call_function: calling ‘glamor_compute_clipped_regions’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1163:32: return_function: returning to ‘glamor_composite_largepixmap_region’ from ‘glamor_compute_clipped_regions’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1168:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1178:5: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1178:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1178:5: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1180:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1185:52: branch_true: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1184:9: call_function: calling ‘glamor_set_pixmap_fbo_current’ from ‘glamor_composite_largepixmap_region’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1184:9: return_function: returning to ‘glamor_composite_largepixmap_region’ from ‘glamor_set_pixmap_fbo_current’
xwayland-24.1.9/glamor/glamor_largepixmap.c:1186:12: branch_false: following ‘false’ branch (when ‘source_pixmap_priv’ is NULL)...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1385:16: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1385:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/glamor/glamor_largepixmap.c:1448:53: branch_false: ...to here
xwayland-24.1.9/glamor/glamor_largepixmap.c:1447:17: call_function: inlined call to ‘RegionTranslate’ from ‘glamor_composite_largepixmap_region’
#  310|   RegionTranslate(RegionPtr pReg, int x, int y)
#  311|   {
#  312|->     pixman_region_translate(pReg, x, y);
#  313|   }
#  314|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def644]
xwayland-24.1.9/include/regionstr.h:312:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pptFirst’
xwayland-24.1.9/mi/mibitblt.c:373:1: enter_function: entry to ‘miOpqStipDrawable’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:403:22: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:418:5: call_function: inlined call to ‘RegionTranslate’ from ‘miOpqStipDrawable’
#  310|   RegionTranslate(RegionPtr pReg, int x, int y)
#  311|   {
#  312|->     pixman_region_translate(pReg, x, y);
#  313|   }
#  314|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def645]
xwayland-24.1.9/include/regionstr.h:312:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidthFirst’
xwayland-24.1.9/mi/mibitblt.c:373:1: enter_function: entry to ‘miOpqStipDrawable’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:404:28: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:418:5: call_function: inlined call to ‘RegionTranslate’ from ‘miOpqStipDrawable’
#  310|   RegionTranslate(RegionPtr pReg, int x, int y)
#  311|   {
#  312|->     pixman_region_translate(pReg, x, y);
#  313|   }
#  314|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def646]
xwayland-24.1.9/mi/mibitblt.c:317:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pOut’
xwayland-24.1.9/mi/mibitblt.c:295:8: branch_true: following ‘true’ branch (when ‘result’ is NULL)...
xwayland-24.1.9/mi/mibitblt.c:296:18: branch_true: ...to here
xwayland-24.1.9/mi/mibitblt.c:296:18: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:297:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
xwayland-24.1.9/mi/mibitblt.c:299:20: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:301:8: branch_true: following ‘true’ branch (when ‘bitsPerPixel == 1’)...
xwayland-24.1.9/mi/mibitblt.c:301:8: branch_true: ...to here
xwayland-24.1.9/mi/mibitblt.c:314:17: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/mibitblt.c:315:9: branch_true: ...to here
xwayland-24.1.9/mi/mibitblt.c:316:12: branch_true: following ‘true’ branch (when ‘bitsPerPixel == 1’)...
xwayland-24.1.9/mi/mibitblt.c:317:15: branch_true: ...to here
xwayland-24.1.9/mi/mibitblt.c:317:13: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mibitblt.c:317:13: danger: ‘pOut’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  315|           pt.x = sx;
#  316|           if (bitsPerPixel == 1) {
#  317|->             (*pDraw->pScreen->GetSpans) (pDraw, width, &pt, &width, 1,
#  318|                                            (char *) pCharsOut);
#  319|               pCharsOut += widthInBytes;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def647]
xwayland-24.1.9/mi/mibitblt.c:325:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pOut’
xwayland-24.1.9/mi/mibitblt.c:295:8: branch_true: following ‘true’ branch (when ‘result’ is NULL)...
xwayland-24.1.9/mi/mibitblt.c:296:18: branch_true: ...to here
xwayland-24.1.9/mi/mibitblt.c:296:18: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:297:8: branch_false: following ‘false’ branch (when ‘result’ is non-NULL)...
xwayland-24.1.9/mi/mibitblt.c:299:20: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:301:8: branch_false: following ‘false’ branch (when ‘bitsPerPixel != 1’)...
xwayland-24.1.9/mi/mibitblt.c:306:17: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:314:17: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/mibitblt.c:315:9: branch_true: ...to here
xwayland-24.1.9/mi/mibitblt.c:316:12: branch_false: following ‘false’ branch (when ‘bitsPerPixel != 1’)...
xwayland-24.1.9/mi/mibitblt.c:316:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:323:25: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/mi/mibitblt.c:325:19: branch_true: ...to here
xwayland-24.1.9/mi/mibitblt.c:325:17: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mibitblt.c:325:17: danger: ‘pOut’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  323|               for (j = w; --j >= 0; pt.x++) {
#  324|                   /* Fetch the next pixel */
#  325|->                 (*pDraw->pScreen->GetSpans) (pDraw, width, &pt, &width, 1,
#  326|                                                (char *) &pixel);
#  327|                   /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def648]
xwayland-24.1.9/mi/mibitblt.c:351:21: warning[-Wanalyzer-malloc-leak]: leak of ‘pOut’
xwayland-24.1.9/mi/mibitblt.c:515:1: enter_function: entry to ‘miCopyPlane’
xwayland-24.1.9/mi/mibitblt.c:564:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mibitblt.c:571:17: call_function: calling ‘miGetPlane’ from ‘miCopyPlane’
#  349|                   k++;
#  350|                   if (k == BITMAP_SCANLINE_UNIT) {
#  351|->                     pOut++;
#  352|                       k = 0;
#  353|                   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def649]
xwayland-24.1.9/mi/mibitblt.c:416:19: warning[-Wanalyzer-malloc-leak]: leak of ‘pptFirst’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:403:22: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:416:19: throw: if ‘RegionCreate’ throws an exception...
xwayland-24.1.9/mi/mibitblt.c:416:19: danger: ‘pptFirst’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  414|          have to free prgnSrcClip ourselves.
#  415|        */
#  416|->     prgnSrcClip = RegionCreate(NULL, 0);
#  417|       RegionCopy(prgnSrcClip, prgnSrc);
#  418|       RegionTranslate(prgnSrcClip, srcx, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def650]
xwayland-24.1.9/mi/mibitblt.c:416:19: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidthFirst’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:404:28: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:416:19: throw: if ‘RegionCreate’ throws an exception...
xwayland-24.1.9/mi/mibitblt.c:416:19: danger: ‘pwidthFirst’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  414|          have to free prgnSrcClip ourselves.
#  415|        */
#  416|->     prgnSrcClip = RegionCreate(NULL, 0);
#  417|       RegionCopy(prgnSrcClip, prgnSrc);
#  418|       RegionTranslate(prgnSrcClip, srcx, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def651]
xwayland-24.1.9/mi/mibitblt.c:419:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pptFirst’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:403:22: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:419:5: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mibitblt.c:419:5: danger: ‘pptFirst’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#  417|       RegionCopy(prgnSrcClip, prgnSrc);
#  418|       RegionTranslate(prgnSrcClip, srcx, 0);
#  419|->     (*pGCT->funcs->ChangeClip) (pGCT, CT_REGION, prgnSrcClip, 0);
#  420|       ValidateGC((DrawablePtr) pPixmap, pGCT);
#  421|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def652]
xwayland-24.1.9/mi/mibitblt.c:419:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidthFirst’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:404:28: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:419:5: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mibitblt.c:419:5: danger: ‘pwidthFirst’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
#  417|       RegionCopy(prgnSrcClip, prgnSrc);
#  418|       RegionTranslate(prgnSrcClip, srcx, 0);
#  419|->     (*pGCT->funcs->ChangeClip) (pGCT, CT_REGION, prgnSrcClip, 0);
#  420|       ValidateGC((DrawablePtr) pPixmap, pGCT);
#  421|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def653]
xwayland-24.1.9/mi/mibitblt.c:420:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pptFirst’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:403:22: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:420:5: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/mi/mibitblt.c:420:5: danger: ‘pptFirst’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
#  418|       RegionTranslate(prgnSrcClip, srcx, 0);
#  419|       (*pGCT->funcs->ChangeClip) (pGCT, CT_REGION, prgnSrcClip, 0);
#  420|->     ValidateGC((DrawablePtr) pPixmap, pGCT);
#  421|   
#  422|       /* Since we know pDraw is always a pixmap, we never need to think

Error: GCC_ANALYZER_WARNING (CWE-401): [#def654]
xwayland-24.1.9/mi/mibitblt.c:420:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidthFirst’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:404:28: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:420:5: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/mi/mibitblt.c:420:5: danger: ‘pwidthFirst’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
#  418|       RegionTranslate(prgnSrcClip, srcx, 0);
#  419|       (*pGCT->funcs->ChangeClip) (pGCT, CT_REGION, prgnSrcClip, 0);
#  420|->     ValidateGC((DrawablePtr) pPixmap, pGCT);
#  421|   
#  422|       /* Since we know pDraw is always a pixmap, we never need to think

Error: GCC_ANALYZER_WARNING (CWE-401): [#def655]
xwayland-24.1.9/mi/mibitblt.c:430:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pptFirst’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:403:22: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:430:5: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mibitblt.c:430:5: danger: ‘pptFirst’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
#  428|       }
#  429|   
#  430|->     (*pGCT->ops->SetSpans) ((DrawablePtr) pPixmap, pGCT, (char *) pbits,
#  431|                               pptFirst, pwidthFirst, h, TRUE);
#  432|       free(pwidthFirst);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def656]
xwayland-24.1.9/mi/mibitblt.c:430:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ppt’
xwayland-24.1.9/mi/mibitblt.c:515:1: enter_function: entry to ‘miCopyPlane’
xwayland-24.1.9/mi/mibitblt.c:564:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mibitblt.c:571:17: call_function: calling ‘miGetPlane’ from ‘miCopyPlane’
xwayland-24.1.9/mi/mibitblt.c:571:17: return_function: returning to ‘miCopyPlane’ from ‘miGetPlane’
xwayland-24.1.9/mi/mibitblt.c:574:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mibitblt.c:577:60: branch_true: ...to here
xwayland-24.1.9/mi/mibitblt.c:575:13: call_function: calling ‘miOpqStipDrawable’ from ‘miCopyPlane’
#  428|       }
#  429|   
#  430|->     (*pGCT->ops->SetSpans) ((DrawablePtr) pPixmap, pGCT, (char *) pbits,
#  431|                               pptFirst, pwidthFirst, h, TRUE);
#  432|       free(pwidthFirst);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def657]
xwayland-24.1.9/mi/mibitblt.c:430:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidthFirst’
xwayland-24.1.9/mi/mibitblt.c:389:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:393:12: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:394:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:399:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:404:28: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:416:19: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:430:5: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mibitblt.c:430:5: danger: ‘pwidthFirst’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
#  428|       }
#  429|   
#  430|->     (*pGCT->ops->SetSpans) ((DrawablePtr) pPixmap, pGCT, (char *) pbits,
#  431|                               pptFirst, pwidthFirst, h, TRUE);
#  432|       free(pwidthFirst);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def658]
xwayland-24.1.9/mi/mibitblt.c:430:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidth’
xwayland-24.1.9/mi/mibitblt.c:515:1: enter_function: entry to ‘miCopyPlane’
xwayland-24.1.9/mi/mibitblt.c:564:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mibitblt.c:571:17: call_function: calling ‘miGetPlane’ from ‘miCopyPlane’
xwayland-24.1.9/mi/mibitblt.c:571:17: return_function: returning to ‘miCopyPlane’ from ‘miGetPlane’
xwayland-24.1.9/mi/mibitblt.c:574:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mibitblt.c:577:60: branch_true: ...to here
xwayland-24.1.9/mi/mibitblt.c:575:13: call_function: calling ‘miOpqStipDrawable’ from ‘miCopyPlane’
#  428|       }
#  429|   
#  430|->     (*pGCT->ops->SetSpans) ((DrawablePtr) pPixmap, pGCT, (char *) pbits,
#  431|                               pptFirst, pwidthFirst, h, TRUE);
#  432|       free(pwidthFirst);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def659]
xwayland-24.1.9/mi/mibitblt.c:770:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pptFirst’
xwayland-24.1.9/mi/mibitblt.c:707:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:709:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:751:26: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:753:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:758:13: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:770:9: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mibitblt.c:770:9: danger: ‘pptFirst’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
#  768|           }
#  769|   
#  770|->         (*pGC->ops->SetSpans) (pDraw, pGC, (char *) pImage, pptFirst,
#  771|                                  pwidthFirst, h, TRUE);
#  772|           free(pwidthFirst);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def660]
xwayland-24.1.9/mi/mibitblt.c:770:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidthFirst’
xwayland-24.1.9/mi/mibitblt.c:707:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:709:5: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:752:32: acquire_memory: allocated here
xwayland-24.1.9/mi/mibitblt.c:753:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mibitblt.c:758:13: branch_false: ...to here
xwayland-24.1.9/mi/mibitblt.c:770:9: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mibitblt.c:770:9: danger: ‘pwidthFirst’ leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
#  768|           }
#  769|   
#  770|->         (*pGC->ops->SetSpans) (pDraw, pGC, (char *) pImage, pptFirst,
#  771|                                  pwidthFirst, h, TRUE);
#  772|           free(pwidthFirst);

Error: GCC_ANALYZER_WARNING (CWE-787): [#def661]
xwayland-24.1.9/mi/micmap.c:480:9: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xwayland-24.1.9/mi/micmap.c:424:1: enter_function: entry to ‘miInitVisuals’
xwayland-24.1.9/mi/micmap.c:442:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/micmap.c:442:8: branch_true: ...to here
xwayland-24.1.9/mi/micmap.c:443:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/micmap.c:444:17: branch_true: ...to here
xwayland-24.1.9/mi/micmap.c:446:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/micmap.c:447:25: branch_true: ...to here
xwayland-24.1.9/mi/micmap.c:450:18: call_function: calling ‘miSetVisualTypes’ from ‘miInitVisuals’
xwayland-24.1.9/mi/micmap.c:450:18: return_function: returning to ‘miInitVisuals’ from ‘miSetVisualTypes’
xwayland-24.1.9/mi/micmap.c:450:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/micmap.c:443:54: branch_false: ...to here
xwayland-24.1.9/mi/micmap.c:456:31: branch_true: following ‘true’ branch (when ‘visuals’ is non-NULL)...
xwayland-24.1.9/mi/micmap.c:457:9: branch_true: ...to here
xwayland-24.1.9/mi/micmap.c:456:31: branch_false: following ‘false’ branch (when ‘visuals’ is NULL)...
xwayland-24.1.9/mi/micmap.c:461:13: branch_false: ...to here
xwayland-24.1.9/mi/micmap.c:464:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/micmap.c:475:31: branch_true: following ‘true’ branch (when ‘visuals’ is non-NULL)...
xwayland-24.1.9/mi/micmap.c:476:9: branch_true: ...to here
xwayland-24.1.9/mi/micmap.c:483:12: branch_false: following ‘false’ branch (when ‘nvtype == 0’)...
xwayland-24.1.9/mi/micmap.c:492:9: branch_false: ...to here
xwayland-24.1.9/mi/micmap.c:496:21: branch_true: following ‘true’ branch (when ‘i != 6’)...
xwayland-24.1.9/mi/micmap.c:497:33: branch_true: ...to here
xwayland-24.1.9/mi/micmap.c:497:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/micmap.c:475:31: branch_true: following ‘true’ branch (when ‘visuals’ is non-NULL)...
xwayland-24.1.9/mi/micmap.c:476:9: branch_true: ...to here
xwayland-24.1.9/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-401): [#def662]
xwayland-24.1.9/mi/micmap.c:481:9: warning[-Wanalyzer-malloc-leak]: leak of ‘prefp’
xwayland-24.1.9/mi/micmap.c:456:31: branch_false: following ‘false’ branch (when ‘visuals’ is NULL)...
xwayland-24.1.9/mi/micmap.c:461:13: branch_false: ...to here
xwayland-24.1.9/mi/micmap.c:463:21: acquire_memory: allocated here
xwayland-24.1.9/mi/micmap.c:464:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/micmap.c:464:9: branch_false: ...to here
xwayland-24.1.9/mi/micmap.c:464:9: branch_false: following ‘false’ branch (when ‘preferredCVCs’ is non-NULL)...
xwayland-24.1.9/mi/micmap.c:470:5: branch_false: ...to here
xwayland-24.1.9/mi/micmap.c:475:31: branch_true: following ‘true’ branch (when ‘visuals’ is non-NULL)...
xwayland-24.1.9/mi/micmap.c:476:9: branch_true: ...to here
xwayland-24.1.9/mi/micmap.c:483:12: branch_false: following ‘false’ branch (when ‘nvtype == 0’)...
xwayland-24.1.9/mi/micmap.c:492:9: branch_false: ...to here
xwayland-24.1.9/mi/micmap.c:496:21: branch_true: following ‘true’ branch (when ‘i != 6’)...
xwayland-24.1.9/mi/micmap.c:497:33: branch_true: ...to here
xwayland-24.1.9/mi/micmap.c:497:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/micmap.c:499:13: branch_false: ...to here
xwayland-24.1.9/mi/micmap.c:503:34: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/mi/micmap.c:481:9: danger: ‘prefp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  479|           nvtype = visuals->count;
#  480|           *prefp = visuals->preferredCVC;
#  481|->         prefp++;
#  482|           vid = NULL;
#  483|           if (nvtype) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def663]
xwayland-24.1.9/mi/micopy.c:74:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pboxNew1’
xwayland-24.1.9/mi/micopy.c:35:1: enter_function: entry to ‘miCopyRegion’
xwayland-24.1.9/mi/micopy.c:49:12: call_function: inlined call to ‘RegionNumRects’ from ‘miCopyRegion’
xwayland-24.1.9/mi/micopy.c:60:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/micopy.c:63:12: branch_true: ...to here
xwayland-24.1.9/mi/micopy.c:63:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/micopy.c:65:24: branch_true: ...to here
xwayland-24.1.9/mi/micopy.c:65:24: acquire_memory: allocated here
xwayland-24.1.9/mi/micopy.c:66:16: branch_false: following ‘false’ branch (when ‘pboxNew1’ is non-NULL)...
xwayland-24.1.9/mi/micopy.c:66:16: branch_false: ...to here
xwayland-24.1.9/mi/micopy.c:69:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/micopy.c:69:20: branch_true: ...to here
xwayland-24.1.9/mi/micopy.c:87:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/micopy.c:121:5: branch_false: ...to here
xwayland-24.1.9/mi/micopy.c:121:5: throw: if the called function throws an exception...
xwayland-24.1.9/mi/micopy.c:74:22: danger: ‘pboxNew1’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#   72|                   pboxTmp = pboxNext + 1;
#   73|                   while (pboxTmp <= pboxBase) {
#   74|->                     *pboxNew1++ = *pboxTmp++;
#   75|                   }
#   76|                   pboxBase = pboxNext;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def664]
xwayland-24.1.9/mi/micopy.c:78:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pboxNew1’
xwayland-24.1.9/mi/micopy.c:35:1: enter_function: entry to ‘miCopyRegion’
xwayland-24.1.9/mi/micopy.c:49:12: call_function: inlined call to ‘RegionNumRects’ from ‘miCopyRegion’
xwayland-24.1.9/mi/micopy.c:60:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/micopy.c:63:12: branch_true: ...to here
xwayland-24.1.9/mi/micopy.c:63:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/micopy.c:65:24: branch_true: ...to here
xwayland-24.1.9/mi/micopy.c:65:24: acquire_memory: allocated here
xwayland-24.1.9/mi/micopy.c:66:16: branch_false: following ‘false’ branch (when ‘pboxNew1’ is non-NULL)...
xwayland-24.1.9/mi/micopy.c:66:16: branch_false: ...to here
xwayland-24.1.9/mi/micopy.c:87:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/micopy.c:121:5: branch_false: ...to here
xwayland-24.1.9/mi/micopy.c:121:5: throw: if the called function throws an exception...
xwayland-24.1.9/mi/micopy.c:78:13: danger: ‘pboxNew1’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#   76|                   pboxBase = pboxNext;
#   77|               }
#   78|->             pboxNew1 -= nbox;
#   79|               pbox = pboxNew1;
#   80|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def665]
xwayland-24.1.9/mi/micopy.c:112:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pboxNew2’
xwayland-24.1.9/mi/micopy.c:35:1: enter_function: entry to ‘miCopyRegion’
xwayland-24.1.9/mi/micopy.c:49:12: call_function: inlined call to ‘RegionNumRects’ from ‘miCopyRegion’
xwayland-24.1.9/mi/micopy.c:87:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/micopy.c:89:12: branch_true: ...to here
xwayland-24.1.9/mi/micopy.c:94:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/micopy.c:96:24: branch_true: ...to here
xwayland-24.1.9/mi/micopy.c:96:24: acquire_memory: allocated here
xwayland-24.1.9/mi/micopy.c:97:16: branch_false: following ‘false’ branch (when ‘pboxNew2’ is non-NULL)...
xwayland-24.1.9/mi/micopy.c:97:16: branch_false: ...to here
xwayland-24.1.9/mi/micopy.c:112:13: danger: ‘pboxNew2’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  110|                   pboxBase = pboxNext;
#  111|               }
#  112|->             pboxNew2 -= nbox;
#  113|               pbox = pboxNew2;
#  114|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def666]
xwayland-24.1.9/mi/mieq.c:141:33: warning[-Wanalyzer-malloc-leak]: leak of ‘new_events’
xwayland-24.1.9/mi/mieq.c:108:1: enter_function: entry to ‘mieqGrowQueue’
xwayland-24.1.9/mi/mieq.c:113:8: branch_false: following ‘false’ branch (when ‘eventQueue’ is non-NULL)...
xwayland-24.1.9/mi/mieq.c:118:24: branch_false: ...to here
xwayland-24.1.9/mi/mieq.c:118:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mieq.c:121:18: branch_false: ...to here
xwayland-24.1.9/mi/mieq.c:121:18: acquire_memory: allocated here
xwayland-24.1.9/mi/mieq.c:122:8: branch_false: following ‘false’ branch (when ‘new_events’ is non-NULL)...
xwayland-24.1.9/mi/mieq.c:127:18: call_function: inlined call to ‘mieqNumEnqueued’ from ‘mieqGrowQueue’
xwayland-24.1.9/mi/mieq.c:131:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mieq.c:140:5: branch_false: ...to here
xwayland-24.1.9/mi/mieq.c:140:35: branch_true: following ‘true’ branch (when ‘i < new_nevents’)...
xwayland-24.1.9/mi/mieq.c:141:33: branch_true: ...to here
xwayland-24.1.9/mi/mieq.c:141:33: throw: if ‘InitEventList’ throws an exception...
xwayland-24.1.9/mi/mieq.c:141:33: danger: ‘new_events’ leaks here; was allocated at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
#  139|       /* Initialize the new portion */
#  140|       for (i = eventQueue->nevents; i < new_nevents; i++) {
#  141|->         InternalEvent *evlist = InitEventList(1);
#  142|   
#  143|           if (!evlist) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
xwayland-24.1.9/mi/mieq.c:147:17: warning[-Wanalyzer-malloc-leak]: leak of ‘new_events’
xwayland-24.1.9/mi/mieq.c:108:1: enter_function: entry to ‘mieqGrowQueue’
xwayland-24.1.9/mi/mieq.c:113:8: branch_false: following ‘false’ branch (when ‘eventQueue’ is non-NULL)...
xwayland-24.1.9/mi/mieq.c:118:24: branch_false: ...to here
xwayland-24.1.9/mi/mieq.c:118:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mieq.c:121:18: branch_false: ...to here
xwayland-24.1.9/mi/mieq.c:121:18: acquire_memory: allocated here
xwayland-24.1.9/mi/mieq.c:122:8: branch_false: following ‘false’ branch (when ‘new_events’ is non-NULL)...
xwayland-24.1.9/mi/mieq.c:127:18: call_function: inlined call to ‘mieqNumEnqueued’ from ‘mieqGrowQueue’
xwayland-24.1.9/mi/mieq.c:131:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mieq.c:140:5: branch_false: ...to here
xwayland-24.1.9/mi/mieq.c:140:35: branch_true: following ‘true’ branch (when ‘i < new_nevents’)...
xwayland-24.1.9/mi/mieq.c:141:33: branch_true: ...to here
xwayland-24.1.9/mi/mieq.c:143:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mieq.c:143:12: branch_true: ...to here
xwayland-24.1.9/mi/mieq.c:146:25: branch_true: following ‘true’ branch (when ‘i > j’)...
xwayland-24.1.9/mi/mieq.c:147:41: branch_true: ...to here
xwayland-24.1.9/mi/mieq.c:147:17: throw: if ‘FreeEventList’ throws an exception...
xwayland-24.1.9/mi/mieq.c:147:17: danger: ‘new_events’ leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
#  145|   
#  146|               for (j = 0; j < i; j++)
#  147|->                 FreeEventList(new_events[j].events, 1);
#  148|               free(new_events);
#  149|               return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def668]
xwayland-24.1.9/mi/miexpose.c:341:19: warning[-Wanalyzer-malloc-leak]: leak of ‘pEvent’
xwayland-24.1.9/mi/miexpose.c:304:1: enter_function: entry to ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:312:16: call_function: inlined call to ‘RegionNumRects’ from ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:313:20: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:313:20: acquire_memory: allocated here
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: following ‘false’ branch (when ‘pEvent’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:316:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:317:9: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:316:37: branch_false: following ‘false’ branch (when ‘i < 0’)...
xwayland-24.1.9/mi/miexpose.c:327:9: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:327:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/miexpose.c:328:26: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:332:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:338:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:338:17: branch_true: following ‘true’ branch (when ‘scrnum != 0’)...
xwayland-24.1.9/mi/miexpose.c:341:19: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:341:19: throw: if ‘PanoramiXFindIDByScrnum’ throws an exception...
xwayland-24.1.9/mi/miexpose.c:341:19: danger: ‘pEvent’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  339|               PanoramiXRes *win;
#  340|   
#  341|->             win = PanoramiXFindIDByScrnum(XRT_WINDOW,
#  342|                                             pWin->drawable.id, scrnum);
#  343|               if (!win) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def669]
xwayland-24.1.9/mi/miexpose.c:341:19: warning[-Wanalyzer-malloc-leak]: leak of ‘pe’
xwayland-24.1.9/mi/miexpose.c:304:1: enter_function: entry to ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:312:16: call_function: inlined call to ‘RegionNumRects’ from ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:313:20: acquire_memory: allocated here
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: following ‘false’ branch (when ‘pEvent’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:316:37: branch_false: following ‘false’ branch (when ‘i < 0’)...
xwayland-24.1.9/mi/miexpose.c:327:9: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:327:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/miexpose.c:328:26: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:332:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:338:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:338:17: branch_true: following ‘true’ branch (when ‘scrnum != 0’)...
xwayland-24.1.9/mi/miexpose.c:341:19: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:341:19: throw: if ‘PanoramiXFindIDByScrnum’ throws an exception...
xwayland-24.1.9/mi/miexpose.c:341:19: danger: ‘pe’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  339|               PanoramiXRes *win;
#  340|   
#  341|->             win = PanoramiXFindIDByScrnum(XRT_WINDOW,
#  342|                                             pWin->drawable.id, scrnum);
#  343|               if (!win) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def670]
xwayland-24.1.9/mi/miexpose.c:348:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pEvent’
xwayland-24.1.9/mi/miexpose.c:304:1: enter_function: entry to ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:312:16: call_function: inlined call to ‘RegionNumRects’ from ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:313:20: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:313:20: acquire_memory: allocated here
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: following ‘false’ branch (when ‘pEvent’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:316:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:317:9: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:316:37: branch_false: following ‘false’ branch (when ‘i < 0’)...
xwayland-24.1.9/mi/miexpose.c:327:9: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:327:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/miexpose.c:328:26: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:332:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:338:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:338:17: branch_true: following ‘true’ branch (when ‘scrnum != 0’)...
xwayland-24.1.9/mi/miexpose.c:341:19: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:343:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:347:13: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:348:13: throw: if ‘dixLookupWindow’ throws an exception...
xwayland-24.1.9/mi/miexpose.c:348:13: danger: ‘pEvent’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  346|               }
#  347|               realWin = win->info[0].id;
#  348|->             dixLookupWindow(&pWin, realWin, serverClient, DixSendAccess);
#  349|           }
#  350|           if (x || y || scrnum)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def671]
xwayland-24.1.9/mi/miexpose.c:348:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pe’
xwayland-24.1.9/mi/miexpose.c:304:1: enter_function: entry to ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:312:16: call_function: inlined call to ‘RegionNumRects’ from ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:313:20: acquire_memory: allocated here
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: following ‘false’ branch (when ‘pEvent’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:316:37: branch_false: following ‘false’ branch (when ‘i < 0’)...
xwayland-24.1.9/mi/miexpose.c:327:9: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:327:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/miexpose.c:328:26: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:332:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:338:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:338:17: branch_true: following ‘true’ branch (when ‘scrnum != 0’)...
xwayland-24.1.9/mi/miexpose.c:341:19: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:343:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:347:13: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:348:13: throw: if ‘dixLookupWindow’ throws an exception...
xwayland-24.1.9/mi/miexpose.c:348:13: danger: ‘pe’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  346|               }
#  347|               realWin = win->info[0].id;
#  348|->             dixLookupWindow(&pWin, realWin, serverClient, DixSendAccess);
#  349|           }
#  350|           if (x || y || scrnum)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def672]
xwayland-24.1.9/mi/miexpose.c:359:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pEvent’
xwayland-24.1.9/mi/miexpose.c:304:1: enter_function: entry to ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:312:16: call_function: inlined call to ‘RegionNumRects’ from ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:313:20: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:313:20: acquire_memory: allocated here
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: following ‘false’ branch (when ‘pEvent’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:316:37: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:317:9: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:316:37: branch_false: following ‘false’ branch (when ‘i < 0’)...
xwayland-24.1.9/mi/miexpose.c:327:9: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:359:5: throw: if ‘DeliverEvents’ throws an exception...
xwayland-24.1.9/mi/miexpose.c:359:5: danger: ‘pEvent’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  357|   #endif
#  358|   
#  359|->     DeliverEvents(pWin, pEvent, numRects, NullWindow);
#  360|   
#  361|       free(pEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def673]
xwayland-24.1.9/mi/miexpose.c:359:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pe’
xwayland-24.1.9/mi/miexpose.c:304:1: enter_function: entry to ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:312:16: call_function: inlined call to ‘RegionNumRects’ from ‘miSendExposures’
xwayland-24.1.9/mi/miexpose.c:313:20: acquire_memory: allocated here
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: following ‘false’ branch (when ‘pEvent’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:313:8: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:316:37: branch_false: following ‘false’ branch (when ‘i < 0’)...
xwayland-24.1.9/mi/miexpose.c:327:9: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:359:5: throw: if ‘DeliverEvents’ throws an exception...
xwayland-24.1.9/mi/miexpose.c:359:5: danger: ‘pe’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  357|   #endif
#  358|   
#  359|->     DeliverEvents(pWin, pEvent, numRects, NullWindow);
#  360|   
#  361|       free(pEvent);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def674]
xwayland-24.1.9/mi/miexpose.c:542:11: warning[-Wanalyzer-malloc-leak]: leak of ‘prect’
xwayland-24.1.9/mi/miexpose.c:398:1: enter_function: entry to ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: following ‘true’ branch (when ‘what == 0’)...
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:438:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:441:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:535:22: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:538:13: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:538:13: acquire_memory: allocated here
xwayland-24.1.9/mi/miexpose.c:539:8: branch_false: following ‘false’ branch (when ‘prect’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:542:11: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:542:11: throw: if ‘GetScratchGC’ throws an exception...
xwayland-24.1.9/mi/miexpose.c:542:11: danger: ‘prect’ leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
#  540|           return;
#  541|   
#  542|->     pGC = GetScratchGC(drawable->depth, drawable->pScreen);
#  543|       if (!pGC) {
#  544|           free(prect);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def675]
xwayland-24.1.9/mi/miexpose.c:548:5: warning[-Wanalyzer-malloc-leak]: leak of ‘prect’
xwayland-24.1.9/mi/miexpose.c:398:1: enter_function: entry to ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: following ‘true’ branch (when ‘what == 0’)...
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:438:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:441:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:535:22: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:538:13: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:538:13: acquire_memory: allocated here
xwayland-24.1.9/mi/miexpose.c:539:8: branch_false: following ‘false’ branch (when ‘prect’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:542:11: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:543:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:548:5: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:548:5: throw: if ‘ChangeGC’ throws an exception...
xwayland-24.1.9/mi/miexpose.c:548:5: danger: ‘prect’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
#  546|       }
#  547|   
#  548|->     ChangeGC(NullClient, pGC, gcmask, gcval);
#  549|       ValidateGC(drawable, pGC);
#  550|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def676]
xwayland-24.1.9/mi/miexpose.c:549:5: warning[-Wanalyzer-malloc-leak]: leak of ‘prect’
xwayland-24.1.9/mi/miexpose.c:398:1: enter_function: entry to ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: following ‘true’ branch (when ‘what == 0’)...
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:438:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:441:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:535:22: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:538:13: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:538:13: acquire_memory: allocated here
xwayland-24.1.9/mi/miexpose.c:539:8: branch_false: following ‘false’ branch (when ‘prect’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:542:11: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:543:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:548:5: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:549:5: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/mi/miexpose.c:549:5: danger: ‘prect’ leaks here; was allocated at [(9)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/8)
#  547|   
#  548|       ChangeGC(NullClient, pGC, gcmask, gcval);
#  549|->     ValidateGC(drawable, pGC);
#  550|   
#  551|       numRects = RegionNumRects(prgn);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def677]
xwayland-24.1.9/mi/miexpose.c:553:42: warning[-Wanalyzer-malloc-leak]: leak of ‘prect’
xwayland-24.1.9/mi/miexpose.c:398:1: enter_function: entry to ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: following ‘true’ branch (when ‘what == 0’)...
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:438:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:441:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:535:22: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:538:13: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:538:13: acquire_memory: allocated here
xwayland-24.1.9/mi/miexpose.c:539:8: branch_false: following ‘false’ branch (when ‘prect’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:542:11: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:543:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:548:5: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:551:16: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:552:12: call_function: inlined call to ‘RegionRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:553:24: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:554:20: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:553:24: branch_false: following ‘false’ branch (when ‘i < 0’)...
xwayland-24.1.9/mi/miexpose.c:559:11: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:560:5: throw: if the called function throws an exception...
xwayland-24.1.9/mi/miexpose.c:553:42: danger: ‘prect’ leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
#  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-787): [#def678]
xwayland-24.1.9/mi/miexpose.c:554:9: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xwayland-24.1.9/mi/miexpose.c:398:1: enter_function: entry to ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: following ‘true’ branch (when ‘what == 0’)...
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:438:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:441:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:535:22: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:538:13: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:539:8: branch_false: following ‘false’ branch (when ‘prect’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:542:11: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:543:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:548:5: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:551:16: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:552:12: call_function: inlined call to ‘RegionRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:553:24: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:554:20: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:553:24: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:554:20: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:554:9: danger: write of 2 bytes at offset ‘8’ exceeds ‘*prect’
#  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;
#  556|           prect->width = pbox->x2 - pbox->x1;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def679]
xwayland-24.1.9/mi/miexpose.c:555:9: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xwayland-24.1.9/mi/miexpose.c:398:1: enter_function: entry to ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: following ‘true’ branch (when ‘what == 0’)...
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:438:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:441:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:535:22: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:538:13: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:539:8: branch_false: following ‘false’ branch (when ‘prect’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:542:11: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:543:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:548:5: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:551:16: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:552:12: call_function: inlined call to ‘RegionRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:553:24: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:554:20: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:553:24: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:554:20: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:555:9: danger: write of 2 bytes at offset ‘10’ exceeds ‘*prect’
#  553|       for (i = numRects; --i >= 0; pbox++, prect++) {
#  554|           prect->x = pbox->x1 - draw_x_off;
#  555|->         prect->y = pbox->y1 - draw_y_off;
#  556|           prect->width = pbox->x2 - pbox->x1;
#  557|           prect->height = pbox->y2 - pbox->y1;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def680]
xwayland-24.1.9/mi/miexpose.c:556:9: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xwayland-24.1.9/mi/miexpose.c:398:1: enter_function: entry to ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: following ‘true’ branch (when ‘what == 0’)...
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:438:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:441:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:535:22: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:538:13: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:539:8: branch_false: following ‘false’ branch (when ‘prect’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:542:11: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:543:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:548:5: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:551:16: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:552:12: call_function: inlined call to ‘RegionRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:553:24: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:554:20: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:553:24: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:554:20: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:556:9: danger: write of 2 bytes at offset ‘12’ exceeds ‘*prect’
#  554|           prect->x = pbox->x1 - draw_x_off;
#  555|           prect->y = pbox->y1 - draw_y_off;
#  556|->         prect->width = pbox->x2 - pbox->x1;
#  557|           prect->height = pbox->y2 - pbox->y1;
#  558|       }

Error: GCC_ANALYZER_WARNING (CWE-787): [#def681]
xwayland-24.1.9/mi/miexpose.c:557:9: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xwayland-24.1.9/mi/miexpose.c:398:1: enter_function: entry to ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: following ‘true’ branch (when ‘what == 0’)...
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:438:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:441:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:535:22: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:538:13: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:539:8: branch_false: following ‘false’ branch (when ‘prect’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:542:11: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:543:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:548:5: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:551:16: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:552:12: call_function: inlined call to ‘RegionRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:553:24: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:554:20: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:553:24: branch_true: following ‘true’ branch (when ‘i >= 0’)...
xwayland-24.1.9/mi/miexpose.c:554:20: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:557:9: danger: write of 2 bytes at offset ‘14’ exceeds ‘*prect’
#  555|           prect->y = pbox->y1 - draw_y_off;
#  556|           prect->width = pbox->x2 - pbox->x1;
#  557|->         prect->height = pbox->y2 - pbox->y1;
#  558|       }
#  559|       prect -= numRects;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def682]
xwayland-24.1.9/mi/miexpose.c:559:5: warning[-Wanalyzer-malloc-leak]: leak of ‘prect’
xwayland-24.1.9/mi/miexpose.c:398:1: enter_function: entry to ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: following ‘true’ branch (when ‘what == 0’)...
xwayland-24.1.9/mi/miexpose.c:427:8: branch_true: ...to here
xwayland-24.1.9/mi/miexpose.c:438:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:441:17: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:535:22: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:538:13: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:538:13: acquire_memory: allocated here
xwayland-24.1.9/mi/miexpose.c:539:8: branch_false: following ‘false’ branch (when ‘prect’ is non-NULL)...
xwayland-24.1.9/mi/miexpose.c:542:11: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:543:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miexpose.c:548:5: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:551:16: call_function: inlined call to ‘RegionNumRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:552:12: call_function: inlined call to ‘RegionRects’ from ‘miPaintWindow’
xwayland-24.1.9/mi/miexpose.c:553:24: branch_false: following ‘false’ branch (when ‘i < 0’)...
xwayland-24.1.9/mi/miexpose.c:559:11: branch_false: ...to here
xwayland-24.1.9/mi/miexpose.c:560:5: throw: if the called function throws an exception...
xwayland-24.1.9/mi/miexpose.c:559:5: danger: ‘prect’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
#  557|           prect->height = pbox->y2 - pbox->y1;
#  558|       }
#  559|->     prect -= numRects;
#  560|       (*pGC->ops->PolyFillRect) (drawable, pGC, numRects, prect);
#  561|       free(prect);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def683]
xwayland-24.1.9/mi/mifillrct.c:126:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ppt’
xwayland-24.1.9/mi/mifillrct.c:103:16: acquire_memory: allocated here
xwayland-24.1.9/mi/mifillrct.c:105:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mifillrct.c:105:8: branch_false: ...to here
xwayland-24.1.9/mi/mifillrct.c:112:12: branch_true: following ‘true’ branch (when ‘nrectFill != 0’)...
xwayland-24.1.9/mi/mifillrct.c:115:18: branch_true: ...to here
xwayland-24.1.9/mi/mifillrct.c:119:16: branch_false: following ‘false’ branch (when ‘height == 0’)...
xwayland-24.1.9/mi/mifillrct.c:126:11: branch_false: ...to here
xwayland-24.1.9/mi/mifillrct.c:126:9: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mifillrct.c:126:9: danger: ‘ppt’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  124|               yorg++;
#  125|           }
#  126|->         (*pGC->ops->FillSpans) (pDrawable, pGC,
#  127|                                   prect->height, pptFirst, pwFirst, 1);
#  128|           prect++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def684]
xwayland-24.1.9/mi/mifillrct.c:126:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pw’
xwayland-24.1.9/mi/mifillrct.c:104:15: acquire_memory: allocated here
xwayland-24.1.9/mi/mifillrct.c:105:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mifillrct.c:105:8: branch_false: ...to here
xwayland-24.1.9/mi/mifillrct.c:112:12: branch_true: following ‘true’ branch (when ‘nrectFill != 0’)...
xwayland-24.1.9/mi/mifillrct.c:115:18: branch_true: ...to here
xwayland-24.1.9/mi/mifillrct.c:119:16: branch_false: following ‘false’ branch (when ‘height == 0’)...
xwayland-24.1.9/mi/mifillrct.c:126:11: branch_false: ...to here
xwayland-24.1.9/mi/mifillrct.c:126:9: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mifillrct.c:126:9: danger: ‘pw’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  124|               yorg++;
#  125|           }
#  126|->         (*pGC->ops->FillSpans) (pDrawable, pGC,
#  127|                                   prect->height, pptFirst, pwFirst, 1);
#  128|           prect++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def685]
xwayland-24.1.9/mi/miglblt.c:166:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/mi/miglblt.c:118:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:121:14: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:122:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:127:5: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:135:13: acquire_memory: allocated here
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:141:12: branch_true: following ‘true’ branch (when ‘nglyph != 0’)...
xwayland-24.1.9/mi/miglblt.c:142:16: branch_true: ...to here
xwayland-24.1.9/mi/miglblt.c:146:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/miglblt.c:147:29: branch_true: ...to here
xwayland-24.1.9/mi/miglblt.c:150:16: branch_true: following ‘true’ branch (when ‘nbyGlyphWidth == nbyPadGlyph’)...
xwayland-24.1.9/mi/miglblt.c:165:17: branch_true: ...to here
xwayland-24.1.9/mi/miglblt.c:165:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/miglblt.c:166:17: branch_true: ...to here
xwayland-24.1.9/mi/miglblt.c:166:17: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/mi/miglblt.c:166:17: danger: ‘pbits’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  164|   
#  165|               if ((pGCtmp->serialNumber) != (pPixmap->drawable.serialNumber))
#  166|->                 ValidateGC((DrawablePtr) pPixmap, pGCtmp);
#  167|               (*pGCtmp->ops->PutImage) ((DrawablePtr) pPixmap, pGCtmp,
#  168|                                         pPixmap->drawable.depth,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def686]
xwayland-24.1.9/mi/miglblt.c:166:17: warning[-Wanalyzer-malloc-leak]: leak of ‘pb’
xwayland-24.1.9/mi/miglblt.c:118:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:121:14: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:122:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:127:5: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:135:13: acquire_memory: allocated here
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:141:12: branch_true: following ‘true’ branch (when ‘nglyph != 0’)...
xwayland-24.1.9/mi/miglblt.c:142:16: branch_true: ...to here
xwayland-24.1.9/mi/miglblt.c:165:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/miglblt.c:166:17: branch_true: ...to here
xwayland-24.1.9/mi/miglblt.c:166:17: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/mi/miglblt.c:166:17: danger: ‘pb’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  164|   
#  165|               if ((pGCtmp->serialNumber) != (pPixmap->drawable.serialNumber))
#  166|->                 ValidateGC((DrawablePtr) pPixmap, pGCtmp);
#  167|               (*pGCtmp->ops->PutImage) ((DrawablePtr) pPixmap, pGCtmp,
#  168|                                         pPixmap->drawable.depth,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def687]
xwayland-24.1.9/mi/miglblt.c:167:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/mi/miglblt.c:118:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:121:14: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:122:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:127:5: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:135:13: acquire_memory: allocated here
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:141:12: branch_true: following ‘true’ branch (when ‘nglyph != 0’)...
xwayland-24.1.9/mi/miglblt.c:142:16: branch_true: ...to here
xwayland-24.1.9/mi/miglblt.c:150:16: branch_true: following ‘true’ branch (when ‘nbyGlyphWidth == nbyPadGlyph’)...
xwayland-24.1.9/mi/miglblt.c:165:17: branch_true: ...to here
xwayland-24.1.9/mi/miglblt.c:167:13: throw: if the called function throws an exception...
xwayland-24.1.9/mi/miglblt.c:167:13: danger: ‘pbits’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  165|               if ((pGCtmp->serialNumber) != (pPixmap->drawable.serialNumber))
#  166|                   ValidateGC((DrawablePtr) pPixmap, pGCtmp);
#  167|->             (*pGCtmp->ops->PutImage) ((DrawablePtr) pPixmap, pGCtmp,
#  168|                                         pPixmap->drawable.depth,
#  169|                                         0, 0, gWidth, gHeight,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def688]
xwayland-24.1.9/mi/miglblt.c:167:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pb’
xwayland-24.1.9/mi/miglblt.c:118:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:121:14: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:122:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:127:5: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:135:13: acquire_memory: allocated here
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:141:12: branch_true: following ‘true’ branch (when ‘nglyph != 0’)...
xwayland-24.1.9/mi/miglblt.c:142:16: branch_true: ...to here
xwayland-24.1.9/mi/miglblt.c:167:13: throw: if the called function throws an exception...
xwayland-24.1.9/mi/miglblt.c:167:13: danger: ‘pb’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  165|               if ((pGCtmp->serialNumber) != (pPixmap->drawable.serialNumber))
#  166|                   ValidateGC((DrawablePtr) pPixmap, pGCtmp);
#  167|->             (*pGCtmp->ops->PutImage) ((DrawablePtr) pPixmap, pGCtmp,
#  168|                                         pPixmap->drawable.depth,
#  169|                                         0, 0, gWidth, gHeight,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def689]
xwayland-24.1.9/mi/miglblt.c:172:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/mi/miglblt.c:118:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:121:14: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:122:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:127:5: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:135:13: acquire_memory: allocated here
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:141:12: branch_true: following ‘true’ branch (when ‘nglyph != 0’)...
xwayland-24.1.9/mi/miglblt.c:142:16: branch_true: ...to here
xwayland-24.1.9/mi/miglblt.c:150:16: branch_true: following ‘true’ branch (when ‘nbyGlyphWidth == nbyPadGlyph’)...
xwayland-24.1.9/mi/miglblt.c:165:17: branch_true: ...to here
xwayland-24.1.9/mi/miglblt.c:172:13: throw: if the called function throws an exception...
xwayland-24.1.9/mi/miglblt.c:172:13: danger: ‘pbits’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  170|                                         0, XYBitmap, (char *) pb);
#  171|   
#  172|->             (*pGC->ops->PushPixels) (pGC, pPixmap, pDrawable,
#  173|                                        gWidth, gHeight,
#  174|                                        x + pci->metrics.leftSideBearing,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def690]
xwayland-24.1.9/mi/miglblt.c:179:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pbits’
xwayland-24.1.9/mi/miglblt.c:118:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:121:14: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:122:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miglblt.c:127:5: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:135:13: acquire_memory: allocated here
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: following ‘false’ branch (when ‘pbits’ is non-NULL)...
xwayland-24.1.9/mi/miglblt.c:136:8: branch_false: ...to here
xwayland-24.1.9/mi/miglblt.c:179:5: throw: if the called function throws an exception...
xwayland-24.1.9/mi/miglblt.c:179:5: danger: ‘pbits’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
#  177|           x += pci->metrics.characterWidth;
#  178|       }
#  179|->     (*pDrawable->pScreen->DestroyPixmap) (pPixmap);
#  180|       free(pbits);
#  181|       FreeScratchGC(pGCtmp);

Error: GCC_ANALYZER_WARNING (CWE-416): [#def691]
xwayland-24.1.9/mi/miinitext.c:256:13: warning[-Wanalyzer-use-after-free]: use after ‘reallocarray’ of ‘ext’
xwayland-24.1.9/mi/miinitext.c:247:1: enter_function: entry to ‘InitExtensions’
xwayland-24.1.9/mi/miinitext.c:252:5: call_function: inlined call to ‘AddStaticExtensions’ from ‘InitExtensions’
xwayland-24.1.9/mi/miinitext.c:252:5: call_function: inlined call to ‘AddStaticExtensions’ from ‘InitExtensions’
xwayland-24.1.9/mi/miinitext.c:254:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/miinitext.c:255:15: branch_true: ...to here
xwayland-24.1.9/mi/miinitext.c:256:13: danger: use after ‘reallocarray’ of ‘ext’; deallocated at [(16)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/15)
#  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): [#def692]
xwayland-24.1.9/mi/miinitext.c:277:27: warning[-Wanalyzer-double-free]: double-‘reallocarray’ of ‘save’
xwayland-24.1.9/mi/miinitext.c:290:1: enter_function: entry to ‘LoadExtensionList’
xwayland-24.1.9/mi/miinitext.c:297:5: call_function: calling ‘AddStaticExtensions’ from ‘LoadExtensionList’
xwayland-24.1.9/mi/miinitext.c:297:5: return_function: returning to ‘LoadExtensionList’ from ‘AddStaticExtensions’
xwayland-24.1.9/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-401): [#def693]
xwayland-24.1.9/mi/mipointer.c:341:10: warning[-Wanalyzer-malloc-leak]: leak of ‘pPointer’
xwayland-24.1.9/mi/mipointer.c:318:1: enter_function: entry to ‘miPointerDeviceInitialize’
xwayland-24.1.9/mi/mipointer.c:322:5: call_function: calling ‘dixLookupPrivate’ from ‘miPointerDeviceInitialize’
xwayland-24.1.9/mi/mipointer.c:322:5: return_function: returning to ‘miPointerDeviceInitialize’ from ‘dixLookupPrivate’
xwayland-24.1.9/mi/mipointer.c:324:16: acquire_memory: allocated here
xwayland-24.1.9/mi/mipointer.c:325:8: branch_false: following ‘false’ branch (when ‘pPointer’ is non-NULL)...
xwayland-24.1.9/mi/mipointer.c:328:5: branch_false: ...to here
xwayland-24.1.9/mi/mipointer.c:341:10: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mipointer.c:341:10: danger: ‘pPointer’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  339|       pPointer->generateEvent = FALSE;
#  340|   
#  341|->     if (!((*pScreenPriv->spriteFuncs->DeviceCursorInitialize) (pDev, pScreen))) {
#  342|           free(pPointer);
#  343|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def694]
xwayland-24.1.9/mi/mipoly.c:330:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pETEchase’
xwayland-24.1.9/mi/mipoly.c:677:1: enter_function: entry to ‘miFillPolygon’
xwayland-24.1.9/mi/mipoly.c:684:8: branch_false: following ‘false’ branch (when ‘count != 0’)...
xwayland-24.1.9/mi/mipoly.c:688:9: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:709:12: branch_false: following ‘false’ branch (when ‘mode != 1’)...
xwayland-24.1.9/mi/mipoly.c:718:8: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:718:8: branch_false: following ‘false’ branch (when ‘shape != 2’)...
xwayland-24.1.9/mi/mipoly.c:721:9: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:721:9: call_function: calling ‘miFillGeneralPoly’ from ‘miFillPolygon’
#  328|           pETEinsert = AET;
#  329|           pETEchase = AET;
#  330|->         while (pETEchase->back->bres.minor > AET->bres.minor)
#  331|               pETEchase = pETEchase->back;
#  332|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def695]
xwayland-24.1.9/mi/mipoly.c:340:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/mi/mipoly.c:677:1: enter_function: entry to ‘miFillPolygon’
xwayland-24.1.9/mi/mipoly.c:684:8: branch_false: following ‘false’ branch (when ‘count != 0’)...
xwayland-24.1.9/mi/mipoly.c:688:9: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:709:12: branch_false: following ‘false’ branch (when ‘mode != 1’)...
xwayland-24.1.9/mi/mipoly.c:718:8: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:718:8: branch_false: following ‘false’ branch (when ‘shape != 2’)...
xwayland-24.1.9/mi/mipoly.c:721:9: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:721:9: call_function: calling ‘miFillGeneralPoly’ from ‘miFillPolygon’
#  338|                   AET->back = pETEinsert->back;
#  339|               pETEinsert->next = pETEchase;
#  340|->             pETEchase->back->next = pETEinsert;
#  341|               pETEchase->back = pETEinsert;
#  342|               pETEinsert->back = pETEchaseBackTMP;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def696]
xwayland-24.1.9/mi/mipoly.c:593:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pAET’
xwayland-24.1.9/mi/mipoly.c:677:1: enter_function: entry to ‘miFillPolygon’
xwayland-24.1.9/mi/mipoly.c:684:8: branch_false: following ‘false’ branch (when ‘count != 0’)...
xwayland-24.1.9/mi/mipoly.c:688:9: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:709:12: branch_false: following ‘false’ branch (when ‘mode != 1’)...
xwayland-24.1.9/mi/mipoly.c:718:8: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:718:8: branch_false: following ‘false’ branch (when ‘shape != 2’)...
xwayland-24.1.9/mi/mipoly.c:721:9: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:721:9: call_function: calling ‘miFillGeneralPoly’ from ‘miFillPolygon’
#  591|                   }
#  592|                   EVALUATEEDGEEVENODD(pAET, pPrevAET, y);
#  593|->                 EVALUATEEDGEEVENODD(pAET, pPrevAET, y);
#  594|               }
#  595|               miInsertionSort(&AET);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def697]
xwayland-24.1.9/mi/mipoly.c:646:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pWETE’
xwayland-24.1.9/mi/mipoly.c:677:1: enter_function: entry to ‘miFillPolygon’
xwayland-24.1.9/mi/mipoly.c:684:8: branch_false: following ‘false’ branch (when ‘count != 0’)...
xwayland-24.1.9/mi/mipoly.c:688:9: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:709:12: branch_false: following ‘false’ branch (when ‘mode != 1’)...
xwayland-24.1.9/mi/mipoly.c:718:8: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:718:8: branch_false: following ‘false’ branch (when ‘shape != 2’)...
xwayland-24.1.9/mi/mipoly.c:721:9: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:721:9: call_function: calling ‘miFillGeneralPoly’ from ‘miFillPolygon’
#  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): [#def698]
xwayland-24.1.9/mi/mipoly.c:665:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pETEs’
xwayland-24.1.9/mi/mipoly.c:677:1: enter_function: entry to ‘miFillPolygon’
xwayland-24.1.9/mi/mipoly.c:684:8: branch_false: following ‘false’ branch (when ‘count != 0’)...
xwayland-24.1.9/mi/mipoly.c:688:9: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:709:12: branch_false: following ‘false’ branch (when ‘mode != 1’)...
xwayland-24.1.9/mi/mipoly.c:718:8: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:718:8: branch_false: following ‘false’ branch (when ‘shape != 2’)...
xwayland-24.1.9/mi/mipoly.c:721:9: branch_false: ...to here
xwayland-24.1.9/mi/mipoly.c:721:9: call_function: calling ‘miFillGeneralPoly’ from ‘miFillPolygon’
#  663|        *     Get any spans that we missed by buffering
#  664|        */
#  665|->     (*pgc->ops->FillSpans) (dst, pgc, nPts, FirstPoint, FirstWidth, 1);
#  666|       free(pETEs);
#  667|       miFreeStorage(SLLBlock.next);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def699]
xwayland-24.1.9/mi/mipolypnt.c:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidthInit’
xwayland-24.1.9/mi/mipolypnt.c:70:24: acquire_memory: allocated here
xwayland-24.1.9/mi/mipolypnt.c:70:8: branch_false: following ‘false’ branch (when ‘pwidthInit’ is non-NULL)...
xwayland-24.1.9/mi/mipolypnt.c:74:8: branch_false: ...to here
xwayland-24.1.9/mi/mipolypnt.c:98:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mipolypnt.c:99:9: branch_true: ...to here
xwayland-24.1.9/mi/mipolypnt.c:99:9: throw: if ‘ChangeGC’ throws an exception...
xwayland-24.1.9/mi/mipolypnt.c:99:9: danger: ‘pwidthInit’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   97|       fsNew.val = FillSolid;
#   98|       if (pGC->fillStyle != FillSolid) {
#   99|->         ChangeGC(NullClient, pGC, GCFillStyle, &fsNew);
#  100|           ValidateGC(pDrawable, pGC);
#  101|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def700]
xwayland-24.1.9/mi/mipolypnt.c:100:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidthInit’
xwayland-24.1.9/mi/mipolypnt.c:70:24: acquire_memory: allocated here
xwayland-24.1.9/mi/mipolypnt.c:70:8: branch_false: following ‘false’ branch (when ‘pwidthInit’ is non-NULL)...
xwayland-24.1.9/mi/mipolypnt.c:74:8: branch_false: ...to here
xwayland-24.1.9/mi/mipolypnt.c:98:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mipolypnt.c:99:9: branch_true: ...to here
xwayland-24.1.9/mi/mipolypnt.c:100:9: throw: if ‘ValidateGC’ throws an exception...
xwayland-24.1.9/mi/mipolypnt.c:100:9: danger: ‘pwidthInit’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   98|       if (pGC->fillStyle != FillSolid) {
#   99|           ChangeGC(NullClient, pGC, GCFillStyle, &fsNew);
#  100|->         ValidateGC(pDrawable, pGC);
#  101|       }
#  102|       pwidth = pwidthInit;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def701]
xwayland-24.1.9/mi/mipolypnt.c:105:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidthInit’
xwayland-24.1.9/mi/mipolypnt.c:70:24: acquire_memory: allocated here
xwayland-24.1.9/mi/mipolypnt.c:70:8: branch_false: following ‘false’ branch (when ‘pwidthInit’ is non-NULL)...
xwayland-24.1.9/mi/mipolypnt.c:74:8: branch_false: ...to here
xwayland-24.1.9/mi/mipolypnt.c:105:5: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mipolypnt.c:105:5: danger: ‘pwidthInit’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  103|       for (i = 0; i < npt; i++)
#  104|           *pwidth++ = 1;
#  105|->     (*pGC->ops->FillSpans) (pDrawable, pGC, npt, pptInit, pwidthInit, FALSE);
#  106|   
#  107|       if (fsOld.val != FillSolid) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def702]
xwayland-24.1.9/mi/mipolyrect.c:106:17: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
xwayland-24.1.9/mi/mipolyrect.c:80:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mipolyrect.c:91:15: acquire_memory: allocated here
xwayland-24.1.9/mi/mipolyrect.c:92:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
xwayland-24.1.9/mi/mipolyrect.c:92:12: branch_false: ...to here
xwayland-24.1.9/mi/mipolyrect.c:95:21: branch_true: following ‘true’ branch (when ‘i < nrects’)...
xwayland-24.1.9/mi/mipolyrect.c:96:17: branch_true: ...to here
xwayland-24.1.9/mi/mipolyrect.c:95:21: branch_true: following ‘true’ branch (when ‘i < nrects’)...
xwayland-24.1.9/mi/mipolyrect.c:96:17: branch_true: ...to here
xwayland-24.1.9/mi/mipolyrect.c:101:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mipolyrect.c:102:17: branch_true: ...to here
xwayland-24.1.9/mi/mipolyrect.c:106:17: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mipolyrect.c:106:17: danger: ‘tmp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  104|                   rect[1].x = x;
#  105|                   rect[1].y = y;
#  106|->                 (*pGC->ops->Polylines) (pDraw, pGC, CoordModeOrigin, 2, rect);
#  107|               }
#  108|               else if (height < offset2 || width < offset1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
xwayland-24.1.9/mi/mipolyrect.c:106:17: warning[-Wanalyzer-malloc-leak]: leak of ‘t’
xwayland-24.1.9/mi/mipolyrect.c:80:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mipolyrect.c:91:15: acquire_memory: allocated here
xwayland-24.1.9/mi/mipolyrect.c:92:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
xwayland-24.1.9/mi/mipolyrect.c:92:12: branch_false: ...to here
xwayland-24.1.9/mi/mipolyrect.c:95:21: branch_true: following ‘true’ branch (when ‘i < nrects’)...
xwayland-24.1.9/mi/mipolyrect.c:96:17: branch_true: ...to here
xwayland-24.1.9/mi/mipolyrect.c:101:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mipolyrect.c:102:17: branch_true: ...to here
xwayland-24.1.9/mi/mipolyrect.c:106:17: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mipolyrect.c:106:17: danger: ‘t’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  104|                   rect[1].x = x;
#  105|                   rect[1].y = y;
#  106|->                 (*pGC->ops->Polylines) (pDraw, pGC, CoordModeOrigin, 2, rect);
#  107|               }
#  108|               else if (height < offset2 || width < offset1) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
xwayland-24.1.9/mi/mipolyrect.c:150:9: warning[-Wanalyzer-malloc-leak]: leak of ‘tmp’
xwayland-24.1.9/mi/mipolyrect.c:80:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mipolyrect.c:91:15: acquire_memory: allocated here
xwayland-24.1.9/mi/mipolyrect.c:92:12: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
xwayland-24.1.9/mi/mipolyrect.c:92:12: branch_false: ...to here
xwayland-24.1.9/mi/mipolyrect.c:150:9: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mipolyrect.c:150:9: danger: ‘tmp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  148|               }
#  149|           }
#  150|->         (*pGC->ops->PolyFillRect) (pDraw, pGC, t - tmp, tmp);
#  151|           free((void *) tmp);
#  152|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def705]
xwayland-24.1.9/mi/mipushpxl.c:129:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pwLineStart’
xwayland-24.1.9/mi/mipushpxl.c:121:19: acquire_memory: allocated here
xwayland-24.1.9/mi/mipushpxl.c:122:8: branch_false: following ‘false’ branch (when ‘pwLineStart’ is non-NULL)...
xwayland-24.1.9/mi/mipushpxl.c:125:5: branch_false: ...to here
xwayland-24.1.9/mi/mipushpxl.c:127:53: branch_true: following ‘true’ branch (when ‘h < dy’)...
xwayland-24.1.9/mi/mipushpxl.c:129:11: branch_true: ...to here
xwayland-24.1.9/mi/mipushpxl.c:129:9: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mipushpxl.c:129:9: danger: ‘pwLineStart’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  127|       for (h = 0, ptThisLine.x = 0, ptThisLine.y = 0; h < dy; h++, ptThisLine.y++) {
#  128|   
#  129|->         (*pBitMap->drawable.pScreen->GetSpans) ((DrawablePtr) pBitMap, dx,
#  130|                                                   &ptThisLine, &dx, 1,
#  131|                                                   (char *) pwLineStart);

Error: GCC_ANALYZER_WARNING (CWE-787): [#def706]
xwayland-24.1.9/mi/miwideline.c:769:13: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xwayland-24.1.9/mi/miwideline.c:2488:1: enter_function: entry to ‘miPolylines’
xwayland-24.1.9/mi/miwideline.c:2494:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miwideline.c:2500:13: branch_false: ...to here
xwayland-24.1.9/mi/miwideline.c:2500:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/miwideline.c:2501:13: branch_true: ...to here
xwayland-24.1.9/mi/miwideline.c:2501:13: call_function: calling ‘miWideLine’ from ‘miPolylines’
#  767|           }
#  768|           while (h--) {
#  769|->             ppt->x = x;
#  770|               ppt->y = y;
#  771|               ppt++;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def707]
xwayland-24.1.9/mi/miwideline.c:770:13: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xwayland-24.1.9/mi/miwideline.c:2488:1: enter_function: entry to ‘miPolylines’
xwayland-24.1.9/mi/miwideline.c:2494:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miwideline.c:2500:13: branch_false: ...to here
xwayland-24.1.9/mi/miwideline.c:2500:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/miwideline.c:2501:13: branch_true: ...to here
xwayland-24.1.9/mi/miwideline.c:2501:13: call_function: calling ‘miWideLine’ from ‘miPolylines’
#  768|           while (h--) {
#  769|               ppt->x = x;
#  770|->             ppt->y = y;
#  771|               ppt++;
#  772|               *pwidth++ = w;

Error: GCC_ANALYZER_WARNING (CWE-787): [#def708]
xwayland-24.1.9/mi/miwideline.c:772:13: warning[-Wanalyzer-out-of-bounds]: buffer overflow
xwayland-24.1.9/mi/miwideline.c:2488:1: enter_function: entry to ‘miPolylines’
xwayland-24.1.9/mi/miwideline.c:2494:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/miwideline.c:2500:13: branch_false: ...to here
xwayland-24.1.9/mi/miwideline.c:2500:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/miwideline.c:2501:13: branch_true: ...to here
xwayland-24.1.9/mi/miwideline.c:2501:13: call_function: calling ‘miWideLine’ from ‘miPolylines’
#  770|               ppt->y = y;
#  771|               ppt++;
#  772|->             *pwidth++ = w;
#  773|               y++;
#  774|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def709]
xwayland-24.1.9/mi/mizerarc.c:686:9: warning[-Wanalyzer-malloc-leak]: leak of ‘widths’
xwayland-24.1.9/mi/mizerarc.c:669:8: branch_false: following ‘false’ branch (when ‘maxPts != 0’)...
xwayland-24.1.9/mi/mizerarc.c:671:5: branch_false: ...to here
xwayland-24.1.9/mi/mizerarc.c:673:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerarc.c:674:18: branch_true: ...to here
xwayland-24.1.9/mi/mizerarc.c:674:18: acquire_memory: allocated here
xwayland-24.1.9/mi/mizerarc.c:675:12: branch_false: following ‘false’ branch (when ‘widths’ is non-NULL)...
xwayland-24.1.9/mi/mizerarc.c:679:9: branch_false: ...to here
xwayland-24.1.9/mi/mizerarc.c:679:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerarc.c:680:9: branch_true: ...to here
xwayland-24.1.9/mi/mizerarc.c:686:9: throw: if ‘miStepDash’ throws an exception...
xwayland-24.1.9/mi/mizerarc.c:686:9: danger: ‘widths’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  684|           dinfo.dashIndexInit = 0;
#  685|           dinfo.dashOffsetInit = 0;
#  686|->         miStepDash((int) pGC->dashOffset, &dinfo.dashIndexInit,
#  687|                      (unsigned char *) pGC->dash, (int) pGC->numInDashList,
#  688|                      &dinfo.dashOffsetInit);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def710]
xwayland-24.1.9/mi/mizerline.c:204:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pspanInit’
xwayland-24.1.9/mi/mizerline.c:100:1: enter_function: entry to ‘miZeroLine’
xwayland-24.1.9/mi/mizerline.c:120:25: call_function: calling ‘dixLookupPrivate’ from ‘miZeroLine’
xwayland-24.1.9/mi/mizerline.c:120:25: return_function: returning to ‘miZeroLine’ from ‘dixLookupPrivate’
xwayland-24.1.9/mi/mizerline.c:129:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mizerline.c:141:8: branch_false: ...to here
xwayland-24.1.9/mi/mizerline.c:153:17: acquire_memory: allocated here
xwayland-24.1.9/mi/mizerline.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mizerline.c:162:5: branch_false: ...to here
xwayland-24.1.9/mi/mizerline.c:168:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerline.c:169:19: branch_true: ...to here
xwayland-24.1.9/mi/mizerline.c:181:12: branch_true: following ‘true’ branch (when ‘npt > 0’)...
xwayland-24.1.9/mi/mizerline.c:185:9: branch_true: ...to here
xwayland-24.1.9/mi/mizerline.c:189:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerline.c:199:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerline.c:201:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerline.c:203:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerline.c:204:15: branch_true: ...to here
xwayland-24.1.9/mi/mizerline.c:204:13: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mizerline.c:204:13: danger: ‘pspanInit’ leaks here; was allocated at [(10)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/9)
#  202|   
#  203|           if (ady + 1 > (list_len - Nspans)) {
#  204|->             (*pGC->ops->FillSpans) (pDraw, pGC, Nspans, pspanInit,
#  205|                                       pwidthInit, FALSE);
#  206|               Nspans = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def711]
xwayland-24.1.9/mi/mizerline.c:204:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pwidthInit’
xwayland-24.1.9/mi/mizerline.c:100:1: enter_function: entry to ‘miZeroLine’
xwayland-24.1.9/mi/mizerline.c:120:25: call_function: calling ‘dixLookupPrivate’ from ‘miZeroLine’
xwayland-24.1.9/mi/mizerline.c:120:25: return_function: returning to ‘miZeroLine’ from ‘dixLookupPrivate’
xwayland-24.1.9/mi/mizerline.c:129:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mizerline.c:141:8: branch_false: ...to here
xwayland-24.1.9/mi/mizerline.c:154:18: acquire_memory: allocated here
xwayland-24.1.9/mi/mizerline.c:155:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/mi/mizerline.c:162:5: branch_false: ...to here
xwayland-24.1.9/mi/mizerline.c:168:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerline.c:169:19: branch_true: ...to here
xwayland-24.1.9/mi/mizerline.c:181:12: branch_true: following ‘true’ branch (when ‘npt > 0’)...
xwayland-24.1.9/mi/mizerline.c:185:9: branch_true: ...to here
xwayland-24.1.9/mi/mizerline.c:189:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerline.c:199:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerline.c:201:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerline.c:203:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/mi/mizerline.c:204:15: branch_true: ...to here
xwayland-24.1.9/mi/mizerline.c:204:13: throw: if the called function throws an exception...
xwayland-24.1.9/mi/mizerline.c:204:13: danger: ‘pwidthInit’ leaks here; was allocated at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
#  202|   
#  203|           if (ady + 1 > (list_len - Nspans)) {
#  204|->             (*pGC->ops->FillSpans) (pDraw, pGC, Nspans, pspanInit,
#  205|                                       pwidthInit, FALSE);
#  206|               Nspans = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def712]
xwayland-24.1.9/miext/damage/damage.c:1332:5: warning[-Wanalyzer-malloc-leak]: leak of ‘charinfo’
xwayland-24.1.9/miext/damage/damage.c:1372:1: enter_function: entry to ‘damageImageText8’
xwayland-24.1.9/miext/damage/damage.c:1375:5: call_function: calling ‘dixLookupPrivate’ from ‘damageImageText8’
xwayland-24.1.9/miext/damage/damage.c:1375:5: return_function: returning to ‘damageImageText8’ from ‘dixLookupPrivate’
xwayland-24.1.9/miext/damage/damage.c:1376:5: call_function: calling ‘damageText’ from ‘damageImageText8’
# 1330|           return;
# 1331|   
# 1332|->     GetGlyphs(pGC->font, count, (unsigned char *) chars,
# 1333|                 fontEncoding, &i, charinfo);
# 1334|       n = (unsigned int) i;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def713]
xwayland-24.1.9/miext/damage/damage.c:1739:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pDamage’
xwayland-24.1.9/miext/damage/damage.c:1712:1: enter_function: entry to ‘DamageCreate’
xwayland-24.1.9/miext/damage/damage.c:1717:5: call_function: calling ‘dixLookupPrivate’ from ‘DamageCreate’
xwayland-24.1.9/miext/damage/damage.c:1717:5: return_function: returning to ‘DamageCreate’ from ‘dixLookupPrivate’
xwayland-24.1.9/miext/damage/damage.c:1720:15: acquire_memory: allocated here
xwayland-24.1.9/miext/damage/damage.c:1721:8: branch_false: following ‘false’ branch (when ‘pDamage’ is non-NULL)...
xwayland-24.1.9/miext/damage/damage.c:1724:5: branch_false: ...to here
xwayland-24.1.9/miext/damage/damage.c:1739:5: throw: if the called function throws an exception...
xwayland-24.1.9/miext/damage/damage.c:1739:5: danger: ‘pDamage’ leaks here; was allocated at [(11)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/10)
# 1737|       pDamage->pScreen = pScreen;
# 1738|   
# 1739|->     (*pScrPriv->funcs.Create) (pDamage);
# 1740|   
# 1741|       return pDamage;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def714]
xwayland-24.1.9/os/WaitFor.c:327:5: warning[-Wanalyzer-malloc-leak]: leak of ‘timer’
xwayland-24.1.9/os/WaitFor.c:300:8: branch_true: following ‘true’ branch (when ‘timer’ is NULL)...
xwayland-24.1.9/os/WaitFor.c:301:17: branch_true: ...to here
xwayland-24.1.9/os/WaitFor.c:301:17: acquire_memory: allocated here
xwayland-24.1.9/os/WaitFor.c:302:12: branch_false: following ‘false’ branch (when ‘timer’ is non-NULL)...
xwayland-24.1.9/os/WaitFor.c:304:9: branch_false: ...to here
xwayland-24.1.9/os/WaitFor.c:315:8: branch_false: following ‘false’ branch (when ‘millis != 0’)...
xwayland-24.1.9/os/WaitFor.c:317:9: branch_false: ...to here
xwayland-24.1.9/os/WaitFor.c:327:5: throw: if ‘input_lock’ throws an exception...
xwayland-24.1.9/os/WaitFor.c:327:5: danger: ‘timer’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  325|       timer->callback = func;
#  326|       timer->arg = arg;
#  327|->     input_lock();
#  328|   
#  329|       /* Sort into list */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def715]
xwayland-24.1.9/os/access.c:975:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "r")’
xwayland-24.1.9/os/access.c:928:1: enter_function: entry to ‘ResetHosts’
xwayland-24.1.9/os/access.c:951:5: call_function: calling ‘siTypesInitialize’ from ‘ResetHosts’
xwayland-24.1.9/os/access.c:951:5: return_function: returning to ‘ResetHosts’ from ‘siTypesInitialize’
xwayland-24.1.9/os/access.c:954:12: branch_false: following ‘false’ branch (when ‘host’ is NULL)...
xwayland-24.1.9/os/access.c:966:9: branch_false: ...to here
xwayland-24.1.9/os/access.c:967:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:969:5: branch_false: ...to here
xwayland-24.1.9/os/access.c:972:15: acquire_resource: opened here
xwayland-24.1.9/os/access.c:972:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/access.c:972:8: branch_true: ...to here
xwayland-24.1.9/os/access.c:973:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/access.c:975:17: branch_true: ...to here
xwayland-24.1.9/os/access.c:977:16: branch_false: following ‘false’ branch (when ‘ptr’ is NULL)...
xwayland-24.1.9/os/access.c:979:23: branch_false: ...to here
xwayland-24.1.9/os/access.c:983:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:989:23: branch_false: ...to here
xwayland-24.1.9/os/access.c:989:21: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:994:23: branch_false: ...to here
xwayland-24.1.9/os/access.c:994:21: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:1001:23: branch_false: ...to here
xwayland-24.1.9/os/access.c:1001:21: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:1006:23: branch_false: ...to here
xwayland-24.1.9/os/access.c:1006:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/access.c:1006:21: branch_true: ...to here
xwayland-24.1.9/os/access.c:1013:23: call_function: calling ‘siCheckAddr’ from ‘ResetHosts’
#  973|           while (fgets(ohostname, sizeof(ohostname), fd)) {
#  974|               family = FamilyWild;
#  975|->             if (*ohostname == '#')
#  976|                   continue;
#  977|               if ((ptr = strchr(ohostname, '\n')) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def716]
xwayland-24.1.9/os/access.c:975:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "r")’
xwayland-24.1.9/os/access.c:928:1: enter_function: entry to ‘ResetHosts’
xwayland-24.1.9/os/access.c:951:5: call_function: calling ‘siTypesInitialize’ from ‘ResetHosts’
xwayland-24.1.9/os/access.c:951:5: return_function: returning to ‘ResetHosts’ from ‘siTypesInitialize’
xwayland-24.1.9/os/access.c:954:12: branch_false: following ‘false’ branch (when ‘host’ is NULL)...
xwayland-24.1.9/os/access.c:966:9: branch_false: ...to here
xwayland-24.1.9/os/access.c:967:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:969:5: branch_false: ...to here
xwayland-24.1.9/os/access.c:972:15: acquire_memory: allocated here
xwayland-24.1.9/os/access.c:972:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/access.c:972:8: branch_true: ...to here
xwayland-24.1.9/os/access.c:973:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/access.c:975:17: branch_true: ...to here
xwayland-24.1.9/os/access.c:977:16: branch_false: following ‘false’ branch (when ‘ptr’ is NULL)...
xwayland-24.1.9/os/access.c:979:23: branch_false: ...to here
xwayland-24.1.9/os/access.c:983:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:989:23: branch_false: ...to here
xwayland-24.1.9/os/access.c:989:21: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:994:23: branch_false: ...to here
xwayland-24.1.9/os/access.c:994:21: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:1001:23: branch_false: ...to here
xwayland-24.1.9/os/access.c:1001:21: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:1006:23: branch_false: ...to here
xwayland-24.1.9/os/access.c:1006:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/access.c:1006:21: branch_true: ...to here
xwayland-24.1.9/os/access.c:1013:23: call_function: calling ‘siCheckAddr’ from ‘ResetHosts’
#  973|           while (fgets(ohostname, sizeof(ohostname), fd)) {
#  974|               family = FamilyWild;
#  975|->             if (*ohostname == '#')
#  976|                   continue;
#  977|               if ((ptr = strchr(ohostname, '\n')) != 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def717]
xwayland-24.1.9/os/access.c:1209:10: warning[-Wanalyzer-malloc-leak]: leak of ‘lcc’
xwayland-24.1.9/os/access.c:2100:1: enter_function: entry to ‘siLocalCredAddrMatch’
xwayland-24.1.9/os/access.c:2108:9: call_function: calling ‘GetLocalClientCreds’ from ‘siLocalCredAddrMatch’
# 1207|       lcc = *lccp;
# 1208|   
# 1209|->     fd = _XSERVTransGetConnectionNumber(ci);
# 1210|   #if defined(HAVE_GETPEERUCRED)
# 1211|       if (getpeerucred(fd, &peercred) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def718]
xwayland-24.1.9/os/access.c:2078:33: warning[-Wanalyzer-malloc-leak]: leak of ‘addrbuf’
xwayland-24.1.9/os/access.c:2058:21: acquire_memory: allocated here
xwayland-24.1.9/os/access.c:2060:8: branch_false: following ‘false’ branch (when ‘addrbuf’ is non-NULL)...
xwayland-24.1.9/os/access.c:2064:5: branch_false: ...to here
xwayland-24.1.9/os/access.c:2067:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:2077:13: branch_false: ...to here
xwayland-24.1.9/os/access.c:2077:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/access.c:2078:33: branch_true: ...to here
xwayland-24.1.9/os/access.c:2078:33: throw: if ‘getpwnam’ throws an exception...
xwayland-24.1.9/os/access.c:2078:33: danger: ‘addrbuf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 2076|       else {                      /* non-numeric name */
# 2077|           if (lcPriv->credType == LOCAL_USER) {
# 2078|->             struct passwd *pw = getpwnam(addrbuf);
# 2079|   
# 2080|               if (pw != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def719]
xwayland-24.1.9/os/access.c:2078:33: warning[-Wanalyzer-malloc-leak]: leak of ‘lcc’
xwayland-24.1.9/os/access.c:2100:1: enter_function: entry to ‘siLocalCredAddrMatch’
xwayland-24.1.9/os/access.c:2108:9: call_function: calling ‘GetLocalClientCreds’ from ‘siLocalCredAddrMatch’
xwayland-24.1.9/os/access.c:2108:9: return_function: returning to ‘siLocalCredAddrMatch’ from ‘GetLocalClientCreds’
xwayland-24.1.9/os/access.c:2108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:2119:9: branch_false: ...to here
xwayland-24.1.9/os/access.c:2119:9: call_function: calling ‘siLocalCredGetId’ from ‘siLocalCredAddrMatch’
# 2076|       else {                      /* non-numeric name */
# 2077|           if (lcPriv->credType == LOCAL_USER) {
# 2078|->             struct passwd *pw = getpwnam(addrbuf);
# 2079|   
# 2080|               if (pw != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def720]
xwayland-24.1.9/os/access.c:2086:32: warning[-Wanalyzer-malloc-leak]: leak of ‘addrbuf’
xwayland-24.1.9/os/access.c:2058:21: acquire_memory: allocated here
xwayland-24.1.9/os/access.c:2060:8: branch_false: following ‘false’ branch (when ‘addrbuf’ is non-NULL)...
xwayland-24.1.9/os/access.c:2064:5: branch_false: ...to here
xwayland-24.1.9/os/access.c:2067:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:2077:13: branch_false: ...to here
xwayland-24.1.9/os/access.c:2077:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:2086:32: branch_false: ...to here
xwayland-24.1.9/os/access.c:2086:32: throw: if ‘getgrnam’ throws an exception...
xwayland-24.1.9/os/access.c:2086:32: danger: ‘addrbuf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 2084|           }
# 2085|           else {                  /* group */
# 2086|->             struct group *gr = getgrnam(addrbuf);
# 2087|   
# 2088|               if (gr != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
xwayland-24.1.9/os/access.c:2086:32: warning[-Wanalyzer-malloc-leak]: leak of ‘lcc’
xwayland-24.1.9/os/access.c:2100:1: enter_function: entry to ‘siLocalCredAddrMatch’
xwayland-24.1.9/os/access.c:2108:9: call_function: calling ‘GetLocalClientCreds’ from ‘siLocalCredAddrMatch’
xwayland-24.1.9/os/access.c:2108:9: return_function: returning to ‘siLocalCredAddrMatch’ from ‘GetLocalClientCreds’
xwayland-24.1.9/os/access.c:2108:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/access.c:2119:9: branch_false: ...to here
xwayland-24.1.9/os/access.c:2119:9: call_function: calling ‘siLocalCredGetId’ from ‘siLocalCredAddrMatch’
# 2084|           }
# 2085|           else {                  /* group */
# 2086|->             struct group *gr = getgrnam(addrbuf);
# 2087|   
# 2088|               if (gr != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def722]
xwayland-24.1.9/os/auth.c:138:17: warning[-Wanalyzer-malloc-leak]: leak of ‘XauReadAuth(Fopen(authorization_file, "r"))’
xwayland-24.1.9/os/auth.c:123:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/auth.c:126:5: branch_false: ...to here
xwayland-24.1.9/os/auth.c:128:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/auth.c:128:8: branch_false: ...to here
xwayland-24.1.9/os/auth.c:136:20: acquire_memory: allocated here
xwayland-24.1.9/os/auth.c:136:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/auth.c:136:12: branch_true: ...to here
xwayland-24.1.9/os/auth.c:137:21: branch_true: following ‘true’ branch (when ‘i != 3’)...
xwayland-24.1.9/os/auth.c:138:17: branch_true: ...to here
xwayland-24.1.9/os/auth.c:138:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/auth.c:139:17: branch_true: ...to here
xwayland-24.1.9/os/auth.c:138:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/auth.c:140:57: branch_true: ...to here
xwayland-24.1.9/os/auth.c:138:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/auth.c:141:17: branch_true: ...to here
xwayland-24.1.9/os/auth.c:142:17: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/os/auth.c:138:17: danger: ‘XauReadAuth(Fopen(authorization_file, "r"))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  136|       while ((auth = XauReadAuth(f)) != 0) {
#  137|           for (i = 0; i < NUM_AUTHORIZATION; i++) {
#  138|->             if (protocols[i].name_length == auth->name_length &&
#  139|                   memcmp(protocols[i].name, auth->name,
#  140|                          (int) auth->name_length) == 0 && protocols[i].Add) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def723]
xwayland-24.1.9/os/client.c:365:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&path, 0)’
xwayland-24.1.9/os/client.c:352:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/client.c:354:10: branch_false: ...to here
xwayland-24.1.9/os/client.c:354:10: acquire_resource: opened here
xwayland-24.1.9/os/client.c:355:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/client.c:364:15: branch_false: ...to here
xwayland-24.1.9/os/client.c:365:5: danger: ‘open(&path, 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  363|        * process name and arguments. */
#  364|       totsize = read(fd, path, sizeof(path));
#  365|->     close(fd);
#  366|       if (totsize <= 0)
#  367|           return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def724]
xwayland-24.1.9/os/connection.c:628:20: warning[-Wanalyzer-malloc-leak]: leak of ‘oc’
xwayland-24.1.9/os/connection.c:618:10: acquire_memory: allocated here
xwayland-24.1.9/os/connection.c:619:8: branch_false: following ‘false’ branch (when ‘oc’ is non-NULL)...
xwayland-24.1.9/os/connection.c:621:5: branch_false: ...to here
xwayland-24.1.9/os/connection.c:628:20: throw: if ‘NextAvailableClient’ throws an exception...
xwayland-24.1.9/os/connection.c:628:20: danger: ‘oc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  626|       oc->conn_time = conn_time;
#  627|       oc->flags = 0;
#  628|->     if (!(client = NextAvailableClient((void *) oc))) {
#  629|           free(oc);
#  630|           return NullClient;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def725]
xwayland-24.1.9/os/connection.c:831:9: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
xwayland-24.1.9/os/connection.c:824:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/connection.c:825:12: branch_true: ...to here
xwayland-24.1.9/os/connection.c:825:12: branch_false: following ‘false’ branch (when ‘mask != 0’)...
xwayland-24.1.9/os/connection.c:828:13: branch_false: ...to here
xwayland-24.1.9/os/connection.c:828:13: acquire_memory: allocated here
xwayland-24.1.9/os/connection.c:829:12: branch_false: following ‘false’ branch (when ‘n’ is non-NULL)...
xwayland-24.1.9/os/connection.c:831:9: branch_false: ...to here
xwayland-24.1.9/os/connection.c:831:9: throw: if ‘ospoll_add’ throws an exception...
xwayland-24.1.9/os/connection.c:831:9: danger: ‘n’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  829|           if (!n)
#  830|               return FALSE;
#  831|->         ospoll_add(server_poll, fd,
#  832|                      ospoll_trigger_level,
#  833|                      HandleNotifyFd,

Error: GCC_ANALYZER_WARNING (CWE-775): [#def726]
xwayland-24.1.9/os/inputthread.c:409:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
xwayland-24.1.9/os/inputthread.c:402:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:405:9: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:408:10: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:408:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/inputthread.c:409:9: branch_true: ...to here
xwayland-24.1.9/os/inputthread.c:409:9: throw: if ‘FatalError’ throws an exception...
xwayland-24.1.9/os/inputthread.c:409:9: danger: ‘fds[0]’ leaks here
#  407|   
#  408|        if (pipe(hotplugPipe) < 0)
#  409|->         FatalError("input-thread: could not create pipe");
#  410|   
#  411|       inputThreadInfo = malloc(sizeof(InputThreadInfo));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def727]
xwayland-24.1.9/os/inputthread.c:409:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
xwayland-24.1.9/os/inputthread.c:402:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:405:9: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:408:10: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:408:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/inputthread.c:409:9: branch_true: ...to here
xwayland-24.1.9/os/inputthread.c:409:9: throw: if ‘FatalError’ throws an exception...
xwayland-24.1.9/os/inputthread.c:409:9: danger: ‘fds[1]’ leaks here
#  407|   
#  408|        if (pipe(hotplugPipe) < 0)
#  409|->         FatalError("input-thread: could not create pipe");
#  410|   
#  411|       inputThreadInfo = malloc(sizeof(InputThreadInfo));

Error: GCC_ANALYZER_WARNING (CWE-775): [#def728]
xwayland-24.1.9/os/inputthread.c:413:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
xwayland-24.1.9/os/inputthread.c:402:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:405:9: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:408:10: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:408:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:411:23: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:412:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/inputthread.c:413:9: branch_true: ...to here
xwayland-24.1.9/os/inputthread.c:413:9: throw: if ‘FatalError’ throws an exception...
xwayland-24.1.9/os/inputthread.c:413:9: danger: ‘fds[0]’ leaks here
#  411|       inputThreadInfo = malloc(sizeof(InputThreadInfo));
#  412|       if (!inputThreadInfo)
#  413|->         FatalError("input-thread: could not allocate memory");
#  414|   
#  415|       inputThreadInfo->changed = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def729]
xwayland-24.1.9/os/inputthread.c:413:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
xwayland-24.1.9/os/inputthread.c:402:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:405:9: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:408:10: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:408:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:411:23: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:412:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/inputthread.c:413:9: branch_true: ...to here
xwayland-24.1.9/os/inputthread.c:413:9: throw: if ‘FatalError’ throws an exception...
xwayland-24.1.9/os/inputthread.c:413:9: danger: ‘fds[1]’ leaks here
#  411|       inputThreadInfo = malloc(sizeof(InputThreadInfo));
#  412|       if (!inputThreadInfo)
#  413|->         FatalError("input-thread: could not allocate memory");
#  414|   
#  415|       inputThreadInfo->changed = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def730]
xwayland-24.1.9/os/inputthread.c:413:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘hotplugPipe[0]’
xwayland-24.1.9/os/inputthread.c:402:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:405:9: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:408:10: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:408:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:411:23: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:412:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/inputthread.c:413:9: branch_true: ...to here
xwayland-24.1.9/os/inputthread.c:413:9: throw: if ‘FatalError’ throws an exception...
xwayland-24.1.9/os/inputthread.c:413:9: danger: ‘hotplugPipe[0]’ leaks here
#  411|       inputThreadInfo = malloc(sizeof(InputThreadInfo));
#  412|       if (!inputThreadInfo)
#  413|->         FatalError("input-thread: could not allocate memory");
#  414|   
#  415|       inputThreadInfo->changed = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def731]
xwayland-24.1.9/os/inputthread.c:413:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘hotplugPipe[1]’
xwayland-24.1.9/os/inputthread.c:402:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:405:9: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:408:10: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:408:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:411:23: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:412:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/inputthread.c:413:9: branch_true: ...to here
xwayland-24.1.9/os/inputthread.c:413:9: throw: if ‘FatalError’ throws an exception...
xwayland-24.1.9/os/inputthread.c:413:9: danger: ‘hotplugPipe[1]’ leaks here
#  411|       inputThreadInfo = malloc(sizeof(InputThreadInfo));
#  412|       if (!inputThreadInfo)
#  413|->         FatalError("input-thread: could not allocate memory");
#  414|   
#  415|       inputThreadInfo->changed = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def732]
xwayland-24.1.9/os/inputthread.c:419:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[0]’
xwayland-24.1.9/os/inputthread.c:402:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:405:9: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:408:10: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:408:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:411:23: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:412:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:415:5: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:419:28: throw: if ‘ospoll_create’ throws an exception...
xwayland-24.1.9/os/inputthread.c:419:28: danger: ‘fds[0]’ leaks here
#  417|       inputThreadInfo->thread = 0;
#  418|       xorg_list_init(&inputThreadInfo->devs);
#  419|->     inputThreadInfo->fds = ospoll_create();
#  420|   
#  421|       /* By making read head non-blocking, we ensure that while the main thread

Error: GCC_ANALYZER_WARNING (CWE-775): [#def733]
xwayland-24.1.9/os/inputthread.c:419:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fds[1]’
xwayland-24.1.9/os/inputthread.c:402:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:405:9: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:408:10: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:408:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:411:23: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:412:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:415:5: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:419:28: throw: if ‘ospoll_create’ throws an exception...
xwayland-24.1.9/os/inputthread.c:419:28: danger: ‘fds[1]’ leaks here
#  417|       inputThreadInfo->thread = 0;
#  418|       xorg_list_init(&inputThreadInfo->devs);
#  419|->     inputThreadInfo->fds = ospoll_create();
#  420|   
#  421|       /* By making read head non-blocking, we ensure that while the main thread

Error: GCC_ANALYZER_WARNING (CWE-775): [#def734]
xwayland-24.1.9/os/inputthread.c:419:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘hotplugPipe[0]’
xwayland-24.1.9/os/inputthread.c:402:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:405:9: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:408:10: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:408:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:411:23: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:412:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:415:5: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:419:28: throw: if ‘ospoll_create’ throws an exception...
xwayland-24.1.9/os/inputthread.c:419:28: danger: ‘hotplugPipe[0]’ leaks here
#  417|       inputThreadInfo->thread = 0;
#  418|       xorg_list_init(&inputThreadInfo->devs);
#  419|->     inputThreadInfo->fds = ospoll_create();
#  420|   
#  421|       /* By making read head non-blocking, we ensure that while the main thread

Error: GCC_ANALYZER_WARNING (CWE-775): [#def735]
xwayland-24.1.9/os/inputthread.c:419:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘hotplugPipe[1]’
xwayland-24.1.9/os/inputthread.c:402:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:405:9: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:405:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:408:10: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:408:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:411:23: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:412:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/inputthread.c:415:5: branch_false: ...to here
xwayland-24.1.9/os/inputthread.c:419:28: throw: if ‘ospoll_create’ throws an exception...
xwayland-24.1.9/os/inputthread.c:419:28: danger: ‘hotplugPipe[1]’ leaks here
#  417|       inputThreadInfo->thread = 0;
#  418|       xorg_list_init(&inputThreadInfo->devs);
#  419|->     inputThreadInfo->fds = ospoll_create();
#  420|   
#  421|       /* By making read head non-blocking, we ensure that while the main thread

Error: GCC_ANALYZER_WARNING (CWE-457): [#def736]
xwayland-24.1.9/os/io.c:289:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*(xReq *)<unknown>.length’
xwayland-24.1.9/os/io.c:230:1: enter_function: entry to ‘ReadRequestFromClient’
xwayland-24.1.9/os/io.c:244:8: branch_true: following ‘true’ branch (when ‘oci’ is NULL)...
xwayland-24.1.9/os/io.c:245:13: branch_true: ...to here
xwayland-24.1.9/os/io.c:245:12: branch_false: following ‘false’ branch (when ‘oci’ is NULL)...
xwayland-24.1.9/os/io.c:248:26: branch_false: ...to here
xwayland-24.1.9/os/io.c:248:26: call_function: calling ‘AllocateInputBuffer’ from ‘ReadRequestFromClient’
xwayland-24.1.9/os/io.c:248:26: return_function: returning to ‘ReadRequestFromClient’ from ‘AllocateInputBuffer’
xwayland-24.1.9/os/io.c:248:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/io.c:252:9: branch_false: ...to here
xwayland-24.1.9/os/io.c:257:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/io.c:265:5: branch_false: ...to here
xwayland-24.1.9/os/io.c:271:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/io.c:277:13: branch_false: ...to here
xwayland-24.1.9/os/io.c:277:13: branch_false: following ‘false’ branch (when ‘gotnow > 3’)...
xwayland-24.1.9/os/io.c:289:18: branch_false: ...to here
xwayland-24.1.9/os/io.c:289:18: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/io.c:289:18: branch_true: ...to here
xwayland-24.1.9/os/io.c:289:18: danger: use of uninitialized value ‘*(xReq *)<unknown>.length’ here
#  287|            */
#  288|           request = (xReq *) oci->bufptr;
#  289|->         needed = get_req_len(request, client);
#  290|           if (!needed && client->big_requests) {
#  291|               /* It's a Big Request. */

Error: GCC_ANALYZER_WARNING (CWE-457): [#def737]
xwayland-24.1.9/os/io.c:544:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*oci.bufptr’
xwayland-24.1.9/os/io.c:513:1: enter_function: entry to ‘InsertFakeRequest’
xwayland-24.1.9/os/io.c:521:8: branch_true: following ‘true’ branch (when ‘oci’ is NULL)...
xwayland-24.1.9/os/io.c:522:13: branch_true: ...to here
xwayland-24.1.9/os/io.c:522:12: branch_false: following ‘false’ branch (when ‘oci’ is NULL)...
xwayland-24.1.9/os/io.c:524:26: branch_false: ...to here
xwayland-24.1.9/os/io.c:524:26: call_function: calling ‘AllocateInputBuffer’ from ‘InsertFakeRequest’
xwayland-24.1.9/os/io.c:524:26: return_function: returning to ‘InsertFakeRequest’ from ‘AllocateInputBuffer’
xwayland-24.1.9/os/io.c:524:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/io.c:526:9: branch_false: ...to here
xwayland-24.1.9/os/io.c:531:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/io.c:541:14: branch_false: ...to here
xwayland-24.1.9/os/io.c:542:8: branch_true: following ‘true’ branch (when ‘moveup > 0’)...
xwayland-24.1.9/os/io.c:543:12: branch_true: ...to here
xwayland-24.1.9/os/io.c:543:12: branch_true: following ‘true’ branch (when ‘gotnow > 0’)...
xwayland-24.1.9/os/io.c:544:13: branch_true: ...to here
xwayland-24.1.9/os/io.c:544:13: danger: use of uninitialized value ‘*oci.bufptr’ here
#  542|       if (moveup > 0) {
#  543|           if (gotnow > 0)
#  544|->             memmove(oci->bufptr + moveup, oci->bufptr, gotnow);
#  545|           oci->bufptr += moveup;
#  546|           oci->bufcnt += moveup;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def738]
xwayland-24.1.9/os/io.c:947:13: warning[-Wanalyzer-malloc-leak]: leak of ‘obuf’
xwayland-24.1.9/os/io.c:834:1: enter_function: entry to ‘FlushClient’
xwayland-24.1.9/os/io.c:846:8: branch_false: following ‘false’ branch (when ‘oco’ is non-NULL)...
xwayland-24.1.9/os/io.c:849:15: call_function: inlined call to ‘padding_for_int32’ from ‘FlushClient’
xwayland-24.1.9/os/io.c:851:8: branch_false: following ‘false’ branch (when ‘notWritten != 0’)...
xwayland-24.1.9/os/io.c:854:9: branch_false: ...to here
xwayland-24.1.9/os/io.c:858:12: branch_true: following ‘true’ branch (when ‘notWritten != 0’)...
xwayland-24.1.9/os/io.c:891:9: branch_true: ...to here
xwayland-24.1.9/os/io.c:924:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/io.c:927:20: branch_true: ...to here
xwayland-24.1.9/os/io.c:927:20: branch_true: following ‘true’ branch (when ‘notWritten <= 2147467263’)...
xwayland-24.1.9/os/io.c:928:46: branch_true: ...to here
xwayland-24.1.9/os/io.c:930:20: branch_false: following ‘false’ branch (when ‘obuf’ is non-NULL)...
xwayland-24.1.9/os/io.c:936:29: branch_false: ...to here
xwayland-24.1.9/os/io.c:942:16: branch_false: following ‘false’ branch (when ‘len <= 0’)...
xwayland-24.1.9/os/io.c:946:13: branch_false: ...to here
xwayland-24.1.9/os/io.c:947:13: throw: if ‘ospoll_listen’ throws an exception...
xwayland-24.1.9/os/io.c:947:13: danger: ‘obuf’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
#  945|   
#  946|               oco->count = notWritten;    /* this will include the pad */
#  947|->             ospoll_listen(server_poll, oc->fd, X_NOTIFY_WRITE);
#  948|   
#  949|               /* return only the amount explicitly requested */

Error: GCC_ANALYZER_WARNING (CWE-404): [#def739]
xwayland-24.1.9/os/log.c:1040:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
xwayland-24.1.9/os/log.c:948:1: enter_function: entry to ‘AuditFlush’
xwayland-24.1.9/os/log.c:953:18: call_function: calling ‘AuditPrefix’ from ‘AuditFlush’
xwayland-24.1.9/os/log.c:953:18: return_function: returning to ‘AuditFlush’ from ‘AuditPrefix’
xwayland-24.1.9/os/log.c:954:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/log.c:954:9: branch_true: ...to here
xwayland-24.1.9/os/log.c:954:9: call_function: calling ‘ErrorF’ from ‘AuditFlush’
# 1038|   {
# 1039|       if (OsVendorVErrorFProc)
# 1040|->         OsVendorVErrorFProc(f, args);
# 1041|       else
# 1042|           LogVWrite(-1, f, args);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def740]
xwayland-24.1.9/os/ospoll.c:228:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ospoll’
xwayland-24.1.9/os/ospoll.c:226:35: acquire_memory: this call could return NULL
xwayland-24.1.9/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: [#def741] [important]
xwayland-24.1.9/os/rpcauth.c:48:10: error[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): [#def742]
xwayland-24.1.9/os/string.c:55:17: warning[-Wanalyzer-mismatching-deallocation]: ‘list’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’
xwayland-24.1.9/os/string.c:46:8: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
xwayland-24.1.9/os/string.c:48:12: branch_false: ...to here
xwayland-24.1.9/os/string.c:48:12: acquire_memory: allocated here (expects deallocation with ‘free’)
xwayland-24.1.9/os/string.c:49:8: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
xwayland-24.1.9/os/string.c:51:11: branch_false: ...to here
xwayland-24.1.9/os/string.c:52:8: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
xwayland-24.1.9/os/string.c:54:16: branch_false: ...to here
xwayland-24.1.9/os/string.c:54:41: branch_true: following ‘true’ branch (when ‘tok’ is non-NULL)...
xwayland-24.1.9/os/string.c:55:36: branch_true: ...to here
xwayland-24.1.9/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): [#def743]
xwayland-24.1.9/os/utils.c:1108:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
xwayland-24.1.9/os/utils.c:1072:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1077:33: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1105:18: acquire_memory: this call could return NULL
xwayland-24.1.9/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-775): [#def744]
xwayland-24.1.9/os/utils.c:1241:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
xwayland-24.1.9/os/utils.c:1304:1: enter_function: entry to ‘Popen’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1371:5: call_function: calling ‘OsBlockSignals’ from ‘Popen’
# 1239|           sigaddset(&set, SIGTTOU);
# 1240|           sigaddset(&set, SIGCHLD);
# 1241|->         xthread_sigmask(SIG_BLOCK, &set, &PreviousSignalMask);
# 1242|       }
# 1243|   #endif

Error: GCC_ANALYZER_WARNING (CWE-775): [#def745]
xwayland-24.1.9/os/utils.c:1241:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
xwayland-24.1.9/os/utils.c:1304:1: enter_function: entry to ‘Popen’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1371:5: call_function: calling ‘OsBlockSignals’ from ‘Popen’
# 1239|           sigaddset(&set, SIGTTOU);
# 1240|           sigaddset(&set, SIGCHLD);
# 1241|->         xthread_sigmask(SIG_BLOCK, &set, &PreviousSignalMask);
# 1242|       }
# 1243|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def746]
xwayland-24.1.9/os/utils.c:1241:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cur’
xwayland-24.1.9/os/utils.c:1304:1: enter_function: entry to ‘Popen’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:16: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1371:5: call_function: calling ‘OsBlockSignals’ from ‘Popen’
# 1239|           sigaddset(&set, SIGTTOU);
# 1240|           sigaddset(&set, SIGCHLD);
# 1241|->         xthread_sigmask(SIG_BLOCK, &set, &PreviousSignalMask);
# 1242|       }
# 1243|   #endif

Error: GCC_ANALYZER_WARNING (CWE-775): [#def747]
xwayland-24.1.9/os/utils.c:1327:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1327:9: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1327:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1327:9: danger: ‘pdes[0]’ leaks here
# 1325|   #ifdef HAVE_SETITIMER
# 1326|       if (SmartSchedulePause() < 0) {
# 1327|->         close(pdes[0]);
# 1328|           close(pdes[1]);
# 1329|           free(cur);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def748]
xwayland-24.1.9/os/utils.c:1327:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1327:9: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1327:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1327:9: danger: ‘pdes[1]’ leaks here
# 1325|   #ifdef HAVE_SETITIMER
# 1326|       if (SmartSchedulePause() < 0) {
# 1327|->         close(pdes[0]);
# 1328|           close(pdes[1]);
# 1329|           free(cur);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def749]
xwayland-24.1.9/os/utils.c:1327:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cur’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:16: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1327:9: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1327:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1327:9: danger: ‘cur’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
# 1325|   #ifdef HAVE_SETITIMER
# 1326|       if (SmartSchedulePause() < 0) {
# 1327|->         close(pdes[0]);
# 1328|           close(pdes[1]);
# 1329|           free(cur);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def750]
xwayland-24.1.9/os/utils.c:1328:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1327:9: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1328:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1328:9: danger: ‘pdes[1]’ leaks here
# 1326|       if (SmartSchedulePause() < 0) {
# 1327|           close(pdes[0]);
# 1328|->         close(pdes[1]);
# 1329|           free(cur);
# 1330|           perror("signal");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def751]
xwayland-24.1.9/os/utils.c:1328:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cur’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:16: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1327:9: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1328:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1328:9: danger: ‘cur’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
# 1326|       if (SmartSchedulePause() < 0) {
# 1327|           close(pdes[0]);
# 1328|->         close(pdes[1]);
# 1329|           free(cur);
# 1330|           perror("signal");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def752]
xwayland-24.1.9/os/utils.c:1337:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1337:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1337:9: danger: ‘pdes[0]’ leaks here
# 1335|       switch (pid = fork()) {
# 1336|       case -1:                   /* error */
# 1337|->         close(pdes[0]);
# 1338|           close(pdes[1]);
# 1339|           free(cur);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def753]
xwayland-24.1.9/os/utils.c:1337:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1337:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1337:9: danger: ‘pdes[1]’ leaks here
# 1335|       switch (pid = fork()) {
# 1336|       case -1:                   /* error */
# 1337|->         close(pdes[0]);
# 1338|           close(pdes[1]);
# 1339|           free(cur);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def754]
xwayland-24.1.9/os/utils.c:1337:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cur’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:16: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1337:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1337:9: danger: ‘cur’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
# 1335|       switch (pid = fork()) {
# 1336|       case -1:                   /* error */
# 1337|->         close(pdes[0]);
# 1338|           close(pdes[1]);
# 1339|           free(cur);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def755]
xwayland-24.1.9/os/utils.c:1338:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1338:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1338:9: danger: ‘pdes[1]’ leaks here
# 1336|       case -1:                   /* error */
# 1337|           close(pdes[0]);
# 1338|->         close(pdes[1]);
# 1339|           free(cur);
# 1340|   #ifdef HAVE_SETITIMER

Error: GCC_ANALYZER_WARNING (CWE-401): [#def756]
xwayland-24.1.9/os/utils.c:1338:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cur’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:16: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1338:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1338:9: danger: ‘cur’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
# 1336|       case -1:                   /* error */
# 1337|           close(pdes[0]);
# 1338|->         close(pdes[1]);
# 1339|           free(cur);
# 1340|   #ifdef HAVE_SETITIMER

Error: GCC_ANALYZER_WARNING (CWE-775): [#def757]
xwayland-24.1.9/os/utils.c:1354:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1351:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1351:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1353:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1354:17: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1354:17: danger: ‘pdes[0]’ leaks here
# 1352|                   /* stdout */
# 1353|                   dup2(pdes[1], 1);
# 1354|->                 close(pdes[1]);
# 1355|               }
# 1356|               close(pdes[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def758]
xwayland-24.1.9/os/utils.c:1354:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1351:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1351:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1353:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1354:17: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1354:17: danger: ‘pdes[1]’ leaks here
# 1352|                   /* stdout */
# 1353|                   dup2(pdes[1], 1);
# 1354|->                 close(pdes[1]);
# 1355|               }
# 1356|               close(pdes[0]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def759]
xwayland-24.1.9/os/utils.c:1354:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cur’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:16: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1351:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1351:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1353:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1354:17: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1354:17: danger: ‘cur’ leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
# 1352|                   /* stdout */
# 1353|                   dup2(pdes[1], 1);
# 1354|->                 close(pdes[1]);
# 1355|               }
# 1356|               close(pdes[0]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def760]
xwayland-24.1.9/os/utils.c:1356:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1351:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1351:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1356:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1356:13: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1356:13: danger: ‘pdes[0]’ leaks here
# 1354|                   close(pdes[1]);
# 1355|               }
# 1356|->             close(pdes[0]);
# 1357|           }
# 1358|           else {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def761]
xwayland-24.1.9/os/utils.c:1356:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1351:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1351:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1356:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1356:13: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1356:13: danger: ‘pdes[1]’ leaks here
# 1354|                   close(pdes[1]);
# 1355|               }
# 1356|->             close(pdes[0]);
# 1357|           }
# 1358|           else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def762]
xwayland-24.1.9/os/utils.c:1356:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cur’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:16: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1351:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1351:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1356:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1356:13: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1356:13: danger: ‘cur’ leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
# 1354|                   close(pdes[1]);
# 1355|               }
# 1356|->             close(pdes[0]);
# 1357|           }
# 1358|           else {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def763]
xwayland-24.1.9/os/utils.c:1362:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1359:17: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1359:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1361:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1362:17: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1362:17: danger: ‘pdes[0]’ leaks here
# 1360|                   /* stdin */
# 1361|                   dup2(pdes[0], 0);
# 1362|->                 close(pdes[0]);
# 1363|               }
# 1364|               close(pdes[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def764]
xwayland-24.1.9/os/utils.c:1362:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1359:17: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1359:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1361:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1362:17: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1362:17: danger: ‘pdes[1]’ leaks here
# 1360|                   /* stdin */
# 1361|                   dup2(pdes[0], 0);
# 1362|->                 close(pdes[0]);
# 1363|               }
# 1364|               close(pdes[1]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def765]
xwayland-24.1.9/os/utils.c:1362:17: warning[-Wanalyzer-malloc-leak]: leak of ‘cur’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:16: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1359:17: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1359:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1361:17: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1362:17: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1362:17: danger: ‘cur’ leaks here; was allocated at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
# 1360|                   /* stdin */
# 1361|                   dup2(pdes[0], 0);
# 1362|->                 close(pdes[0]);
# 1363|               }
# 1364|               close(pdes[1]);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def766]
xwayland-24.1.9/os/utils.c:1364:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1359:17: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1359:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1364:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1364:13: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1364:13: danger: ‘pdes[0]’ leaks here
# 1362|                   close(pdes[0]);
# 1363|               }
# 1364|->             close(pdes[1]);
# 1365|           }
# 1366|           execl("/bin/sh", "sh", "-c", command, (char *) NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def767]
xwayland-24.1.9/os/utils.c:1364:13: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1359:17: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1359:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1364:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1364:13: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1364:13: danger: ‘pdes[1]’ leaks here
# 1362|                   close(pdes[0]);
# 1363|               }
# 1364|->             close(pdes[1]);
# 1365|           }
# 1366|           execl("/bin/sh", "sh", "-c", command, (char *) NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def768]
xwayland-24.1.9/os/utils.c:1364:13: warning[-Wanalyzer-malloc-leak]: leak of ‘cur’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:16: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1346:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1348:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1348:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1350:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1350:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1359:17: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1359:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1364:13: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1364:13: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1364:13: danger: ‘cur’ leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
# 1362|                   close(pdes[0]);
# 1363|               }
# 1364|->             close(pdes[1]);
# 1365|           }
# 1366|           execl("/bin/sh", "sh", "-c", command, (char *) NULL);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def769]
xwayland-24.1.9/os/utils.c:1376:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[1]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1374:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1375:15: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1376:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1376:9: danger: ‘pdes[1]’ leaks here
# 1374|       if (*type == 'r') {
# 1375|           iop = fdopen(pdes[0], type);
# 1376|->         close(pdes[1]);
# 1377|       }
# 1378|       else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def770]
xwayland-24.1.9/os/utils.c:1376:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cur’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:16: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1374:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1375:15: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1376:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1376:9: danger: ‘cur’ leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
# 1374|       if (*type == 'r') {
# 1375|           iop = fdopen(pdes[0], type);
# 1376|->         close(pdes[1]);
# 1377|       }
# 1378|       else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def771]
xwayland-24.1.9/os/utils.c:1376:9: warning[-Wanalyzer-malloc-leak]: leak of ‘iop’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1374:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1375:15: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1375:15: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1376:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1376:9: danger: ‘iop’ leaks here; was allocated at [(16)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/15)
# 1374|       if (*type == 'r') {
# 1375|           iop = fdopen(pdes[0], type);
# 1376|->         close(pdes[1]);
# 1377|       }
# 1378|       else {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def772]
xwayland-24.1.9/os/utils.c:1380:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘pdes[0]’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1374:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1379:15: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1380:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1380:9: danger: ‘pdes[0]’ leaks here
# 1378|       else {
# 1379|           iop = fdopen(pdes[1], type);
# 1380|->         close(pdes[0]);
# 1381|       }
# 1382|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def773]
xwayland-24.1.9/os/utils.c:1380:9: warning[-Wanalyzer-malloc-leak]: leak of ‘cur’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:16: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1374:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1379:15: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1380:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1380:9: danger: ‘cur’ leaks here; was allocated at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
# 1378|       else {
# 1379|           iop = fdopen(pdes[1], type);
# 1380|->         close(pdes[0]);
# 1381|       }
# 1382|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def774]
xwayland-24.1.9/os/utils.c:1380:9: warning[-Wanalyzer-malloc-leak]: leak of ‘iop’
xwayland-24.1.9/os/utils.c:1310:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1313:10: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1313:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1316:8: branch_false: following ‘false’ branch (when ‘cur’ is non-NULL)...
xwayland-24.1.9/os/utils.c:1319:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1319:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1326:9: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1326:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1335:19: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1374:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1379:15: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1379:15: acquire_memory: allocated here
xwayland-24.1.9/os/utils.c:1380:9: throw: if ‘close’ throws an exception...
xwayland-24.1.9/os/utils.c:1380:9: danger: ‘iop’ leaks here; was allocated at [(16)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/15)
# 1378|       else {
# 1379|           iop = fdopen(pdes[1], type);
# 1380|->         close(pdes[0]);
# 1381|       }
# 1382|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def775]
xwayland-24.1.9/os/utils.c:1409:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(file,  type)’ where non-null expected
xwayland-24.1.9/os/utils.c:1403:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/utils.c:1406:11: branch_false: ...to here
xwayland-24.1.9/os/utils.c:1406:11: acquire_memory: this call could return NULL
xwayland-24.1.9/os/utils.c:1408:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/utils.c:1409:9: branch_true: ...to here
xwayland-24.1.9/os/utils.c:1409:9: danger: argument 1 (‘fopen(file,  type)’) from [(3)](sarif:/runs/0/results/32/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-401): [#def776]
xwayland-24.1.9/os/xdmauth.c:262:10: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
xwayland-24.1.9/os/xdmauth.c:245:1: enter_function: entry to ‘XdmAuthorizationValidate’
xwayland-24.1.9/os/xdmauth.c:253:8: branch_false: following ‘false’ branch (when ‘length == 24’)...
xwayland-24.1.9/os/xdmauth.c:258:14: branch_false: ...to here
xwayland-24.1.9/os/xdmauth.c:258:14: acquire_memory: allocated here
xwayland-24.1.9/os/xdmauth.c:259:8: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
xwayland-24.1.9/os/xdmauth.c:261:5: branch_false: ...to here
xwayland-24.1.9/os/xdmauth.c:261:5: call_function: calling ‘XdmClientAuthDecode’ from ‘XdmAuthorizationValidate’
xwayland-24.1.9/os/xdmauth.c:261:5: return_function: returning to ‘XdmAuthorizationValidate’ from ‘XdmClientAuthDecode’
xwayland-24.1.9/os/xdmauth.c:262:10: throw: if ‘XdmcpCompareKeys’ throws an exception...
xwayland-24.1.9/os/xdmauth.c:262:10: danger: ‘client’ leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
#  260|           return NULL;
#  261|       XdmClientAuthDecode(plain, client);
#  262|->     if (!XdmcpCompareKeys(&client->rho, rho)) {
#  263|           free(client);
#  264|           if (reason)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def777]
xwayland-24.1.9/os/xdmauth.c:382:9: warning[-Wanalyzer-malloc-leak]: leak of ‘plain’
xwayland-24.1.9/os/xdmauth.c:376:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/os/xdmauth.c:378:13: branch_false: ...to here
xwayland-24.1.9/os/xdmauth.c:378:13: acquire_memory: allocated here
xwayland-24.1.9/os/xdmauth.c:379:8: branch_false: following ‘false’ branch (when ‘plain’ is non-NULL)...
xwayland-24.1.9/os/xdmauth.c:381:10: branch_false: ...to here
xwayland-24.1.9/os/xdmauth.c:381:26: branch_true: following ‘true’ branch (when ‘auth’ is non-NULL)...
xwayland-24.1.9/os/xdmauth.c:382:9: branch_true: ...to here
xwayland-24.1.9/os/xdmauth.c:382:9: throw: if ‘XdmcpUnwrap’ throws an exception...
xwayland-24.1.9/os/xdmauth.c:382:9: danger: ‘plain’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  380|           return (XID) -1;
#  381|       for (auth = xdmAuth; auth; auth = auth->next) {
#  382|->         XdmcpUnwrap((unsigned char *) cookie, (unsigned char *) &auth->key,
#  383|                       plain, cookie_length);
#  384|           if ((client =

Error: GCC_ANALYZER_WARNING (CWE-476): [#def778]
xwayland-24.1.9/os/xdmcp.c:1514:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mcastinfo’
xwayland-24.1.9/os/xdmcp.c:1487:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/xdmcp.c:1488:9: branch_true: ...to here
xwayland-24.1.9/os/xdmcp.c:1496:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/os/xdmcp.c:1497:14: branch_true: ...to here
xwayland-24.1.9/os/xdmcp.c:1497:28: branch_true: following ‘true’ branch (when ‘ai’ is non-NULL)...
xwayland-24.1.9/os/xdmcp.c:1498:19: branch_true: ...to here
xwayland-24.1.9/os/xdmcp.c:1506:12: branch_false: following ‘false’ branch (when ‘ai’ is non-NULL)...
xwayland-24.1.9/os/xdmcp.c:1513:25: branch_false: ...to here
xwayland-24.1.9/os/xdmcp.c:1513:25: acquire_memory: this call could return NULL
xwayland-24.1.9/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: GCC_ANALYZER_WARNING (CWE-401): [#def779]
xwayland-24.1.9/present/present_fake.c:105:26: warning[-Wanalyzer-malloc-leak]: leak of ‘fake_vblank’
xwayland-24.1.9/present/present_fake.c:84:1: enter_function: entry to ‘present_fake_queue_vblank’
xwayland-24.1.9/present/present_fake.c:88:47: call_function: inlined call to ‘present_screen_priv’ from ‘present_fake_queue_vblank’
xwayland-24.1.9/present/present_fake.c:88:47: call_function: inlined call to ‘present_screen_priv’ from ‘present_fake_queue_vblank’
xwayland-24.1.9/present/present_fake.c:94:8: branch_false: following ‘false’ branch (when ‘delay > 0’)...
xwayland-24.1.9/present/present_fake.c:99:19: branch_false: ...to here
xwayland-24.1.9/present/present_fake.c:99:19: acquire_memory: allocated here
xwayland-24.1.9/present/present_fake.c:100:8: branch_false: following ‘false’ branch (when ‘fake_vblank’ is non-NULL)...
xwayland-24.1.9/present/present_fake.c:103:5: branch_false: ...to here
xwayland-24.1.9/present/present_fake.c:105:26: throw: if ‘TimerSet’ throws an exception...
xwayland-24.1.9/present/present_fake.c:105:26: danger: ‘fake_vblank’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
#  103|       fake_vblank->screen = screen;
#  104|       fake_vblank->event_id = event_id;
#  105|->     fake_vblank->timer = TimerSet(NULL, 0, delay, present_fake_do_timer, fake_vblank);
#  106|       if (!fake_vblank->timer) {
#  107|           free(fake_vblank);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def780]
xwayland-24.1.9/present/present_fence.c:83:9: warning[-Wanalyzer-malloc-leak]: leak of ‘present_fence’
xwayland-24.1.9/present/present_fence.c:73:21: acquire_memory: allocated here
xwayland-24.1.9/present/present_fence.c:74:8: branch_false: following ‘false’ branch (when ‘present_fence’ is non-NULL)...
xwayland-24.1.9/present/present_fence.c:77:5: branch_false: ...to here
xwayland-24.1.9/present/present_fence.c:83:9: throw: if ‘SyncAddTriggerToSyncObject’ throws an exception...
xwayland-24.1.9/present/present_fence.c:83:9: danger: ‘present_fence’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   81|       present_fence->trigger.CounterDestroyed = present_fence_sync_counter_destroyed;
#   82|   
#   83|->     if (SyncAddTriggerToSyncObject(&present_fence->trigger) != Success) {
#   84|           free (present_fence);
#   85|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def781]
xwayland-24.1.9/present/present_notify.c:84:18: warning[-Wanalyzer-malloc-leak]: leak of ‘notifies’
xwayland-24.1.9/present/present_notify.c:79:16: acquire_memory: allocated here
xwayland-24.1.9/present/present_notify.c:80:8: branch_false: following ‘false’ branch (when ‘notifies’ is non-NULL)...
xwayland-24.1.9/present/present_notify.c:80:8: branch_false: ...to here
xwayland-24.1.9/present/present_notify.c:83:17: branch_true: following ‘true’ branch (when ‘i < num_notifies’)...
xwayland-24.1.9/present/present_notify.c:84:65: branch_true: ...to here
xwayland-24.1.9/present/present_notify.c:84:18: throw: if ‘dixLookupWindow’ throws an exception...
xwayland-24.1.9/present/present_notify.c:84:18: danger: ‘notifies’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   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)
#   86|               goto bail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def782]
xwayland-24.1.9/present/present_notify.c:100:1: warning[-Wanalyzer-malloc-leak]: leak of ‘notifies’
xwayland-24.1.9/present/present_notify.c:79:16: acquire_memory: allocated here
xwayland-24.1.9/present/present_notify.c:80:8: branch_false: following ‘false’ branch (when ‘notifies’ is non-NULL)...
xwayland-24.1.9/present/present_notify.c:80:8: branch_false: ...to here
xwayland-24.1.9/present/present_notify.c:83:17: branch_false: following ‘false’ branch (when ‘i >= num_notifies’)...
xwayland-24.1.9/present/present_notify.c:83:17: branch_false: ...to here
xwayland-24.1.9/present/present_notify.c:100:1: danger: ‘notifies’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   98|       present_destroy_notifies(notifies, added);
#   99|       return status;
#  100|-> }
#  101|   
#  102|   void

Error: GCC_ANALYZER_WARNING (CWE-401): [#def783]
xwayland-24.1.9/present/present_vblank.c:73:47: warning[-Wanalyzer-malloc-leak]: leak of ‘vblank’
xwayland-24.1.9/present/present_vblank.c:174:1: enter_function: entry to ‘present_vblank_create’
xwayland-24.1.9/present/present_vblank.c:197:33: acquire_memory: allocated here
xwayland-24.1.9/present/present_vblank.c:199:8: branch_false: following ‘false’ branch (when ‘vblank’ is non-NULL)...
xwayland-24.1.9/present/present_vblank.c:202:9: branch_false: ...to here
xwayland-24.1.9/present/present_vblank.c:202:9: call_function: calling ‘present_vblank_init’ from ‘present_vblank_create’
#   71|   {
#   72|       ScreenPtr                   screen = window->drawable.pScreen;
#   73|->     present_window_priv_ptr     window_priv = present_get_window_priv(window, TRUE);
#   74|       present_screen_priv_ptr     screen_priv = present_screen_priv(screen);
#   75|       PresentFlipReason           reason = PRESENT_FLIP_REASON_UNKNOWN;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def784]
xwayland-24.1.9/randr/rrcrtc.c:195:5: warning[-Wanalyzer-null-argument]: use of NULL ‘outputs’ where non-null expected
xwayland-24.1.9/randr/rrcrtc.c:1291:1: enter_function: entry to ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1307:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1308:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1310:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1312:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1312:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1315:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1315:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1316:9: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1317:12: branch_false: following ‘false’ branch (when ‘numOutputs == 0’)...
xwayland-24.1.9/randr/rrcrtc.c:1334:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1369:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1386:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1387:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1387:16: return_function: returning to ‘ProcRRSetCrtcConfig’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrcrtc.c:1391:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1400:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1418:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1475:42: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1475:10: call_function: calling ‘RRCrtcSet’ from ‘ProcRRSetCrtcConfig’
#  193|        * Copy the new list of outputs into the crtc
#  194|        */
#  195|->     memcpy(crtc->outputs, outputs, numOutputs * sizeof(RROutputPtr));
#  196|       /*
#  197|        * Update remaining crtc fields

Error: GCC_ANALYZER_WARNING (CWE-476): [#def785]
xwayland-24.1.9/randr/rrcrtc.c:750:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outputs’
xwayland-24.1.9/randr/rrcrtc.c:1291:1: enter_function: entry to ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1307:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1308:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1310:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1312:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1312:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1315:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1315:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1316:9: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1317:12: branch_false: following ‘false’ branch (when ‘numOutputs == 0’)...
xwayland-24.1.9/randr/rrcrtc.c:1334:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1369:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1386:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1387:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1387:16: return_function: returning to ‘ProcRRSetCrtcConfig’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrcrtc.c:1391:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1400:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1418:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1475:42: branch_false: ...to here
xwayland-24.1.9/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): [#def786]
xwayland-24.1.9/randr/rrcrtc.c:764:10: warning[-Wanalyzer-null-argument]: use of NULL ‘outputs’ where non-null expected
xwayland-24.1.9/randr/rrcrtc.c:1291:1: enter_function: entry to ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1307:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1308:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1310:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1312:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1312:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1315:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1315:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1316:9: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1317:12: branch_false: following ‘false’ branch (when ‘numOutputs == 0’)...
xwayland-24.1.9/randr/rrcrtc.c:1334:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1369:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1386:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1387:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1387:16: return_function: returning to ‘ProcRRSetCrtcConfig’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrcrtc.c:1391:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1400:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1418:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1475:42: branch_false: ...to here
xwayland-24.1.9/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): [#def787]
xwayland-24.1.9/randr/rrcrtc.c:973:12: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rrcrtc.c:1686:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1687:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1687:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1690:10: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1690:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1693:15: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1695:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1696:17: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1696:17: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1697:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1703:27: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1713:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1686:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:973:12: danger: ‘extra’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  971|       }
#  972|   #endif
#  973|->     return ret;
#  974|   }
#  975|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def788]
xwayland-24.1.9/randr/rrcrtc.c:1046:5: warning[-Wanalyzer-malloc-leak]: leak of ‘outputs’
xwayland-24.1.9/randr/rrcrtc.c:1291:1: enter_function: entry to ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1307:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1308:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1310:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1312:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1312:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1315:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1315:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1321:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1321:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1322:12: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1322:12: branch_false: following ‘false’ branch (when ‘numOutputs != 0’)...
xwayland-24.1.9/randr/rrcrtc.c:1326:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1326:19: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1327:12: branch_false: following ‘false’ branch (when ‘outputs’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1334:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1369:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1386:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1387:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1387:16: return_function: returning to ‘ProcRRSetCrtcConfig’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrcrtc.c:1391:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1400:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1418:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1419:19: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1419:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1436:13: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1436:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1458:13: call_function: inlined call to ‘RRModeGetScanoutSize’ from ‘ProcRRSetCrtcConfig’
# 1044|       box.y2 = mode->mode.height;
# 1045|   
# 1046|->     pixman_transform_bounds(transform, &box);
# 1047|       *width = box.x2 - box.x1;
# 1048|       *height = box.y2 - box.y1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def789]
xwayland-24.1.9/randr/rrcrtc.c:1335:15: warning[-Wanalyzer-malloc-leak]: leak of ‘outputs’
xwayland-24.1.9/randr/rrcrtc.c:1307:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1308:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1310:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1312:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1312:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1315:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1315:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1321:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1321:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1322:12: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1322:12: branch_false: following ‘false’ branch (when ‘numOutputs != 0’)...
xwayland-24.1.9/randr/rrcrtc.c:1326:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1326:19: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1327:12: branch_false: following ‘false’ branch (when ‘outputs’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1334:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1335:15: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1335:15: throw: if ‘dixLookupResourceByType’ throws an exception...
xwayland-24.1.9/randr/rrcrtc.c:1335:15: danger: ‘outputs’ leaks here; was allocated at [(13)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/12)
# 1333|       outputIds = (RROutput *) (stuff + 1);
# 1334|       for (i = 0; i < numOutputs; i++) {
# 1335|->         ret = dixLookupResourceByType((void **) (outputs + i), outputIds[i],
# 1336|                                        RROutputType, client, DixSetAttrAccess);
# 1337|           if (ret != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def790]
xwayland-24.1.9/randr/rrcrtc.c:1389:12: warning[-Wanalyzer-malloc-leak]: leak of ‘outputs’
xwayland-24.1.9/randr/rrcrtc.c:1291:1: enter_function: entry to ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1307:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1308:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1310:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1312:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1312:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1315:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1315:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1321:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1321:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1322:12: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1322:12: branch_false: following ‘false’ branch (when ‘numOutputs != 0’)...
xwayland-24.1.9/randr/rrcrtc.c:1326:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1326:19: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1327:12: branch_false: following ‘false’ branch (when ‘outputs’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1334:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1369:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1386:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1387:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1387:16: return_function: returning to ‘ProcRRSetCrtcConfig’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrcrtc.c:1389:12: throw: if ‘ClientTimeToServerTime’ throws an exception...
xwayland-24.1.9/randr/rrcrtc.c:1389:12: danger: ‘outputs’ leaks here; was allocated at [(14)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/13)
# 1387|       pScrPriv = rrGetScrPriv(pScreen);
# 1388|   
# 1389|->     time = ClientTimeToServerTime(stuff->timestamp);
# 1390|   
# 1391|       if (!pScrPriv) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def791]
xwayland-24.1.9/randr/rrcrtc.c:1452:13: warning[-Wanalyzer-malloc-leak]: leak of ‘outputs’
xwayland-24.1.9/randr/rrcrtc.c:1291:1: enter_function: entry to ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1307:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1308:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1310:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1312:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1312:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1315:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1315:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1321:9: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1321:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1322:12: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1322:12: branch_false: following ‘false’ branch (when ‘numOutputs != 0’)...
xwayland-24.1.9/randr/rrcrtc.c:1326:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1326:19: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1327:12: branch_false: following ‘false’ branch (when ‘outputs’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1334:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1334:17: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1369:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1386:19: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1387:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSetCrtcConfig’
xwayland-24.1.9/randr/rrcrtc.c:1387:16: return_function: returning to ‘ProcRRSetCrtcConfig’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrcrtc.c:1391:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1400:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1418:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1419:19: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1419:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1436:13: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1436:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1452:13: throw: if ‘RRTransformCompute’ throws an exception...
xwayland-24.1.9/randr/rrcrtc.c:1452:13: danger: ‘outputs’ leaks here; was allocated at [(14)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/13)
# 1450|               }
# 1451|   
# 1452|->             RRTransformCompute(stuff->x, stuff->y,
# 1453|                                  mode->mode.width, mode->mode.height,
# 1454|                                  rotation,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def792]
xwayland-24.1.9/randr/rrcrtc.c:1712:5: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rrcrtc.c:1686:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1687:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1687:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1690:10: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1690:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1693:15: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1695:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1696:17: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1696:17: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1697:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1703:27: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1712:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/randr/rrcrtc.c:1712:5: danger: ‘extra’ leaks here; was allocated at [(9)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/8)
# 1710|           swaps(&reply.size);
# 1711|       }
# 1712|->     WriteToClient(client, sizeof(xRRGetCrtcGammaReply), &reply);
# 1713|       if (crtc->gammaSize) {
# 1714|           memcpy(extra, crtc->gammaRed, len);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def793]
xwayland-24.1.9/randr/rrcrtc.c:1714:9: warning[-Wanalyzer-null-argument]: use of NULL ‘extra’ where non-null expected
xwayland-24.1.9/randr/rrcrtc.c:1686:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1687:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1687:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1690:10: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1690:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1693:15: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1695:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1703:27: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1713:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1714:23: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1714:9: danger: argument 1 (‘extra’) NULL where non-null expected
# 1712|       WriteToClient(client, sizeof(xRRGetCrtcGammaReply), &reply);
# 1713|       if (crtc->gammaSize) {
# 1714|->         memcpy(extra, crtc->gammaRed, len);
# 1715|           client->pSwapReplyFunc = (ReplySwapPtr) CopySwap16Write;
# 1716|           WriteSwappedDataToClient(client, len, extra);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def794]
xwayland-24.1.9/randr/rrcrtc.c:1716:9: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rrcrtc.c:1686:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1687:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1687:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1690:10: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1690:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1693:15: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1695:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1696:17: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1696:17: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1697:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1703:27: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1713:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1714:23: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1716:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1716:9: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1716:9: throw: if ‘CopySwap16Write’ throws an exception...
xwayland-24.1.9/randr/rrcrtc.c:1716:9: danger: ‘extra’ leaks here; was allocated at [(9)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/8)
# 1714|           memcpy(extra, crtc->gammaRed, len);
# 1715|           client->pSwapReplyFunc = (ReplySwapPtr) CopySwap16Write;
# 1716|->         WriteSwappedDataToClient(client, len, extra);
# 1717|           free(extra);
# 1718|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def795]
xwayland-24.1.9/randr/rrcrtc.c:1835:5: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
xwayland-24.1.9/randr/rrcrtc.c:1841:1: enter_function: entry to ‘ProcRRGetCrtcTransform’
xwayland-24.1.9/randr/rrcrtc.c:1850:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1851:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1851:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1853:20: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1859:13: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1860:8: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1863:5: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1870:5: call_function: calling ‘transform_encode’ from ‘ProcRRGetCrtcTransform’
# 1833|                    PictTransform * pict)
# 1834|   {
# 1835|->     xRenderTransform_from_PictTransform(wire, pict);
# 1836|       if (client->swapped)
# 1837|           SwapLongs((CARD32 *) wire, bytes_to_int32(sizeof(xRenderTransform)));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def796]
xwayland-24.1.9/randr/rrcrtc.c:2027:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_scanout_pixmap’
xwayland-24.1.9/randr/rrcrtc.c:1983:1: enter_function: entry to ‘RRReplaceScanoutPixmap’
xwayland-24.1.9/randr/rrcrtc.c:1985:5: call_function: calling ‘dixLookupPrivate’ from ‘RRReplaceScanoutPixmap’
xwayland-24.1.9/randr/rrcrtc.c:1985:5: return_function: returning to ‘RRReplaceScanoutPixmap’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrcrtc.c:1990:28: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1991:8: branch_false: following ‘false’ branch (when ‘saved_scanout_pixmap’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1991:8: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1994:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1995:26: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2006:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:2011:21: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2018:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:2020:16: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2020:16: branch_false: following ‘false’ branch (when ‘enable != 0’)...
xwayland-24.1.9/randr/rrcrtc.c:2024:21: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2024:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:2026:17: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2027:17: throw: if the called function throws an exception...
xwayland-24.1.9/randr/rrcrtc.c:2027:17: danger: ‘saved_scanout_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/12)
# 2025|                   /* if the size no longer fits then drop off */
# 2026|                   crtc->scanout_pixmap = NULL;
# 2027|->                 pScrPriv->rrCrtcSetScanoutPixmap(crtc, crtc->scanout_pixmap);
# 2028|   
# 2029|                   (*pScrPriv->rrCrtcSet) (pDrawable->pScreen, crtc, crtc->mode, crtc->x, crtc->y,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def797]
xwayland-24.1.9/randr/rrcrtc.c:2029:17: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_scanout_pixmap’
xwayland-24.1.9/randr/rrcrtc.c:1983:1: enter_function: entry to ‘RRReplaceScanoutPixmap’
xwayland-24.1.9/randr/rrcrtc.c:1985:5: call_function: calling ‘dixLookupPrivate’ from ‘RRReplaceScanoutPixmap’
xwayland-24.1.9/randr/rrcrtc.c:1985:5: return_function: returning to ‘RRReplaceScanoutPixmap’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrcrtc.c:1990:28: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1991:8: branch_false: following ‘false’ branch (when ‘saved_scanout_pixmap’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1991:8: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1994:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1995:26: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2006:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:2011:21: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2018:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:2020:16: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2020:16: branch_false: following ‘false’ branch (when ‘enable != 0’)...
xwayland-24.1.9/randr/rrcrtc.c:2024:21: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2024:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:2026:17: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2029:17: throw: if the called function throws an exception...
xwayland-24.1.9/randr/rrcrtc.c:2029:17: danger: ‘saved_scanout_pixmap’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
# 2027|                   pScrPriv->rrCrtcSetScanoutPixmap(crtc, crtc->scanout_pixmap);
# 2028|   
# 2029|->                 (*pScrPriv->rrCrtcSet) (pDrawable->pScreen, crtc, crtc->mode, crtc->x, crtc->y,
# 2030|                                           crtc->rotation, crtc->numOutputs, crtc->outputs);
# 2031|                   saved_scanout_pixmap[i] = crtc->scanout_pixmap;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def798]
xwayland-24.1.9/randr/rrcrtc.c:2056:13: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_scanout_pixmap’
xwayland-24.1.9/randr/rrcrtc.c:1983:1: enter_function: entry to ‘RRReplaceScanoutPixmap’
xwayland-24.1.9/randr/rrcrtc.c:1985:5: call_function: calling ‘dixLookupPrivate’ from ‘RRReplaceScanoutPixmap’
xwayland-24.1.9/randr/rrcrtc.c:1985:5: return_function: returning to ‘RRReplaceScanoutPixmap’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrcrtc.c:1990:28: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1991:8: branch_false: following ‘false’ branch (when ‘saved_scanout_pixmap’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1991:8: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1994:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1995:26: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2049:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:2050:26: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2052:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:2055:12: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2055:12: branch_true: following ‘true’ branch (when ‘ret != 0’)...
xwayland-24.1.9/randr/rrcrtc.c:2056:13: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2056:13: throw: if the called function throws an exception...
xwayland-24.1.9/randr/rrcrtc.c:2056:13: danger: ‘saved_scanout_pixmap’ leaks here; was allocated at [(11)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/10)
# 2054|   
# 2055|           if (ret) {
# 2056|->             pScrPriv->rrCrtcSetScanoutPixmap(crtc, crtc->scanout_pixmap);
# 2057|   
# 2058|               (*pScrPriv->rrCrtcSet) (pDrawable->pScreen, crtc, crtc->mode, crtc->x, crtc->y,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def799]
xwayland-24.1.9/randr/rrcrtc.c:2058:13: warning[-Wanalyzer-malloc-leak]: leak of ‘saved_scanout_pixmap’
xwayland-24.1.9/randr/rrcrtc.c:1983:1: enter_function: entry to ‘RRReplaceScanoutPixmap’
xwayland-24.1.9/randr/rrcrtc.c:1985:5: call_function: calling ‘dixLookupPrivate’ from ‘RRReplaceScanoutPixmap’
xwayland-24.1.9/randr/rrcrtc.c:1985:5: return_function: returning to ‘RRReplaceScanoutPixmap’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrcrtc.c:1990:28: acquire_memory: allocated here
xwayland-24.1.9/randr/rrcrtc.c:1991:8: branch_false: following ‘false’ branch (when ‘saved_scanout_pixmap’ is non-NULL)...
xwayland-24.1.9/randr/rrcrtc.c:1991:8: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:1994:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:1995:26: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2049:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrcrtc.c:2050:26: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2052:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrcrtc.c:2055:12: branch_false: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2055:12: branch_true: following ‘true’ branch (when ‘ret != 0’)...
xwayland-24.1.9/randr/rrcrtc.c:2056:13: branch_true: ...to here
xwayland-24.1.9/randr/rrcrtc.c:2058:13: throw: if the called function throws an exception...
xwayland-24.1.9/randr/rrcrtc.c:2058:13: danger: ‘saved_scanout_pixmap’ leaks here; was allocated at [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10)
# 2056|               pScrPriv->rrCrtcSetScanoutPixmap(crtc, crtc->scanout_pixmap);
# 2057|   
# 2058|->             (*pScrPriv->rrCrtcSet) (pDrawable->pScreen, crtc, crtc->mode, crtc->x, crtc->y,
# 2059|                                       crtc->rotation, crtc->numOutputs, crtc->outputs);
# 2060|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def800]
xwayland-24.1.9/randr/rrdispatch.c:123:30: warning[-Wanalyzer-malloc-leak]: leak of ‘pRREvent’
xwayland-24.1.9/randr/rrdispatch.c:72:1: enter_function: entry to ‘ProcRRSelectInput’
xwayland-24.1.9/randr/rrdispatch.c:75:5: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSelectInput’
xwayland-24.1.9/randr/rrdispatch.c:75:5: return_function: returning to ‘ProcRRSelectInput’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrdispatch.c:82:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:83:33: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:84:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:86:10: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:88:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:91:9: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:91:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrdispatch.c:98:33: branch_true: ...to here
xwayland-24.1.9/randr/rrdispatch.c:100:9: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSelectInput’
xwayland-24.1.9/randr/rrdispatch.c:100:9: return_function: returning to ‘ProcRRSelectInput’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrdispatch.c:103:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:112:37: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:112:37: acquire_memory: allocated here
xwayland-24.1.9/randr/rrdispatch.c:113:16: branch_false: following ‘false’ branch (when ‘pRREvent’ is non-NULL)...
xwayland-24.1.9/randr/rrdispatch.c:115:13: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:123:30: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/randr/rrdispatch.c:123:30: danger: ‘pRREvent’ leaks here; was allocated at [(32)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/31)
#  121|                * the client goes away
#  122|                */
#  123|->             clientResource = FakeClientID(client->index);
#  124|               pRREvent->clientResource = clientResource;
#  125|               if (!AddResource(clientResource, RRClientType, (void *) pRREvent))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def801]
xwayland-24.1.9/randr/rrdispatch.c:125:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pRREvent’
xwayland-24.1.9/randr/rrdispatch.c:72:1: enter_function: entry to ‘ProcRRSelectInput’
xwayland-24.1.9/randr/rrdispatch.c:75:5: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSelectInput’
xwayland-24.1.9/randr/rrdispatch.c:75:5: return_function: returning to ‘ProcRRSelectInput’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrdispatch.c:82:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:83:33: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:84:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:86:10: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:88:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:91:9: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:91:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrdispatch.c:98:33: branch_true: ...to here
xwayland-24.1.9/randr/rrdispatch.c:100:9: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSelectInput’
xwayland-24.1.9/randr/rrdispatch.c:100:9: return_function: returning to ‘ProcRRSelectInput’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrdispatch.c:112:37: acquire_memory: allocated here
xwayland-24.1.9/randr/rrdispatch.c:113:16: branch_false: following ‘false’ branch (when ‘pRREvent’ is non-NULL)...
xwayland-24.1.9/randr/rrdispatch.c:115:13: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:125:18: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/randr/rrdispatch.c:125:18: danger: ‘pRREvent’ leaks here; was allocated at [(30)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/29)
#  123|               clientResource = FakeClientID(client->index);
#  124|               pRREvent->clientResource = clientResource;
#  125|->             if (!AddResource(clientResource, RRClientType, (void *) pRREvent))
#  126|                   return BadAlloc;
#  127|               /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def802]
xwayland-24.1.9/randr/rrdispatch.c:136:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pHead’
xwayland-24.1.9/randr/rrdispatch.c:72:1: enter_function: entry to ‘ProcRRSelectInput’
xwayland-24.1.9/randr/rrdispatch.c:75:5: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSelectInput’
xwayland-24.1.9/randr/rrdispatch.c:75:5: return_function: returning to ‘ProcRRSelectInput’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrdispatch.c:82:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:83:33: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:84:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:86:10: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:88:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:91:9: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:91:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrdispatch.c:98:33: branch_true: ...to here
xwayland-24.1.9/randr/rrdispatch.c:100:9: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSelectInput’
xwayland-24.1.9/randr/rrdispatch.c:100:9: return_function: returning to ‘ProcRRSelectInput’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrdispatch.c:113:16: branch_false: following ‘false’ branch (when ‘pRREvent’ is non-NULL)...
xwayland-24.1.9/randr/rrdispatch.c:115:13: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:125:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:133:17: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:133:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrdispatch.c:134:40: branch_true: ...to here
xwayland-24.1.9/randr/rrdispatch.c:134:40: acquire_memory: allocated here
xwayland-24.1.9/randr/rrdispatch.c:135:20: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrdispatch.c:136:22: branch_false: ...to here
xwayland-24.1.9/randr/rrdispatch.c:136:22: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/randr/rrdispatch.c:136:22: danger: ‘pHead’ leaks here; was allocated at [(36)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/35)
#  134|                   pHead = (RREventPtr *) malloc(sizeof(RREventPtr));
#  135|                   if (!pHead ||
#  136|->                     !AddResource(pWin->drawable.id, RREventType,
#  137|                                    (void *) pHead)) {
#  138|                       FreeResource(clientResource, RT_NONE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def803]
xwayland-24.1.9/randr/rrinfo.c:275:12: warning[-Wanalyzer-malloc-leak]: leak of ‘pNew’
xwayland-24.1.9/randr/rrinfo.c:248:1: enter_function: entry to ‘RRRegisterSize’
xwayland-24.1.9/randr/rrinfo.c:251:5: call_function: calling ‘dixLookupPrivate’ from ‘RRRegisterSize’
xwayland-24.1.9/randr/rrinfo.c:251:5: return_function: returning to ‘RRRegisterSize’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrinfo.c:256:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrinfo.c:259:5: branch_false: ...to here
xwayland-24.1.9/randr/rrinfo.c:269:12: acquire_memory: allocated here
xwayland-24.1.9/randr/rrinfo.c:271:8: branch_false: following ‘false’ branch (when ‘pNew’ is non-NULL)...
xwayland-24.1.9/randr/rrinfo.c:273:10: branch_false: ...to here
xwayland-24.1.9/randr/rrinfo.c:275:12: danger: ‘pNew’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  273|       pNew[pScrPriv->nSizes++] = tmp;
#  274|       pScrPriv->pSizes = pNew;
#  275|->     return &pNew[pScrPriv->nSizes - 1];
#  276|   }
#  277|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def804]
xwayland-24.1.9/randr/rrlease.c:266:14: warning[-Wanalyzer-malloc-leak]: leak of ‘lease’
xwayland-24.1.9/randr/rrlease.c:208:1: enter_function: entry to ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:223:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:225:5: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:225:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:227:35: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:228:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:231:11: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:233:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:236:20: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:237:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:237:16: return_function: returning to ‘ProcRRCreateLease’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrlease.c:239:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:242:10: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:257:13: call_function: calling ‘RRLeaseAlloc’ from ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:257:13: return_function: returning to ‘ProcRRCreateLease’ from ‘RRLeaseAlloc’
xwayland-24.1.9/randr/rrlease.c:258:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:262:5: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:263:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrlease.c:266:14: branch_true: ...to here
xwayland-24.1.9/randr/rrlease.c:266:14: throw: if ‘dixLookupResourceByType’ throws an exception...
xwayland-24.1.9/randr/rrlease.c:266:14: danger: ‘lease’ leaks here; was allocated at [(23)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/22)
#  264|           RRCrtcPtr crtc;
#  265|   
#  266|-> 	rc = dixLookupResourceByType((void **)&crtc, crtcIds[c],
#  267|                                        RRCrtcType, client, DixSetAttrAccess);
#  268|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def805]
xwayland-24.1.9/randr/rrlease.c:288:14: warning[-Wanalyzer-malloc-leak]: leak of ‘lease’
xwayland-24.1.9/randr/rrlease.c:208:1: enter_function: entry to ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:223:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:225:5: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:225:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:227:35: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:228:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:231:11: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:233:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:236:20: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:237:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:237:16: return_function: returning to ‘ProcRRCreateLease’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrlease.c:239:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:242:10: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:257:13: call_function: calling ‘RRLeaseAlloc’ from ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:257:13: return_function: returning to ‘ProcRRCreateLease’ from ‘RRLeaseAlloc’
xwayland-24.1.9/randr/rrlease.c:258:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:262:5: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:263:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:284:41: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:285:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrlease.c:288:14: branch_true: ...to here
xwayland-24.1.9/randr/rrlease.c:288:14: throw: if ‘dixLookupResourceByType’ throws an exception...
xwayland-24.1.9/randr/rrlease.c:288:14: danger: ‘lease’ leaks here; was allocated at [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
#  286|           RROutputPtr output;
#  287|   
#  288|-> 	rc = dixLookupResourceByType((void **)&output, outputIds[o],
#  289|                                        RROutputType, client, DixSetAttrAccess);
#  290|           if (rc != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def806]
xwayland-24.1.9/randr/rrlease.c:305:14: warning[-Wanalyzer-malloc-leak]: leak of ‘lease’
xwayland-24.1.9/randr/rrlease.c:208:1: enter_function: entry to ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:223:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:225:5: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:225:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:227:35: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:228:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:231:11: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:233:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:236:20: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:237:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:237:16: return_function: returning to ‘ProcRRCreateLease’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrlease.c:239:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:242:10: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:257:13: call_function: calling ‘RRLeaseAlloc’ from ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:257:13: return_function: returning to ‘ProcRRCreateLease’ from ‘RRLeaseAlloc’
xwayland-24.1.9/randr/rrlease.c:258:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:262:5: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:263:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:284:41: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:285:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:304:9: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:304:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrlease.c:305:14: branch_true: ...to here
xwayland-24.1.9/randr/rrlease.c:305:14: throw: if the called function throws an exception...
xwayland-24.1.9/randr/rrlease.c:305:14: danger: ‘lease’ leaks here; was allocated at [(23)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/22)
#  303|   
#  304|       if (scr_priv->rrRequestLease) {
#  305|->         rc = scr_priv->rrRequestLease(client, screen, lease);
#  306|           if (rc == Success)
#  307|               return Success;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def807]
xwayland-24.1.9/randr/rrlease.c:311:14: warning[-Wanalyzer-malloc-leak]: leak of ‘lease’
xwayland-24.1.9/randr/rrlease.c:208:1: enter_function: entry to ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:223:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:225:5: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:225:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:227:35: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:228:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:231:11: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:233:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:236:20: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:237:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:237:16: return_function: returning to ‘ProcRRCreateLease’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrlease.c:239:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:242:10: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:257:13: call_function: calling ‘RRLeaseAlloc’ from ‘ProcRRCreateLease’
xwayland-24.1.9/randr/rrlease.c:257:13: return_function: returning to ‘ProcRRCreateLease’ from ‘RRLeaseAlloc’
xwayland-24.1.9/randr/rrlease.c:258:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:262:5: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:263:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:284:41: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:285:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:304:9: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:304:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrlease.c:311:14: branch_false: ...to here
xwayland-24.1.9/randr/rrlease.c:311:14: throw: if the called function throws an exception...
xwayland-24.1.9/randr/rrlease.c:311:14: danger: ‘lease’ leaks here; was allocated at [(23)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/22)
#  309|               goto bail_lease;
#  310|       } else {
#  311|->         rc = scr_priv->rrCreateLease(screen, lease, &fd);
#  312|           if (rc != Success)
#  313|               goto bail_lease;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def808]
xwayland-24.1.9/randr/rrmode.c:91:21: warning[-Wanalyzer-malloc-leak]: leak of ‘mode’
xwayland-24.1.9/randr/rrmode.c:68:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmode.c:71:39: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:71:12: acquire_memory: allocated here
xwayland-24.1.9/randr/rrmode.c:72:8: branch_false: following ‘false’ branch (when ‘mode’ is non-NULL)...
xwayland-24.1.9/randr/rrmode.c:74:5: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:81:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmode.c:84:20: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:86:8: branch_false: following ‘false’ branch (when ‘newModes’ is non-NULL)...
xwayland-24.1.9/randr/rrmode.c:91:21: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:91:21: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/randr/rrmode.c:91:21: danger: ‘mode’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   89|       }
#   90|   
#   91|->     mode->mode.id = FakeClientID(0);
#   92|       if (!AddResource(mode->mode.id, RRModeType, (void *) mode)) {
#   93|           free(newModes);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
xwayland-24.1.9/randr/rrmode.c:91:21: warning[-Wanalyzer-malloc-leak]: leak of ‘newModes’
xwayland-24.1.9/randr/rrmode.c:68:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmode.c:71:39: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:72:8: branch_false: following ‘false’ branch (when ‘mode’ is non-NULL)...
xwayland-24.1.9/randr/rrmode.c:74:5: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:81:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmode.c:84:20: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:84:20: acquire_memory: allocated here
xwayland-24.1.9/randr/rrmode.c:86:8: branch_false: following ‘false’ branch (when ‘newModes’ is non-NULL)...
xwayland-24.1.9/randr/rrmode.c:91:21: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:91:21: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/randr/rrmode.c:91:21: danger: ‘newModes’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#   89|       }
#   90|   
#   91|->     mode->mode.id = FakeClientID(0);
#   92|       if (!AddResource(mode->mode.id, RRModeType, (void *) mode)) {
#   93|           free(newModes);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def810]
xwayland-24.1.9/randr/rrmode.c:92:10: warning[-Wanalyzer-malloc-leak]: leak of ‘mode’
xwayland-24.1.9/randr/rrmode.c:68:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmode.c:71:39: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:71:12: acquire_memory: allocated here
xwayland-24.1.9/randr/rrmode.c:72:8: branch_false: following ‘false’ branch (when ‘mode’ is non-NULL)...
xwayland-24.1.9/randr/rrmode.c:74:5: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:81:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmode.c:84:20: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:86:8: branch_false: following ‘false’ branch (when ‘newModes’ is non-NULL)...
xwayland-24.1.9/randr/rrmode.c:91:21: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:92:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/randr/rrmode.c:92:10: danger: ‘mode’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#   90|   
#   91|       mode->mode.id = FakeClientID(0);
#   92|->     if (!AddResource(mode->mode.id, RRModeType, (void *) mode)) {
#   93|           free(newModes);
#   94|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def811]
xwayland-24.1.9/randr/rrmode.c:92:10: warning[-Wanalyzer-malloc-leak]: leak of ‘newModes’
xwayland-24.1.9/randr/rrmode.c:68:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmode.c:71:39: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:72:8: branch_false: following ‘false’ branch (when ‘mode’ is non-NULL)...
xwayland-24.1.9/randr/rrmode.c:74:5: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:81:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmode.c:84:20: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:84:20: acquire_memory: allocated here
xwayland-24.1.9/randr/rrmode.c:86:8: branch_false: following ‘false’ branch (when ‘newModes’ is non-NULL)...
xwayland-24.1.9/randr/rrmode.c:91:21: branch_false: ...to here
xwayland-24.1.9/randr/rrmode.c:92:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/randr/rrmode.c:92:10: danger: ‘newModes’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
#   90|   
#   91|       mode->mode.id = FakeClientID(0);
#   92|->     if (!AddResource(mode->mode.id, RRModeType, (void *) mode)) {
#   93|           free(newModes);
#   94|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def812]
xwayland-24.1.9/randr/rrmonitor.c:411:25: warning[-Wanalyzer-malloc-leak]: leak of ‘RRMonitorAlloc((int)*stuff.monitor.noutput)’
xwayland-24.1.9/randr/rrmonitor.c:662:1: enter_function: entry to ‘ProcRRSetMonitor’
xwayland-24.1.9/randr/rrmonitor.c:670:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmonitor.c:672:9: branch_false: ...to here
xwayland-24.1.9/randr/rrmonitor.c:672:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmonitor.c:675:34: branch_false: ...to here
xwayland-24.1.9/randr/rrmonitor.c:676:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmonitor.c:678:20: branch_false: ...to here
xwayland-24.1.9/randr/rrmonitor.c:680:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmonitor.c:684:30: branch_false: ...to here
xwayland-24.1.9/randr/rrmonitor.c:684:15: call_function: calling ‘RRMonitorAlloc’ from ‘ProcRRSetMonitor’
xwayland-24.1.9/randr/rrmonitor.c:684:15: return_function: returning to ‘ProcRRSetMonitor’ from ‘RRMonitorAlloc’
xwayland-24.1.9/randr/rrmonitor.c:685:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrmonitor.c:689:5: branch_false: ...to here
xwayland-24.1.9/randr/rrmonitor.c:701:9: call_function: calling ‘RRMonitorAdd’ from ‘ProcRRSetMonitor’
#  409|       RRMonitorPtr        monitor;
#  410|   
#  411|->     monitor = calloc(1, sizeof (RRMonitorRec) + noutput * sizeof (RROutput));
#  412|       if (!monitor)
#  413|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def813]
xwayland-24.1.9/randr/rroutput.c:86:18: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
xwayland-24.1.9/randr/rroutput.c:63:1: enter_function: entry to ‘RROutputCreate’
xwayland-24.1.9/randr/rroutput.c:71:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:74:16: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:74:16: call_function: calling ‘dixLookupPrivate’ from ‘RROutputCreate’
xwayland-24.1.9/randr/rroutput.c:74:16: return_function: returning to ‘RROutputCreate’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rroutput.c:78:8: branch_false: following ‘false’ branch (when ‘outputs’ is non-NULL)...
xwayland-24.1.9/randr/rroutput.c:81:5: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:83:14: acquire_memory: allocated here
xwayland-24.1.9/randr/rroutput.c:84:8: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
xwayland-24.1.9/randr/rroutput.c:86:18: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:86:18: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/randr/rroutput.c:86:18: danger: ‘output’ leaks here; was allocated at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#   84|       if (!output)
#   85|           return NULL;
#   86|->     output->id = FakeClientID(0);
#   87|       output->pScreen = pScreen;
#   88|       output->name = (char *) (output + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def814]
xwayland-24.1.9/randr/rroutput.c:112:10: warning[-Wanalyzer-malloc-leak]: leak of ‘output’
xwayland-24.1.9/randr/rroutput.c:63:1: enter_function: entry to ‘RROutputCreate’
xwayland-24.1.9/randr/rroutput.c:71:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:74:16: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:74:16: call_function: calling ‘dixLookupPrivate’ from ‘RROutputCreate’
xwayland-24.1.9/randr/rroutput.c:74:16: return_function: returning to ‘RROutputCreate’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rroutput.c:78:8: branch_false: following ‘false’ branch (when ‘outputs’ is non-NULL)...
xwayland-24.1.9/randr/rroutput.c:81:5: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:83:14: acquire_memory: allocated here
xwayland-24.1.9/randr/rroutput.c:84:8: branch_false: following ‘false’ branch (when ‘output’ is non-NULL)...
xwayland-24.1.9/randr/rroutput.c:86:18: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:112:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/randr/rroutput.c:112:10: danger: ‘output’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  110|       output->devPrivate = devPrivate;
#  111|   
#  112|->     if (!AddResource(output->id, RROutputType, (void *) output))
#  113|           return NULL;
#  114|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def815]
xwayland-24.1.9/randr/rroutput.c:153:5: warning[-Wanalyzer-null-argument]: use of NULL ‘newClones’ where non-null expected
xwayland-24.1.9/randr/rroutput.c:145:8: branch_false: following ‘false’ branch (when ‘numClones == 0’)...
xwayland-24.1.9/randr/rroutput.c:152:10: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:153:5: danger: argument 1 (‘newClones’) NULL where non-null expected
#  151|           newClones = NULL;
#  152|       free(output->clones);
#  153|->     memcpy(newClones, clones, numClones * sizeof(RROutputPtr));
#  154|       output->clones = newClones;
#  155|       output->numClones = numClones;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def816]
xwayland-24.1.9/randr/rroutput.c:187:13: warning[-Wanalyzer-malloc-leak]: leak of ‘newModes’
xwayland-24.1.9/randr/rroutput.c:178:8: branch_true: following ‘true’ branch (when ‘numModes != 0’)...
xwayland-24.1.9/randr/rroutput.c:179:20: branch_true: ...to here
xwayland-24.1.9/randr/rroutput.c:179:20: acquire_memory: allocated here
xwayland-24.1.9/randr/rroutput.c:180:12: branch_false: following ‘false’ branch (when ‘newModes’ is non-NULL)...
xwayland-24.1.9/randr/rroutput.c:185:9: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:185:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rroutput.c:185:8: branch_true: ...to here
xwayland-24.1.9/randr/rroutput.c:186:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rroutput.c:187:27: branch_true: ...to here
xwayland-24.1.9/randr/rroutput.c:187:13: throw: if ‘RRModeDestroy’ throws an exception...
xwayland-24.1.9/randr/rroutput.c:187:13: danger: ‘newModes’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  185|       if (output->modes) {
#  186|           for (i = 0; i < output->numModes; i++)
#  187|->             RRModeDestroy(output->modes[i]);
#  188|           free(output->modes);
#  189|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def817]
xwayland-24.1.9/randr/rroutput.c:190:5: warning[-Wanalyzer-null-argument]: use of NULL ‘newModes’ where non-null expected
xwayland-24.1.9/randr/rroutput.c:178:8: branch_false: following ‘false’ branch (when ‘numModes == 0’)...
xwayland-24.1.9/randr/rroutput.c:185:9: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:190:5: danger: argument 1 (‘newModes’) NULL where non-null expected
#  188|           free(output->modes);
#  189|       }
#  190|->     memcpy(newModes, modes, numModes * sizeof(RRModePtr));
#  191|       output->modes = newModes;
#  192|       output->numModes = numModes;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def818]
xwayland-24.1.9/randr/rroutput.c:285:5: warning[-Wanalyzer-null-argument]: use of NULL ‘newCrtcs’ where non-null expected
xwayland-24.1.9/randr/rroutput.c:277:8: branch_false: following ‘false’ branch (when ‘numCrtcs == 0’)...
xwayland-24.1.9/randr/rroutput.c:284:10: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:285:5: danger: argument 1 (‘newCrtcs’) NULL where non-null expected
#  283|           newCrtcs = NULL;
#  284|       free(output->crtcs);
#  285|->     memcpy(newCrtcs, crtcs, numCrtcs * sizeof(RRCrtcPtr));
#  286|       output->crtcs = newCrtcs;
#  287|       output->numCrtcs = numCrtcs;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def819]
xwayland-24.1.9/randr/rroutput.c:540:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/randr/rroutput.c:450:1: enter_function: entry to ‘ProcRRGetOutputInfo’
xwayland-24.1.9/randr/rroutput.c:466:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:467:5: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:467:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:469:14: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:472:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRGetOutputInfo’
xwayland-24.1.9/randr/rroutput.c:472:16: return_function: returning to ‘ProcRRGetOutputInfo’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rroutput.c:474:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:507:31: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:525:12: branch_false: following ‘false’ branch (when ‘extraLen == 0’)...
xwayland-24.1.9/randr/rroutput.c:535:37: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:539:21: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rroutput.c:540:24: branch_true: ...to here
xwayland-24.1.9/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-688): [#def820]
xwayland-24.1.9/randr/rroutput.c:558:5: warning[-Wanalyzer-null-argument]: use of NULL ‘name’ where non-null expected
xwayland-24.1.9/randr/rroutput.c:450:1: enter_function: entry to ‘ProcRRGetOutputInfo’
xwayland-24.1.9/randr/rroutput.c:466:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:467:5: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:467:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:469:14: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:472:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRGetOutputInfo’
xwayland-24.1.9/randr/rroutput.c:472:16: return_function: returning to ‘ProcRRGetOutputInfo’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rroutput.c:474:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rroutput.c:478:31: branch_true: ...to here
xwayland-24.1.9/randr/rroutput.c:493:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:558:32: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:558:5: danger: argument 1 (‘name’) NULL where non-null expected
#  556|           }
#  557|       }
#  558|->     memcpy(name, output->name, output->nameLength);
#  559|       if (client->swapped) {
#  560|           swaps(&rep.sequenceNumber);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def821]
xwayland-24.1.9/randr/rroutput.c:572:5: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rroutput.c:450:1: enter_function: entry to ‘ProcRRGetOutputInfo’
xwayland-24.1.9/randr/rroutput.c:466:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:467:5: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:467:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:469:14: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:472:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRGetOutputInfo’
xwayland-24.1.9/randr/rroutput.c:472:16: return_function: returning to ‘ProcRRGetOutputInfo’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rroutput.c:474:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:507:31: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:525:12: branch_true: following ‘true’ branch (when ‘extraLen != 0’)...
xwayland-24.1.9/randr/rroutput.c:526:27: call_function: inlined call to ‘bytes_to_int32’ from ‘ProcRRGetOutputInfo’
xwayland-24.1.9/randr/rroutput.c:527:21: acquire_memory: allocated here
xwayland-24.1.9/randr/rroutput.c:528:16: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rroutput.c:535:37: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:559:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:572:5: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:572:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/randr/rroutput.c:572:5: danger: ‘extra’ leaks here; was allocated at [(20)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/19)
#  570|           swaps(&rep.nameLength);
#  571|       }
#  572|->     WriteToClient(client, sizeof(xRRGetOutputInfoReply), &rep);
#  573|       if (extraLen) {
#  574|           WriteToClient(client, extraLen, extra);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def822]
xwayland-24.1.9/randr/rroutput.c:574:9: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rroutput.c:450:1: enter_function: entry to ‘ProcRRGetOutputInfo’
xwayland-24.1.9/randr/rroutput.c:466:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:467:5: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:467:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:469:14: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:472:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRGetOutputInfo’
xwayland-24.1.9/randr/rroutput.c:472:16: return_function: returning to ‘ProcRRGetOutputInfo’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rroutput.c:474:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:507:31: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:525:12: branch_true: following ‘true’ branch (when ‘extraLen != 0’)...
xwayland-24.1.9/randr/rroutput.c:526:27: call_function: inlined call to ‘bytes_to_int32’ from ‘ProcRRGetOutputInfo’
xwayland-24.1.9/randr/rroutput.c:527:21: acquire_memory: allocated here
xwayland-24.1.9/randr/rroutput.c:528:16: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rroutput.c:535:37: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:559:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rroutput.c:572:5: branch_false: ...to here
xwayland-24.1.9/randr/rroutput.c:573:8: branch_true: following ‘true’ branch (when ‘extraLen != 0’)...
xwayland-24.1.9/randr/rroutput.c:574:9: branch_true: ...to here
xwayland-24.1.9/randr/rroutput.c:574:9: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/randr/rroutput.c:574:9: danger: ‘extra’ leaks here; was allocated at [(20)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/19)
#  572|       WriteToClient(client, sizeof(xRRGetOutputInfoReply), &rep);
#  573|       if (extraLen) {
#  574|->         WriteToClient(client, extraLen, extra);
#  575|           free(extra);
#  576|       }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def823]
xwayland-24.1.9/randr/rrproperty.c:385:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘new_values’ where non-null expected
xwayland-24.1.9/randr/rrproperty.c:352:1: enter_function: entry to ‘RRConfigureOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:356:26: call_function: calling ‘RRQueryOutputProperty’ from ‘RRConfigureOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:356:26: return_function: returning to ‘RRConfigureOutputProperty’ from ‘RRQueryOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:360:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:366:14: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:378:18: acquire_memory: this call could return NULL
xwayland-24.1.9/randr/rrproperty.c:379:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:384:8: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:384:8: branch_true: following ‘true’ branch (when ‘num_values != 0’)...
xwayland-24.1.9/randr/rrproperty.c:385:36: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:385:9: danger: argument 1 (‘new_values’) from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
#  383|       }
#  384|       if (num_values)
#  385|->         memcpy(new_values, values, num_values * sizeof(INT32));
#  386|   
#  387|       /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def824]
xwayland-24.1.9/randr/rrproperty.c:442:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pAtoms’
xwayland-24.1.9/randr/rrproperty.c:421:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:423:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:423:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:425:23: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:427:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.9/randr/rrproperty.c:428:24: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:428:24: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproperty.c:428:12: branch_false: following ‘false’ branch (when ‘pAtoms’ is non-NULL)...
xwayland-24.1.9/randr/rrproperty.c:433:27: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:437:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:442:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:442:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/randr/rrproperty.c:442:5: danger: ‘pAtoms’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  440|           swaps(&rep.nAtoms);
#  441|       }
#  442|->     WriteToClient(client, sizeof(xRRListOutputPropertiesReply), &rep);
#  443|   
#  444|       if (numProps) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def825]
xwayland-24.1.9/randr/rrproperty.c:451:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pAtoms’
xwayland-24.1.9/randr/rrproperty.c:421:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:423:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:423:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:425:23: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:427:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.9/randr/rrproperty.c:428:24: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:428:24: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproperty.c:428:12: branch_false: following ‘false’ branch (when ‘pAtoms’ is non-NULL)...
xwayland-24.1.9/randr/rrproperty.c:433:27: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:437:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:442:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:444:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.9/randr/rrproperty.c:447:27: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:447:41: branch_false: following ‘false’ branch (when ‘prop’ is NULL)...
xwayland-24.1.9/randr/rrproperty.c:450:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:451:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproperty.c:451:9: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:451:9: throw: if ‘Swap32Write’ throws an exception...
xwayland-24.1.9/randr/rrproperty.c:451:9: danger: ‘pAtoms’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  449|   
#  450|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
#  451|->         WriteSwappedDataToClient(client, numProps * sizeof(Atom), pAtoms);
#  452|           free(pAtoms);
#  453|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def826]
xwayland-24.1.9/randr/rrproperty.c:493:5: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rrproperty.c:458:1: enter_function: entry to ‘ProcRRQueryOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:466:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:468:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:468:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:470:42: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:470:12: call_function: calling ‘RRQueryOutputProperty’ from ‘ProcRRQueryOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:470:12: return_function: returning to ‘ProcRRQueryOutputProperty’ from ‘RRQueryOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:471:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:474:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:474:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproperty.c:475:17: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:475:17: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproperty.c:476:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rrproperty.c:482:27: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:489:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:493:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:493:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/randr/rrproperty.c:493:5: danger: ‘extra’ leaks here; was allocated at [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
#  491|           swapl(&rep.length);
#  492|       }
#  493|->     WriteToClient(client, sizeof(xRRQueryOutputPropertyReply), &rep);
#  494|       if (prop->num_valid) {
#  495|           memcpy(extra, prop->valid_values, prop->num_valid * sizeof(INT32));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def827]
xwayland-24.1.9/randr/rrproperty.c:497:9: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rrproperty.c:458:1: enter_function: entry to ‘ProcRRQueryOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:466:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:468:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:468:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:470:42: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:470:12: call_function: calling ‘RRQueryOutputProperty’ from ‘ProcRRQueryOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:470:12: return_function: returning to ‘ProcRRQueryOutputProperty’ from ‘RRQueryOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:471:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:474:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:474:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproperty.c:475:17: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:475:17: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproperty.c:476:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rrproperty.c:482:27: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:494:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproperty.c:495:43: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:497:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproperty.c:497:9: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:497:9: throw: if ‘Swap32Write’ throws an exception...
xwayland-24.1.9/randr/rrproperty.c:497:9: danger: ‘extra’ leaks here; was allocated at [(15)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/14)
#  495|           memcpy(extra, prop->valid_values, prop->num_valid * sizeof(INT32));
#  496|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
#  497|->         WriteSwappedDataToClient(client, prop->num_valid * sizeof(INT32),
#  498|                                    extra);
#  499|           free(extra);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def828]
xwayland-24.1.9/randr/rrproperty.c:743:5: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rrproperty.c:612:1: enter_function: entry to ‘ProcRRGetOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:622:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:623:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:625:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:628:20: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:628:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:632:10: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:632:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:636:10: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:641:38: branch_true: following ‘true’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.9/randr/rrproperty.c:642:13: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:649:8: branch_false: following ‘false’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.9/randr/rrproperty.c:666:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:669:18: call_function: calling ‘RRGetOutputProperty’ from ‘ProcRRGetOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:669:18: return_function: returning to ‘ProcRRGetOutputProperty’ from ‘RRGetOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:670:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:676:11: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:703:8: branch_false: following ‘false’ branch (when ‘n >= ind’)...
xwayland-24.1.9/randr/rrproperty.c:708:11: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:710:8: branch_true: following ‘true’ branch (when ‘len != 0’)...
xwayland-24.1.9/randr/rrproperty.c:711:17: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:711:17: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproperty.c:712:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rrproperty.c:715:24: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:743:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/randr/rrproperty.c:743:5: danger: ‘extra’ leaks here; was allocated at [(39)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/38)
#  741|           swapl(&reply.nItems);
#  742|       }
#  743|->     WriteToClient(client, sizeof(xGenericReply), &reply);
#  744|       if (len) {
#  745|           memcpy(extra, (char *) prop_value->data + ind, len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def829]
xwayland-24.1.9/randr/rrproperty.c:757:9: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rrproperty.c:612:1: enter_function: entry to ‘ProcRRGetOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:622:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:623:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:625:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:628:20: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:628:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:632:10: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:632:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:636:10: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:641:38: branch_true: following ‘true’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.9/randr/rrproperty.c:642:13: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:649:8: branch_false: following ‘false’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.9/randr/rrproperty.c:666:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:669:18: call_function: calling ‘RRGetOutputProperty’ from ‘ProcRRGetOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:669:18: return_function: returning to ‘ProcRRGetOutputProperty’ from ‘RRGetOutputProperty’
xwayland-24.1.9/randr/rrproperty.c:670:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproperty.c:676:11: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:703:8: branch_false: following ‘false’ branch (when ‘n >= ind’)...
xwayland-24.1.9/randr/rrproperty.c:708:11: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:710:8: branch_true: following ‘true’ branch (when ‘len != 0’)...
xwayland-24.1.9/randr/rrproperty.c:711:17: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:711:17: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproperty.c:712:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rrproperty.c:715:24: branch_false: ...to here
xwayland-24.1.9/randr/rrproperty.c:744:8: branch_true: following ‘true’ branch (when ‘len != 0’)...
xwayland-24.1.9/randr/rrproperty.c:745:32: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:757:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproperty.c:757:9: branch_true: ...to here
xwayland-24.1.9/randr/rrproperty.c:757:9: throw: if ‘CopySwap32Write’ throws an exception...
xwayland-24.1.9/randr/rrproperty.c:757:9: danger: ‘extra’ leaks here; was allocated at [(39)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/38)
#  755|               break;
#  756|           }
#  757|->         WriteSwappedDataToClient(client, len, extra);
#  758|           free(extra);
#  759|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def830]
xwayland-24.1.9/randr/rrprovider.c:404:20: warning[-Wanalyzer-malloc-leak]: leak of ‘provider’
xwayland-24.1.9/randr/rrprovider.c:392:1: enter_function: entry to ‘RRProviderCreate’
xwayland-24.1.9/randr/rrprovider.c:398:16: call_function: calling ‘dixLookupPrivate’ from ‘RRProviderCreate’
xwayland-24.1.9/randr/rrprovider.c:398:16: return_function: returning to ‘RRProviderCreate’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrprovider.c:400:16: acquire_memory: allocated here
xwayland-24.1.9/randr/rrprovider.c:401:8: branch_false: following ‘false’ branch (when ‘provider’ is non-NULL)...
xwayland-24.1.9/randr/rrprovider.c:404:20: branch_false: ...to here
xwayland-24.1.9/randr/rrprovider.c:404:20: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/randr/rrprovider.c:404:20: danger: ‘provider’ leaks here; was allocated at [(13)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/12)
#  402|           return NULL;
#  403|   
#  404|->     provider->id = FakeClientID(0);
#  405|       provider->pScreen = pScreen;
#  406|       provider->name = (char *) (provider + 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def831]
xwayland-24.1.9/randr/rrprovider.c:412:10: warning[-Wanalyzer-malloc-leak]: leak of ‘provider’
xwayland-24.1.9/randr/rrprovider.c:392:1: enter_function: entry to ‘RRProviderCreate’
xwayland-24.1.9/randr/rrprovider.c:398:16: call_function: calling ‘dixLookupPrivate’ from ‘RRProviderCreate’
xwayland-24.1.9/randr/rrprovider.c:398:16: return_function: returning to ‘RRProviderCreate’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrprovider.c:400:16: acquire_memory: allocated here
xwayland-24.1.9/randr/rrprovider.c:401:8: branch_false: following ‘false’ branch (when ‘provider’ is non-NULL)...
xwayland-24.1.9/randr/rrprovider.c:404:20: branch_false: ...to here
xwayland-24.1.9/randr/rrprovider.c:412:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/randr/rrprovider.c:412:10: danger: ‘provider’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  410|       provider->changed = FALSE;
#  411|   
#  412|->     if (!AddResource (provider->id, RRProviderType, (void *) provider))
#  413|           return NULL;
#  414|       pScrPriv->provider = provider;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def832]
xwayland-24.1.9/randr/rrproviderproperty.c:364:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘new_values’ where non-null expected
xwayland-24.1.9/randr/rrproviderproperty.c:331:1: enter_function: entry to ‘RRConfigureProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:335:26: call_function: calling ‘RRQueryProviderProperty’ from ‘RRConfigureProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:335:26: return_function: returning to ‘RRConfigureProviderProperty’ from ‘RRQueryProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:339:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:345:14: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:357:18: acquire_memory: this call could return NULL
xwayland-24.1.9/randr/rrproviderproperty.c:358:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:363:8: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:363:8: branch_true: following ‘true’ branch (when ‘num_values != 0’)...
xwayland-24.1.9/randr/rrproviderproperty.c:364:36: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:364:9: danger: argument 1 (‘new_values’) from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
#  362|       }
#  363|       if (num_values)
#  364|->         memcpy(new_values, values, num_values * sizeof(INT32));
#  365|   
#  366|       /*

Error: GCC_ANALYZER_WARNING (CWE-476): [#def833]
xwayland-24.1.9/randr/rrproviderproperty.c:423:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘temppAtoms’
xwayland-24.1.9/randr/rrproviderproperty.c:400:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:402:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:402:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:404:25: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:406:8: branch_false: following ‘false’ branch (when ‘numProps == 0’)...
xwayland-24.1.9/randr/rrproviderproperty.c:412:27: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:416:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:422:25: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:422:39: branch_true: following ‘true’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:423:10: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:423:9: danger: dereference of NULL ‘temppAtoms’
#  421|       temppAtoms = pAtoms;
#  422|       for (prop = provider->properties; prop; prop = prop->next)
#  423|->         *temppAtoms++ = prop->propertyName;
#  424|   
#  425|       WriteToClient(client, sizeof(xRRListProviderPropertiesReply), (char *) &rep);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def834]
xwayland-24.1.9/randr/rrproviderproperty.c:425:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pAtoms’
xwayland-24.1.9/randr/rrproviderproperty.c:400:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:402:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:402:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:404:25: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:406:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.9/randr/rrproviderproperty.c:407:24: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:407:24: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproviderproperty.c:407:12: branch_false: following ‘false’ branch (when ‘pAtoms’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:412:27: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:422:39: branch_true: following ‘true’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:423:10: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:425:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/randr/rrproviderproperty.c:425:5: danger: ‘pAtoms’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  423|           *temppAtoms++ = prop->propertyName;
#  424|   
#  425|->     WriteToClient(client, sizeof(xRRListProviderPropertiesReply), (char *) &rep);
#  426|       if (numProps) {
#  427|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def835]
xwayland-24.1.9/randr/rrproviderproperty.c:428:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pAtoms’
xwayland-24.1.9/randr/rrproviderproperty.c:400:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:402:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:402:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:404:25: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:406:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.9/randr/rrproviderproperty.c:407:24: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:407:24: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproviderproperty.c:407:12: branch_false: following ‘false’ branch (when ‘pAtoms’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:412:27: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:422:39: branch_true: following ‘true’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:423:10: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:426:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-24.1.9/randr/rrproviderproperty.c:427:9: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:428:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:428:9: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:428:9: throw: if ‘Swap32Write’ throws an exception...
xwayland-24.1.9/randr/rrproviderproperty.c:428:9: danger: ‘pAtoms’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  426|       if (numProps) {
#  427|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
#  428|->         WriteSwappedDataToClient(client, numProps * sizeof(Atom), pAtoms);
#  429|           free(pAtoms);
#  430|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def836]
xwayland-24.1.9/randr/rrproviderproperty.c:468:5: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rrproviderproperty.c:435:1: enter_function: entry to ‘ProcRRQueryProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:443:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:445:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:445:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:447:46: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:447:12: call_function: calling ‘RRQueryProviderProperty’ from ‘ProcRRQueryProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:447:12: return_function: returning to ‘ProcRRQueryProviderProperty’ from ‘RRQueryProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:448:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:451:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:451:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:452:17: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:452:17: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproviderproperty.c:453:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:458:27: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:464:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:468:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:468:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/randr/rrproviderproperty.c:468:5: danger: ‘extra’ leaks here; was allocated at [(15)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/14)
#  466|           swapl(&rep.length);
#  467|       }
#  468|->     WriteToClient(client, sizeof(xRRQueryProviderPropertyReply), (char *) &rep);
#  469|       if (prop->num_valid) {
#  470|           memcpy(extra, prop->valid_values, prop->num_valid * sizeof(INT32));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def837]
xwayland-24.1.9/randr/rrproviderproperty.c:472:9: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rrproviderproperty.c:435:1: enter_function: entry to ‘ProcRRQueryProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:443:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:445:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:445:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:447:46: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:447:12: call_function: calling ‘RRQueryProviderProperty’ from ‘ProcRRQueryProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:447:12: return_function: returning to ‘ProcRRQueryProviderProperty’ from ‘RRQueryProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:448:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:451:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:451:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:452:17: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:452:17: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproviderproperty.c:453:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:458:27: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:469:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:470:43: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:472:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:472:9: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:472:9: throw: if ‘Swap32Write’ throws an exception...
xwayland-24.1.9/randr/rrproviderproperty.c:472:9: danger: ‘extra’ leaks here; was allocated at [(15)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/14)
#  470|           memcpy(extra, prop->valid_values, prop->num_valid * sizeof(INT32));
#  471|           client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write;
#  472|->         WriteSwappedDataToClient(client, prop->num_valid * sizeof(INT32),
#  473|                                    extra);
#  474|           free(extra);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def838]
xwayland-24.1.9/randr/rrproviderproperty.c:711:5: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rrproviderproperty.c:581:1: enter_function: entry to ‘ProcRRGetProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:594:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:595:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:597:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:600:20: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:600:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:604:10: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:608:10: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:613:40: branch_true: following ‘true’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:614:13: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:617:8: branch_false: following ‘false’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:634:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:637:18: call_function: calling ‘RRGetProviderProperty’ from ‘ProcRRGetProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:637:18: return_function: returning to ‘ProcRRGetProviderProperty’ from ‘RRGetProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:638:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:644:11: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:671:8: branch_false: following ‘false’ branch (when ‘n >= ind’)...
xwayland-24.1.9/randr/rrproviderproperty.c:676:11: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:678:8: branch_true: following ‘true’ branch (when ‘len != 0’)...
xwayland-24.1.9/randr/rrproviderproperty.c:679:17: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:679:17: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproviderproperty.c:680:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:683:24: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:704:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:711:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:711:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/randr/rrproviderproperty.c:711:5: danger: ‘extra’ leaks here; was allocated at [(39)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/38)
#  709|           swapl(&reply.nItems);
#  710|       }
#  711|->     WriteToClient(client, sizeof(xGenericReply), &reply);
#  712|       if (len) {
#  713|           memcpy(extra, (char *) prop_value->data + ind, len);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def839]
xwayland-24.1.9/randr/rrproviderproperty.c:725:9: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/randr/rrproviderproperty.c:581:1: enter_function: entry to ‘ProcRRGetProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:594:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:595:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:597:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:600:20: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:600:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:604:10: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:604:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:608:10: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:613:40: branch_true: following ‘true’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:614:13: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:617:8: branch_false: following ‘false’ branch (when ‘prop’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:634:9: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:637:18: call_function: calling ‘RRGetProviderProperty’ from ‘ProcRRGetProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:637:18: return_function: returning to ‘ProcRRGetProviderProperty’ from ‘RRGetProviderProperty’
xwayland-24.1.9/randr/rrproviderproperty.c:638:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:644:11: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:671:8: branch_false: following ‘false’ branch (when ‘n >= ind’)...
xwayland-24.1.9/randr/rrproviderproperty.c:676:11: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:678:8: branch_true: following ‘true’ branch (when ‘len != 0’)...
xwayland-24.1.9/randr/rrproviderproperty.c:679:17: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:679:17: acquire_memory: allocated here
xwayland-24.1.9/randr/rrproviderproperty.c:680:12: branch_false: following ‘false’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/randr/rrproviderproperty.c:683:24: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:704:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:711:5: branch_false: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:712:8: branch_true: following ‘true’ branch (when ‘len != 0’)...
xwayland-24.1.9/randr/rrproviderproperty.c:713:32: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:725:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrproviderproperty.c:725:9: branch_true: ...to here
xwayland-24.1.9/randr/rrproviderproperty.c:725:9: throw: if ‘CopySwap32Write’ throws an exception...
xwayland-24.1.9/randr/rrproviderproperty.c:725:9: danger: ‘extra’ leaks here; was allocated at [(39)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/38)
#  723|               break;
#  724|           }
#  725|->         WriteSwappedDataToClient(client, len, extra);
#  726|           free(extra);
#  727|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def840]
xwayland-24.1.9/randr/rrscreen.c:577:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘extra’
xwayland-24.1.9/randr/rrscreen.c:650:1: enter_function: entry to ‘ProcRRGetScreenResourcesCurrent’
xwayland-24.1.9/randr/rrscreen.c:652:12: call_function: calling ‘rrGetScreenResources’ from ‘ProcRRGetScreenResourcesCurrent’
#  575|           if (pScrPriv->primaryOutput && pScrPriv->primaryOutput->crtc) {
#  576|               has_primary = 1;
#  577|->             crtcs[0] = pScrPriv->primaryOutput->crtc->id;
#  578|               if (client->swapped)
#  579|                   swapl(&crtcs[0]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def841]
xwayland-24.1.9/randr/rrscreen.c:588:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
xwayland-24.1.9/randr/rrscreen.c:650:1: enter_function: entry to ‘ProcRRGetScreenResourcesCurrent’
xwayland-24.1.9/randr/rrscreen.c:652:12: call_function: calling ‘rrGetScreenResources’ from ‘ProcRRGetScreenResourcesCurrent’
#  586|                   continue;
#  587|               }
#  588|->             crtcs[i + has_primary] = pScrPriv->crtcs[i]->id;
#  589|               if (client->swapped)
#  590|                   swapl(&crtcs[i + has_primary]);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def842]
xwayland-24.1.9/randr/rrscreen.c:671:17: warning[-Wanalyzer-malloc-leak]: leak of ‘RR10GetData(pScreen,  RRFirstOutput(pScreen))’
xwayland-24.1.9/randr/rrscreen.c:903:1: enter_function: entry to ‘ProcRRSetScreenConfig’
xwayland-24.1.9/randr/rrscreen.c:931:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrscreen.c:935:36: branch_false: ...to here
xwayland-24.1.9/randr/rrscreen.c:936:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrscreen.c:939:20: branch_false: ...to here
xwayland-24.1.9/randr/rrscreen.c:941:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSetScreenConfig’
xwayland-24.1.9/randr/rrscreen.c:941:16: return_function: returning to ‘ProcRRSetScreenConfig’ from ‘dixLookupPrivate’
xwayland-24.1.9/randr/rrscreen.c:945:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrscreen.c:950:10: branch_false: ...to here
xwayland-24.1.9/randr/rrscreen.c:950:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrscreen.c:953:14: branch_false: ...to here
xwayland-24.1.9/randr/rrscreen.c:954:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrscreen.c:960:5: branch_false: ...to here
xwayland-24.1.9/randr/rrscreen.c:971:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrscreen.c:976:13: branch_false: ...to here
xwayland-24.1.9/randr/rrscreen.c:976:13: call_function: calling ‘RR10GetData’ from ‘ProcRRSetScreenConfig’
xwayland-24.1.9/randr/rrscreen.c:976:13: return_function: returning to ‘ProcRRSetScreenConfig’ from ‘RR10GetData’
xwayland-24.1.9/randr/rrscreen.c:977:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrscreen.c:980:9: branch_false: ...to here
xwayland-24.1.9/randr/rrscreen.c:980:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrscreen.c:988:14: branch_false: ...to here
xwayland-24.1.9/randr/rrscreen.c:1011:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/randr/rrscreen.c:1023:8: branch_false: ...to here
xwayland-24.1.9/randr/rrscreen.c:1050:9: throw: if ‘CompareTimeStamps’ throws an exception...
xwayland-24.1.9/randr/rrscreen.c:671:17: danger: ‘RR10GetData(pScreen,  RRFirstOutput(pScreen))’ leaks here; was allocated at [(27)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/26)
#  669|       RR10DataPtr data;
#  670|       RRScreenSizePtr size;
#  671|->     int nmode = output->numModes + output->numUserModes;
#  672|       int o, os, l, r;
#  673|       RRScreenRatePtr refresh;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def843]
xwayland-24.1.9/randr/rrscreen.c:732:28: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
xwayland-24.1.9/randr/rrscreen.c:679:12: acquire_memory: allocated here
xwayland-24.1.9/randr/rrscreen.c:682:8: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
xwayland-24.1.9/randr/rrscreen.c:684:5: branch_false: ...to here
xwayland-24.1.9/randr/rrscreen.c:697:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrscreen.c:698:17: branch_true: ...to here
xwayland-24.1.9/randr/rrscreen.c:710:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrscreen.c:725:22: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrscreen.c:726:16: branch_true: ...to here
xwayland-24.1.9/randr/rrscreen.c:730:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrscreen.c:731:17: branch_true: ...to here
xwayland-24.1.9/randr/rrscreen.c:730:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/randr/rrscreen.c:732:28: branch_true: ...to here
xwayland-24.1.9/randr/rrscreen.c:732:28: throw: if ‘RRVerticalRefresh’ throws an exception...
xwayland-24.1.9/randr/rrscreen.c:732:28: danger: ‘data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  730|               if (mode->mode.width == size[l].width &&
#  731|                   mode->mode.height == size[l].height) {
#  732|->                 vRefresh = RRVerticalRefresh(&mode->mode);
#  733|                   used[os] = TRUE;
#  734|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def844]
xwayland-24.1.9/record/record.c:243:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ppAllContextsCopy’
xwayland-24.1.9/record/record.c:2712:1: enter_function: entry to ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2741:12: branch_false: following ‘false’ branch (when ‘numContextsCopy != 0’)...
xwayland-24.1.9/record/record.c:2743:29: branch_false: ...to here
xwayland-24.1.9/record/record.c:2743:29: acquire_memory: allocated here
xwayland-24.1.9/record/record.c:2745:9: branch_true: following ‘true’ branch (when ‘ppAllContextsCopy’ is non-NULL)...
xwayland-24.1.9/record/record.c:2747:16: branch_true: ...to here
xwayland-24.1.9/record/record.c:2749:21: branch_true: following ‘true’ branch (when ‘i < numContextsCopy’)...
xwayland-24.1.9/record/record.c:2751:58: branch_true: ...to here
xwayland-24.1.9/record/record.c:2754:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/record/record.c:2755:17: branch_true: ...to here
xwayland-24.1.9/record/record.c:2755:17: call_function: calling ‘RecordDisableContext’ from ‘RecordAClientStateChange’
#  241|       ++pContext->inFlush;
#  242|       if (pContext->numBufBytes)
#  243|->         WriteToClient(pContext->pRecordingClient, pContext->numBufBytes,
#  244|                         pContext->replyBuffer);
#  245|       pContext->numBufBytes = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def845]
xwayland-24.1.9/record/record.c:305:26: warning[-Wanalyzer-malloc-leak]: leak of ‘ppAllContextsCopy’
xwayland-24.1.9/record/record.c:2712:1: enter_function: entry to ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2741:12: branch_false: following ‘false’ branch (when ‘numContextsCopy != 0’)...
xwayland-24.1.9/record/record.c:2743:29: branch_false: ...to here
xwayland-24.1.9/record/record.c:2743:29: acquire_memory: allocated here
xwayland-24.1.9/record/record.c:2745:9: branch_true: following ‘true’ branch (when ‘ppAllContextsCopy’ is non-NULL)...
xwayland-24.1.9/record/record.c:2747:16: branch_true: ...to here
xwayland-24.1.9/record/record.c:2749:21: branch_true: following ‘true’ branch (when ‘i < numContextsCopy’)...
xwayland-24.1.9/record/record.c:2751:58: branch_true: ...to here
xwayland-24.1.9/record/record.c:2754:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/record/record.c:2755:17: branch_true: ...to here
xwayland-24.1.9/record/record.c:2755:17: call_function: calling ‘RecordDisableContext’ from ‘RecordAClientStateChange’
#  303|   
#  304|           if (!pContext->numBufBytes) {
#  305|->             serverTime = GetTimeInMillis();
#  306|               gotServerTime = TRUE;
#  307|               pRep->type = X_Reply;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def846]
xwayland-24.1.9/record/record.c:951:45: warning[-Wanalyzer-malloc-leak]: leak of ‘ppAllContextsCopy’
xwayland-24.1.9/record/record.c:2712:1: enter_function: entry to ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2741:12: branch_false: following ‘false’ branch (when ‘numContextsCopy != 0’)...
xwayland-24.1.9/record/record.c:2743:29: branch_false: ...to here
xwayland-24.1.9/record/record.c:2743:29: acquire_memory: allocated here
xwayland-24.1.9/record/record.c:2745:9: branch_true: following ‘true’ branch (when ‘ppAllContextsCopy’ is non-NULL)...
xwayland-24.1.9/record/record.c:2747:16: branch_true: ...to here
xwayland-24.1.9/record/record.c:2749:21: branch_true: following ‘true’ branch (when ‘i < numContextsCopy’)...
xwayland-24.1.9/record/record.c:2751:58: branch_true: ...to here
xwayland-24.1.9/record/record.c:2754:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/record/record.c:2755:17: branch_true: ...to here
xwayland-24.1.9/record/record.c:2755:17: call_function: calling ‘RecordDisableContext’ from ‘RecordAClientStateChange’
#  949|           if (client != XRecordFutureClients) {
#  950|               if (pRCAP->pRequestMajorOpSet) {
#  951|->                 ClientPtr pClient = clients[CLIENT_ID(client)];
#  952|                   int c;
#  953|                   Bool otherRCAPwantsProcVector = FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def847]
xwayland-24.1.9/record/record.c:1001:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ppAllContextsCopy’
xwayland-24.1.9/record/record.c:2712:1: enter_function: entry to ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2741:12: branch_false: following ‘false’ branch (when ‘numContextsCopy != 0’)...
xwayland-24.1.9/record/record.c:2743:29: branch_false: ...to here
xwayland-24.1.9/record/record.c:2743:29: acquire_memory: allocated here
xwayland-24.1.9/record/record.c:2745:9: branch_true: following ‘true’ branch (when ‘ppAllContextsCopy’ is non-NULL)...
xwayland-24.1.9/record/record.c:2747:16: branch_true: ...to here
xwayland-24.1.9/record/record.c:2749:21: branch_true: following ‘true’ branch (when ‘i < numContextsCopy’)...
xwayland-24.1.9/record/record.c:2751:58: branch_true: ...to here
xwayland-24.1.9/record/record.c:2754:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/record/record.c:2757:52: branch_false: ...to here
xwayland-24.1.9/record/record.c:2756:26: call_function: calling ‘RecordFindClientOnContext’ from ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2756:26: return_function: returning to ‘RecordAClientStateChange’ from ‘RecordFindClientOnContext’
xwayland-24.1.9/record/record.c:2756:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/record/record.c:2759:21: branch_true: ...to here
xwayland-24.1.9/record/record.c:2762:17: call_function: calling ‘RecordDeleteClientFromRCAP’ from ‘RecordAClientStateChange’
#  999|       assert(numEnabledRCAPs >= 1);
# 1000|       if (!oneclient && --numEnabledRCAPs == 0) { /* we're disabling the last context */
# 1001|->         DeleteCallback(&EventCallback, RecordADeliveredEventOrError, NULL);
# 1002|           DeleteCallback(&DeviceEventCallback, RecordADeviceEvent, NULL);
# 1003|           DeleteCallback(&ReplyCallback, RecordAReply, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def848]
xwayland-24.1.9/record/record.c:1002:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ppAllContextsCopy’
xwayland-24.1.9/record/record.c:2712:1: enter_function: entry to ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2741:12: branch_false: following ‘false’ branch (when ‘numContextsCopy != 0’)...
xwayland-24.1.9/record/record.c:2743:29: branch_false: ...to here
xwayland-24.1.9/record/record.c:2743:29: acquire_memory: allocated here
xwayland-24.1.9/record/record.c:2745:9: branch_true: following ‘true’ branch (when ‘ppAllContextsCopy’ is non-NULL)...
xwayland-24.1.9/record/record.c:2747:16: branch_true: ...to here
xwayland-24.1.9/record/record.c:2749:21: branch_true: following ‘true’ branch (when ‘i < numContextsCopy’)...
xwayland-24.1.9/record/record.c:2751:58: branch_true: ...to here
xwayland-24.1.9/record/record.c:2754:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/record/record.c:2757:52: branch_false: ...to here
xwayland-24.1.9/record/record.c:2756:26: call_function: calling ‘RecordFindClientOnContext’ from ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2756:26: return_function: returning to ‘RecordAClientStateChange’ from ‘RecordFindClientOnContext’
xwayland-24.1.9/record/record.c:2756:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/record/record.c:2759:21: branch_true: ...to here
xwayland-24.1.9/record/record.c:2762:17: call_function: calling ‘RecordDeleteClientFromRCAP’ from ‘RecordAClientStateChange’
# 1000|       if (!oneclient && --numEnabledRCAPs == 0) { /* we're disabling the last context */
# 1001|           DeleteCallback(&EventCallback, RecordADeliveredEventOrError, NULL);
# 1002|->         DeleteCallback(&DeviceEventCallback, RecordADeviceEvent, NULL);
# 1003|           DeleteCallback(&ReplyCallback, RecordAReply, NULL);
# 1004|           DeleteCallback(&FlushCallback, RecordFlushAllContexts, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def849]
xwayland-24.1.9/record/record.c:1003:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ppAllContextsCopy’
xwayland-24.1.9/record/record.c:2712:1: enter_function: entry to ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2741:12: branch_false: following ‘false’ branch (when ‘numContextsCopy != 0’)...
xwayland-24.1.9/record/record.c:2743:29: branch_false: ...to here
xwayland-24.1.9/record/record.c:2743:29: acquire_memory: allocated here
xwayland-24.1.9/record/record.c:2745:9: branch_true: following ‘true’ branch (when ‘ppAllContextsCopy’ is non-NULL)...
xwayland-24.1.9/record/record.c:2747:16: branch_true: ...to here
xwayland-24.1.9/record/record.c:2749:21: branch_true: following ‘true’ branch (when ‘i < numContextsCopy’)...
xwayland-24.1.9/record/record.c:2751:58: branch_true: ...to here
xwayland-24.1.9/record/record.c:2754:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/record/record.c:2757:52: branch_false: ...to here
xwayland-24.1.9/record/record.c:2756:26: call_function: calling ‘RecordFindClientOnContext’ from ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2756:26: return_function: returning to ‘RecordAClientStateChange’ from ‘RecordFindClientOnContext’
xwayland-24.1.9/record/record.c:2756:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/record/record.c:2759:21: branch_true: ...to here
xwayland-24.1.9/record/record.c:2762:17: call_function: calling ‘RecordDeleteClientFromRCAP’ from ‘RecordAClientStateChange’
# 1001|           DeleteCallback(&EventCallback, RecordADeliveredEventOrError, NULL);
# 1002|           DeleteCallback(&DeviceEventCallback, RecordADeviceEvent, NULL);
# 1003|->         DeleteCallback(&ReplyCallback, RecordAReply, NULL);
# 1004|           DeleteCallback(&FlushCallback, RecordFlushAllContexts, NULL);
# 1005|           /* Alternate context flushing scheme: delete the line above

Error: GCC_ANALYZER_WARNING (CWE-401): [#def850]
xwayland-24.1.9/record/record.c:1004:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ppAllContextsCopy’
xwayland-24.1.9/record/record.c:2712:1: enter_function: entry to ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2741:12: branch_false: following ‘false’ branch (when ‘numContextsCopy != 0’)...
xwayland-24.1.9/record/record.c:2743:29: branch_false: ...to here
xwayland-24.1.9/record/record.c:2743:29: acquire_memory: allocated here
xwayland-24.1.9/record/record.c:2745:9: branch_true: following ‘true’ branch (when ‘ppAllContextsCopy’ is non-NULL)...
xwayland-24.1.9/record/record.c:2747:16: branch_true: ...to here
xwayland-24.1.9/record/record.c:2749:21: branch_true: following ‘true’ branch (when ‘i < numContextsCopy’)...
xwayland-24.1.9/record/record.c:2751:58: branch_true: ...to here
xwayland-24.1.9/record/record.c:2754:16: branch_false: following ‘false’ branch...
xwayland-24.1.9/record/record.c:2757:52: branch_false: ...to here
xwayland-24.1.9/record/record.c:2756:26: call_function: calling ‘RecordFindClientOnContext’ from ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2756:26: return_function: returning to ‘RecordAClientStateChange’ from ‘RecordFindClientOnContext’
xwayland-24.1.9/record/record.c:2756:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/record/record.c:2759:21: branch_true: ...to here
xwayland-24.1.9/record/record.c:2762:17: call_function: calling ‘RecordDeleteClientFromRCAP’ from ‘RecordAClientStateChange’
# 1002|           DeleteCallback(&DeviceEventCallback, RecordADeviceEvent, NULL);
# 1003|           DeleteCallback(&ReplyCallback, RecordAReply, NULL);
# 1004|->         DeleteCallback(&FlushCallback, RecordFlushAllContexts, NULL);
# 1005|           /* Alternate context flushing scheme: delete the line above
# 1006|            * and call RemoveBlockAndWakeupHandlers here passing

Error: GCC_ANALYZER_WARNING (CWE-401): [#def851]
xwayland-24.1.9/record/record.c:1156:23: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
xwayland-24.1.9/record/record.c:2619:1: enter_function: entry to ‘SProcRecordDispatch’
xwayland-24.1.9/record/record.c:2627:16: call_function: calling ‘SProcRecordCreateContext’ from ‘SProcRecordDispatch’
# 1154|           if (errorspec && (CLIENT_BITS(clientspecs[i]) == errorspec))
# 1155|               return BadMatch;
# 1156|->         clientIndex = CLIENT_ID(clientspecs[i]);
# 1157|           if (clientIndex && clients[clientIndex] &&
# 1158|               clients[clientIndex]->clientState == ClientStateRunning) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def852]
xwayland-24.1.9/record/record.c:1161:18: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
xwayland-24.1.9/record/record.c:2619:1: enter_function: entry to ‘SProcRecordDispatch’
xwayland-24.1.9/record/record.c:2627:16: call_function: calling ‘SProcRecordCreateContext’ from ‘SProcRecordDispatch’
# 1159|               if (clientspecs[i] == clients[clientIndex]->clientAsMask)
# 1160|                   continue;
# 1161|->             rc = dixLookupResourceByClass(&value, clientspecs[i], RC_ANY,
# 1162|                                             client, DixGetAttrAccess);
# 1163|               if (rc != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def853]
xwayland-24.1.9/record/record.c:1216:31: warning[-Wanalyzer-malloc-leak]: leak of ‘pContext’
xwayland-24.1.9/record/record.c:2619:1: enter_function: entry to ‘SProcRecordDispatch’
xwayland-24.1.9/record/record.c:2627:16: call_function: calling ‘SProcRecordCreateContext’ from ‘SProcRecordDispatch’
# 1214|   
# 1215|           if (cs > XRecordAllClients)
# 1216|->             pClientspecs[i] = CLIENT_BITS(cs);
# 1217|       }
# 1218|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def854]
xwayland-24.1.9/record/record.c:2376:5: warning[-Wanalyzer-malloc-leak]: leak of ‘ppAllContextsCopy’
xwayland-24.1.9/record/record.c:2712:1: enter_function: entry to ‘RecordAClientStateChange’
xwayland-24.1.9/record/record.c:2741:12: branch_false: following ‘false’ branch (when ‘numContextsCopy != 0’)...
xwayland-24.1.9/record/record.c:2743:29: branch_false: ...to here
xwayland-24.1.9/record/record.c:2743:29: acquire_memory: allocated here
xwayland-24.1.9/record/record.c:2745:9: branch_true: following ‘true’ branch (when ‘ppAllContextsCopy’ is non-NULL)...
xwayland-24.1.9/record/record.c:2747:16: branch_true: ...to here
xwayland-24.1.9/record/record.c:2749:21: branch_true: following ‘true’ branch (when ‘i < numContextsCopy’)...
xwayland-24.1.9/record/record.c:2751:58: branch_true: ...to here
xwayland-24.1.9/record/record.c:2754:16: branch_true: following ‘true’ branch...
xwayland-24.1.9/record/record.c:2755:17: branch_true: ...to here
xwayland-24.1.9/record/record.c:2755:17: call_function: calling ‘RecordDisableContext’ from ‘RecordAClientStateChange’
# 2374|       }
# 2375|       /* Re-enable request processing on this connection. */
# 2376|->     AttendClient(pContext->pRecordingClient);
# 2377|   
# 2378|       for (pRCAP = pContext->pListOfRCAP; pRCAP; pRCAP = pRCAP->pNextRCAP) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def855]
xwayland-24.1.9/record/record.c:2668:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pConnSetup’
xwayland-24.1.9/record/record.c:2663:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/record/record.c:2664:44: branch_true: ...to here
xwayland-24.1.9/record/record.c:2664:37: acquire_memory: allocated here
xwayland-24.1.9/record/record.c:2666:12: branch_false: following ‘false’ branch (when ‘pConnSetup’ is non-NULL)...
xwayland-24.1.9/record/record.c:2668:9: branch_false: ...to here
xwayland-24.1.9/record/record.c:2668:9: throw: if ‘SwapConnSetupPrefix’ throws an exception...
xwayland-24.1.9/record/record.c:2668:9: danger: ‘pConnSetup’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
# 2666|           if (!pConnSetup)
# 2667|               return;
# 2668|->         SwapConnSetupPrefix(pci->prefix, (xConnSetupPrefix *) pConnSetup);
# 2669|           SwapConnSetupInfo((char *) pci->setup,
# 2670|                             (char *) (pConnSetup + prefixsize));

Error: GCC_ANALYZER_WARNING (CWE-688): [#def856]
xwayland-24.1.9/record/set.c:366:5: warning[-Wanalyzer-null-argument]: use of NULL ‘stackIntervals’ where non-null expected
xwayland-24.1.9/record/set.c:316:8: branch_false: following ‘false’ branch (when ‘nIntervals <= 0’)...
xwayland-24.1.9/record/set.c:354:8: branch_false: ...to here
xwayland-24.1.9/record/set.c:354:8: branch_true: following ‘true’ branch (when ‘pMem’ is non-NULL)...
xwayland-24.1.9/record/set.c:356:9: branch_true: ...to here
xwayland-24.1.9/record/set.c:366:5: danger: argument 2 (‘stackIntervals’) NULL where non-null expected
#  364|           prls->baseSet.ops = &IntervalListSetOperations;
#  365|       }
#  366|->     memcpy(&prls[1], stackIntervals, nIntervals * sizeof(RecordSetInterval));
#  367|       prls->nIntervals = nIntervals;
#  368|    bailout:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def857]
xwayland-24.1.9/redhat-linux-build/hw/xwayland/Xwayland.p/drm-client-protocol.h:260:9: warning[-Wanalyzer-malloc-leak]: leak of ‘state’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:713:1: enter_function: entry to ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:719:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:719:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_open_client’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:725:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:727:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:732:13: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:732:13: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:733:8: branch_false: following ‘false’ branch (when ‘state’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:738:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:741:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:747:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:747:5: call_function: calling ‘wl_drm_authenticate’ from ‘xwl_dri3_open_client’
#  258|   wl_drm_authenticate(struct wl_drm *wl_drm, uint32_t id)
#  259|   {
#  260|-> 	wl_proxy_marshal_flags((struct wl_proxy *) wl_drm,
#  261|   			 WL_DRM_AUTHENTICATE, NULL, wl_proxy_get_version((struct wl_proxy *) wl_drm), 0, id);
#  262|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def858]
xwayland-24.1.9/redhat-linux-build/hw/xwayland/Xwayland.p/linux-drm-syncobj-v1-client-protocol.h:295:14: warning[-Wanalyzer-malloc-leak]: leak of ‘syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1148:1: enter_function: entry to ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1150:40: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1151:39: call_function: inlined call to ‘xwl_gbm_get’ from ‘xwl_dri3_create_syncobj’
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1154:8: branch_false: following ‘false’ branch (when ‘syncobj’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1157:8: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1160:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1161:13: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1162:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1166:13: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-glamor-gbm.c:1166:13: call_function: calling ‘wp_linux_drm_syncobj_manager_v1_import_timeline’ from ‘xwl_dri3_create_syncobj’
#  293|   	struct wl_proxy *id;
#  294|   
#  295|-> 	id = wl_proxy_marshal_flags((struct wl_proxy *) wp_linux_drm_syncobj_manager_v1,
#  296|   			 WP_LINUX_DRM_SYNCOBJ_MANAGER_V1_IMPORT_TIMELINE, &wp_linux_drm_syncobj_timeline_v1_interface, wl_proxy_get_version((struct wl_proxy *) wp_linux_drm_syncobj_manager_v1), 0, NULL, fd);
#  297|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def859]
xwayland-24.1.9/redhat-linux-build/hw/xwayland/Xwayland.p/xdg-shell-client-protocol.h:548:14: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1457:1: enter_function: entry to ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: call_function: calling ‘xwl_window_from_window’ from ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: return_function: returning to ‘ensure_surface_for_window’ from ‘xwl_window_from_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1465:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1468:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1475:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1480:8: branch_false: following ‘false’ branch (when ‘xwl_window’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1483:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1492:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:35: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:35: call_function: calling ‘xwl_create_root_surface’ from ‘ensure_surface_for_window’
#  546|   	struct wl_proxy *id;
#  547|   
#  548|-> 	id = wl_proxy_marshal_flags((struct wl_proxy *) xdg_wm_base,
#  549|   			 XDG_WM_BASE_GET_XDG_SURFACE, &xdg_surface_interface, wl_proxy_get_version((struct wl_proxy *) xdg_wm_base), 0, NULL, surface);
#  550|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def860]
xwayland-24.1.9/redhat-linux-build/hw/xwayland/Xwayland.p/xdg-shell-client-protocol.h:1124:14: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1457:1: enter_function: entry to ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: call_function: calling ‘xwl_window_from_window’ from ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: return_function: returning to ‘ensure_surface_for_window’ from ‘xwl_window_from_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1465:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1468:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1475:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1480:8: branch_false: following ‘false’ branch (when ‘xwl_window’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1483:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1492:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:10: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:35: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1502:35: call_function: calling ‘xwl_create_root_surface’ from ‘ensure_surface_for_window’
# 1122|   	struct wl_proxy *id;
# 1123|   
# 1124|-> 	id = wl_proxy_marshal_flags((struct wl_proxy *) xdg_surface,
# 1125|   			 XDG_SURFACE_GET_TOPLEVEL, &xdg_toplevel_interface, wl_proxy_get_version((struct wl_proxy *) xdg_surface), 0, NULL);
# 1126|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def861]
xwayland-24.1.9/redhat-linux-build/hw/xwayland/Xwayland.p/xwayland-shell-v1-client-protocol.h:234:14: warning[-Wanalyzer-malloc-leak]: leak of ‘xwl_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1457:1: enter_function: entry to ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: call_function: calling ‘xwl_window_from_window’ from ‘ensure_surface_for_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1464:18: return_function: returning to ‘ensure_surface_for_window’ from ‘xwl_window_from_window’
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1465:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1468:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1475:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1479:18: acquire_memory: allocated here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1480:8: branch_false: following ‘false’ branch (when ‘xwl_window’ is non-NULL)...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1483:5: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1492:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:9: branch_false: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1497:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1498:40: branch_true: ...to here
xwayland-24.1.9/hw/xwayland/xwayland-window.c:1498:40: call_function: calling ‘xwayland_shell_v1_get_xwayland_surface’ from ‘ensure_surface_for_window’
#  232|   	struct wl_proxy *id;
#  233|   
#  234|-> 	id = wl_proxy_marshal_flags((struct wl_proxy *) xwayland_shell_v1,
#  235|   			 XWAYLAND_SHELL_V1_GET_XWAYLAND_SURFACE, &xwayland_surface_v1_interface, wl_proxy_get_version((struct wl_proxy *) xwayland_shell_v1), 0, NULL, surface);
#  236|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def862]
xwayland-24.1.9/render/animcur.c:323:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pCursor’
xwayland-24.1.9/render/animcur.c:307:8: branch_false: following ‘false’ branch (when ‘ncursor > 0’)...
xwayland-24.1.9/render/animcur.c:307:8: branch_false: ...to here
xwayland-24.1.9/render/animcur.c:314:17: branch_true: following ‘true’ branch (when ‘i < ncursor’)...
xwayland-24.1.9/render/animcur.c:315:13: branch_true: ...to here
xwayland-24.1.9/render/animcur.c:318:27: acquire_memory: allocated here
xwayland-24.1.9/render/animcur.c:321:8: branch_false: following ‘false’ branch (when ‘pCursor’ is non-NULL)...
xwayland-24.1.9/render/animcur.c:323:5: branch_false: ...to here
xwayland-24.1.9/render/animcur.c:323:5: throw: if ‘_dixInitPrivates’ throws an exception...
xwayland-24.1.9/render/animcur.c:323:5: danger: ‘pCursor’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  321|       if (!pCursor)
#  322|           return rc;
#  323|->     dixInitPrivates(pCursor, pCursor + 1, PRIVATE_CURSOR);
#  324|       pCursor->bits = &animCursorBits;
#  325|       pCursor->refcnt = 1;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def863]
xwayland-24.1.9/render/filter.c:348:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘new_params’
xwayland-24.1.9/render/filter.c:331:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/filter.c:360:1: branch_false: ...to here
xwayland-24.1.9/render/filter.c:338:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/filter.c:339:30: branch_true: ...to here
xwayland-24.1.9/render/filter.c:339:30: acquire_memory: this call could return NULL
xwayland-24.1.9/render/filter.c:341:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/filter.c:343:14: branch_false: ...to here
xwayland-24.1.9/render/filter.c:347:17: branch_true: following ‘true’ branch (when ‘i < nparams’)...
xwayland-24.1.9/render/filter.c:348:44: branch_true: ...to here
xwayland-24.1.9/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): [#def864]
xwayland-24.1.9/render/glyph.c:388:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hashSet’
xwayland-24.1.9/render/glyph.c:438:1: enter_function: entry to ‘ResizeGlyphSet’
xwayland-24.1.9/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): [#def865]
xwayland-24.1.9/render/glyph.c:411:16: warning[-Wanalyzer-malloc-leak]: leak of ‘newHash.table’
xwayland-24.1.9/render/glyph.c:469:1: enter_function: entry to ‘FreeGlyphSet’
xwayland-24.1.9/render/glyph.c:473:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/glyph.c:474:31: branch_true: ...to here
xwayland-24.1.9/render/glyph.c:483:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/glyph.c:489:29: branch_false: ...to here
xwayland-24.1.9/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): [#def866]
xwayland-24.1.9/render/miindex.c:266:5: warning[-Wanalyzer-malloc-leak]: leak of ‘pIndexed’
xwayland-24.1.9/render/miindex.c:239:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/miindex.c:242:9: branch_false: ...to here
xwayland-24.1.9/render/miindex.c:252:16: acquire_memory: allocated here
xwayland-24.1.9/render/miindex.c:253:8: branch_false: following ‘false’ branch (when ‘pIndexed’ is non-NULL)...
xwayland-24.1.9/render/miindex.c:256:5: branch_false: ...to here
xwayland-24.1.9/render/miindex.c:258:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/miindex.c:266:5: branch_false: ...to here
xwayland-24.1.9/render/miindex.c:266:5: throw: if ‘QueryColors’ throws an exception...
xwayland-24.1.9/render/miindex.c:266:5: danger: ‘pIndexed’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  264|        * Build mapping from pixel value to ARGB
#  265|        */
#  266|->     QueryColors(pColormap, num, pixels, rgb, serverClient);
#  267|       for (i = 0; i < num; i++) {
#  268|           p = pixels[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def867]
xwayland-24.1.9/render/mipict.c:520:5: warning[-Wanalyzer-malloc-leak]: leak of ‘tris’
xwayland-24.1.9/render/mipict.c:511:12: acquire_memory: allocated here
xwayland-24.1.9/render/mipict.c:512:8: branch_false: following ‘false’ branch (when ‘tris’ is non-NULL)...
xwayland-24.1.9/render/mipict.c:512:8: branch_false: ...to here
xwayland-24.1.9/render/mipict.c:515:22: branch_true: following ‘true’ branch (when ‘npoints > 2’)...
xwayland-24.1.9/render/mipict.c:516:9: branch_true: ...to here
xwayland-24.1.9/render/mipict.c:520:5: throw: if ‘CompositeTriangles’ throws an exception...
xwayland-24.1.9/render/mipict.c:520:5: danger: ‘tris’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  518|           tri->p3 = points[2];
#  519|       }
#  520|->     CompositeTriangles(op, pSrc, pDst, maskFormat, xSrc, ySrc, ntri, tris);
#  521|       free(tris);
#  522|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def868]
xwayland-24.1.9/render/mipict.c:520:5: warning[-Wanalyzer-malloc-leak]: leak of ‘tri’
xwayland-24.1.9/render/mipict.c:511:12: acquire_memory: allocated here
xwayland-24.1.9/render/mipict.c:512:8: branch_false: following ‘false’ branch (when ‘tris’ is non-NULL)...
xwayland-24.1.9/render/mipict.c:512:8: branch_false: ...to here
xwayland-24.1.9/render/mipict.c:515:22: branch_false: following ‘false’ branch (when ‘npoints <= 2’)...
xwayland-24.1.9/render/mipict.c:520:5: branch_false: ...to here
xwayland-24.1.9/render/mipict.c:520:5: throw: if ‘CompositeTriangles’ throws an exception...
xwayland-24.1.9/render/mipict.c:520:5: danger: ‘tri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  518|           tri->p3 = points[2];
#  519|       }
#  520|->     CompositeTriangles(op, pSrc, pDst, maskFormat, xSrc, ySrc, ntri, tris);
#  521|       free(tris);
#  522|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def869]
xwayland-24.1.9/render/mipict.c:546:5: warning[-Wanalyzer-malloc-leak]: leak of ‘tris’
xwayland-24.1.9/render/mipict.c:536:12: acquire_memory: allocated here
xwayland-24.1.9/render/mipict.c:537:8: branch_false: following ‘false’ branch (when ‘tris’ is non-NULL)...
xwayland-24.1.9/render/mipict.c:540:13: branch_false: ...to here
xwayland-24.1.9/render/mipict.c:541:22: branch_true: following ‘true’ branch (when ‘npoints > 2’)...
xwayland-24.1.9/render/mipict.c:542:9: branch_true: ...to here
xwayland-24.1.9/render/mipict.c:546:5: throw: if ‘CompositeTriangles’ throws an exception...
xwayland-24.1.9/render/mipict.c:546:5: danger: ‘tris’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  544|           tri->p3 = points[1];
#  545|       }
#  546|->     CompositeTriangles(op, pSrc, pDst, maskFormat, xSrc, ySrc, ntri, tris);
#  547|       free(tris);
#  548|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def870]
xwayland-24.1.9/render/mipict.c:546:5: warning[-Wanalyzer-malloc-leak]: leak of ‘tri’
xwayland-24.1.9/render/mipict.c:536:12: acquire_memory: allocated here
xwayland-24.1.9/render/mipict.c:537:8: branch_false: following ‘false’ branch (when ‘tris’ is non-NULL)...
xwayland-24.1.9/render/mipict.c:540:13: branch_false: ...to here
xwayland-24.1.9/render/mipict.c:541:22: branch_false: following ‘false’ branch (when ‘npoints <= 2’)...
xwayland-24.1.9/render/mipict.c:546:5: branch_false: ...to here
xwayland-24.1.9/render/mipict.c:546:5: throw: if ‘CompositeTriangles’ throws an exception...
xwayland-24.1.9/render/mipict.c:546:5: danger: ‘tri’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  544|           tri->p3 = points[1];
#  545|       }
#  546|->     CompositeTriangles(op, pSrc, pDst, maskFormat, xSrc, ySrc, ntri, tris);
#  547|       free(tris);
#  548|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def871]
xwayland-24.1.9/render/picture.c:1015:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘screen’
xwayland-24.1.9/render/picture.c:1042:1: enter_function: entry to ‘ChangePicture’
xwayland-24.1.9/render/picture.c:1053:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/picture.c:1054:27: branch_true: ...to here
xwayland-24.1.9/render/picture.c:1077:16: branch_true: following ‘true’ branch (when ‘vlist’ is non-NULL)...
xwayland-24.1.9/render/picture.c:1078:31: branch_true: ...to here
xwayland-24.1.9/render/picture.c:1080:20: branch_false: following ‘false’ branch (when ‘pid != 0’)...
xwayland-24.1.9/render/picture.c:1083:29: branch_false: ...to here
xwayland-24.1.9/render/picture.c:1083:29: call_function: calling ‘cpAlphaMap’ from ‘ChangePicture’
# 1013|           if (err != Success)
# 1014|               return err;
# 1015|->         id = res->info[screen->myNum].id;
# 1016|       }
# 1017|   #endif

Error: GCC_ANALYZER_WARNING (CWE-401): [#def872]
xwayland-24.1.9/render/render.c:491:5: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
xwayland-24.1.9/render/render.c:306:1: enter_function: entry to ‘ProcRenderQueryPictFormats’
xwayland-24.1.9/render/render.c:308:37: call_function: calling ‘dixLookupPrivate’ from ‘ProcRenderQueryPictFormats’
xwayland-24.1.9/render/render.c:308:37: return_function: returning to ‘ProcRenderQueryPictFormats’ from ‘dixLookupPrivate’
xwayland-24.1.9/render/render.c:331:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:334:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:334:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:335:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:369:46: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:370:8: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
xwayland-24.1.9/render/render.c:372:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:423:17: branch_false: following ‘false’ branch (when ‘s >= numScreens’)...
xwayland-24.1.9/render/render.c:423:17: branch_false: ...to here
xwayland-24.1.9/render/render.c:469:17: branch_false: following ‘false’ branch (when ‘s >= numSubpixel’)...
xwayland-24.1.9/render/render.c:482:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:491:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:491:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/render/render.c:491:5: danger: ‘reply’ leaks here; was allocated at [(15)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/14)
#  489|           swapl(&reply->numSubpixel);
#  490|       }
#  491|->     WriteToClient(client, rlength, reply);
#  492|       free(reply);
#  493|       return Success;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def873]
xwayland-24.1.9/render/render.c:548:5: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
xwayland-24.1.9/render/render.c:508:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:510:10: branch_false: ...to here
xwayland-24.1.9/render/render.c:512:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:515:16: branch_false: ...to here
xwayland-24.1.9/render/render.c:515:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:519:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:522:50: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:523:8: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
xwayland-24.1.9/render/render.c:526:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:535:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:548:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:548:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/render/render.c:548:5: danger: ‘reply’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#  546|       }
#  547|   
#  548|->     WriteToClient(client, rlength, reply);
#  549|       free(reply);
#  550|       return Success;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def874]
xwayland-24.1.9/render/render.c:1071:15: warning[-Wanalyzer-malloc-leak]: leak of ‘glyphsBase’
xwayland-24.1.9/render/render.c:1012:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1014:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1016:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1022:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1023:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1026:23: branch_false: ...to here
xwayland-24.1.9/render/render.c:1028:8: branch_false: following ‘false’ branch (when ‘nglyphs > 256’)...
xwayland-24.1.9/render/render.c:1033:36: branch_false: ...to here
xwayland-24.1.9/render/render.c:1033:36: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1034:12: branch_false: following ‘false’ branch (when ‘glyphsBase’ is non-NULL)...
xwayland-24.1.9/render/render.c:1038:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1048:8: branch_false: following ‘false’ branch (when ‘stuff <= gi’)...
xwayland-24.1.9/render/render.c:1049:50: branch_false: ...to here
xwayland-24.1.9/render/render.c:1048:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1048:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1048:9: branch_false: following ‘false’ branch (when ‘stuff <= bits’)...
xwayland-24.1.9/render/render.c:1048:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1048:9: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1048:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1056:17: branch_true: following ‘true’ branch (when ‘i < nglyphs’)...
xwayland-24.1.9/render/render.c:1059:28: branch_true: ...to here
xwayland-24.1.9/render/render.c:1068:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1071:45: branch_false: ...to here
xwayland-24.1.9/render/render.c:1071:15: throw: if ‘HashGlyph’ throws an exception...
xwayland-24.1.9/render/render.c:1071:15: danger: ‘glyphsBase’ leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
# 1069|               break;
# 1070|   
# 1071|->         err = HashGlyph(&gi[i], bits, size, glyph_new->sha1);
# 1072|           if (err)
# 1073|               goto bail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def875]
xwayland-24.1.9/render/render.c:1366:36: warning[-Wanalyzer-malloc-leak]: leak of ‘glyphs’
xwayland-24.1.9/render/render.c:1254:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1256:13: branch_false: ...to here
xwayland-24.1.9/render/render.c:1268:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1272:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1272:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1273:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1273:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1274:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1274:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1276:13: branch_false: ...to here
xwayland-24.1.9/render/render.c:1278:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1285:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1289:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1292:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1296:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:1300:13: branch_true: ...to here
xwayland-24.1.9/render/render.c:1312:8: branch_false: following ‘false’ branch (when ‘nglyph > 256’)...
xwayland-24.1.9/render/render.c:1315:22: branch_false: ...to here
xwayland-24.1.9/render/render.c:1315:22: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1316:12: branch_false: following ‘false’ branch (when ‘glyphsBase’ is non-NULL)...
xwayland-24.1.9/render/render.c:1319:8: branch_false: ...to here
xwayland-24.1.9/render/render.c:1319:8: branch_true: following ‘true’ branch (when ‘nlist <= 64’)...
xwayland-24.1.9/render/render.c:1331:11: branch_true: ...to here
xwayland-24.1.9/render/render.c:1331:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:1335:13: branch_true: ...to here
xwayland-24.1.9/render/render.c:1335:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1347:27: branch_false: ...to here
xwayland-24.1.9/render/render.c:1352:20: branch_true: following ‘true’ branch (when ‘n != 0’)...
xwayland-24.1.9/render/render.c:1353:21: branch_true: ...to here
xwayland-24.1.9/render/render.c:1353:20: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:1354:21: branch_true: ...to here
xwayland-24.1.9/render/render.c:1366:36: throw: if ‘FindGlyph’ throws an exception...
xwayland-24.1.9/render/render.c:1366:36: danger: ‘glyphs’ leaks here; was allocated at [(19)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/18)
# 1364|                           break;
# 1365|                       }
# 1366|->                     if ((*glyphs = FindGlyph(glyphSet, glyph))) {
# 1367|                           lists->len++;
# 1368|                           glyphs++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def876]
xwayland-24.1.9/render/render.c:1504:9: warning[-Wanalyzer-malloc-leak]: leak of ‘argbbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1484:16: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1503:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:1504:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:1504:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1504:9: danger: ‘argbbits’ leaks here; was allocated at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
# 1502|       /* what kind of maniac creates a cursor from a window picture though */
# 1503|       if (pSrc->pDrawable->type == DRAWABLE_WINDOW)
# 1504|->         pScreen->SourceValidate(pSrc->pDrawable, 0, 0, width, height,
# 1505|                                   IncludeInferiors);
# 1506|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def877]
xwayland-24.1.9/render/render.c:1504:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1495:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1503:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:1504:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:1504:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1504:9: danger: ‘mskbits’ leaks here; was allocated at [(15)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/14)
# 1502|       /* what kind of maniac creates a cursor from a window picture though */
# 1503|       if (pSrc->pDrawable->type == DRAWABLE_WINDOW)
# 1504|->         pScreen->SourceValidate(pSrc->pDrawable, 0, 0, width, height,
# 1505|                                   IncludeInferiors);
# 1506|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def878]
xwayland-24.1.9/render/render.c:1504:9: warning[-Wanalyzer-malloc-leak]: leak of ‘srcbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1490:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1503:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:1504:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:1504:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1504:9: danger: ‘srcbits’ leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
# 1502|       /* what kind of maniac creates a cursor from a window picture though */
# 1503|       if (pSrc->pDrawable->type == DRAWABLE_WINDOW)
# 1504|->         pScreen->SourceValidate(pSrc->pDrawable, 0, 0, width, height,
# 1505|                                   IncludeInferiors);
# 1506|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def879]
xwayland-24.1.9/render/render.c:1508:9: warning[-Wanalyzer-malloc-leak]: leak of ‘argbbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1484:16: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:1508:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:1508:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1508:9: danger: ‘argbbits’ leaks here; was allocated at [(11)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/10)
# 1506|   
# 1507|       if (pSrc->format == PICT_a8r8g8b8) {
# 1508|->         (*pScreen->GetImage) (pSrc->pDrawable,
# 1509|                                 0, 0, width, height, ZPixmap,
# 1510|                                 0xffffffff, (void *) argbbits);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def880]
xwayland-24.1.9/render/render.c:1508:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1495:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:1508:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:1508:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1508:9: danger: ‘mskbits’ leaks here; was allocated at [(15)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/14)
# 1506|   
# 1507|       if (pSrc->format == PICT_a8r8g8b8) {
# 1508|->         (*pScreen->GetImage) (pSrc->pDrawable,
# 1509|                                 0, 0, width, height, ZPixmap,
# 1510|                                 0xffffffff, (void *) argbbits);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def881]
xwayland-24.1.9/render/render.c:1508:9: warning[-Wanalyzer-malloc-leak]: leak of ‘srcbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1490:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:1508:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:1508:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1508:9: danger: ‘srcbits’ leaks here; was allocated at [(13)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/12)
# 1506|   
# 1507|       if (pSrc->format == PICT_a8r8g8b8) {
# 1508|->         (*pScreen->GetImage) (pSrc->pDrawable,
# 1509|                                 0, 0, width, height, ZPixmap,
# 1510|                                 0xffffffff, (void *) argbbits);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def882]
xwayland-24.1.9/render/render.c:1518:19: warning[-Wanalyzer-malloc-leak]: leak of ‘argbbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1484:16: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1518:19: throw: if ‘PictureMatchFormat’ throws an exception...
xwayland-24.1.9/render/render.c:1518:19: danger: ‘argbbits’ leaks here; was allocated at [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10)
# 1516|           int error;
# 1517|   
# 1518|->         pFormat = PictureMatchFormat(pScreen, 32, PICT_a8r8g8b8);
# 1519|           if (!pFormat) {
# 1520|               free(argbbits);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def883]
xwayland-24.1.9/render/render.c:1518:19: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1495:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1518:19: throw: if ‘PictureMatchFormat’ throws an exception...
xwayland-24.1.9/render/render.c:1518:19: danger: ‘mskbits’ leaks here; was allocated at [(15)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/14)
# 1516|           int error;
# 1517|   
# 1518|->         pFormat = PictureMatchFormat(pScreen, 32, PICT_a8r8g8b8);
# 1519|           if (!pFormat) {
# 1520|               free(argbbits);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def884]
xwayland-24.1.9/render/render.c:1518:19: warning[-Wanalyzer-malloc-leak]: leak of ‘srcbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1490:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1518:19: throw: if ‘PictureMatchFormat’ throws an exception...
xwayland-24.1.9/render/render.c:1518:19: danger: ‘srcbits’ leaks here; was allocated at [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
# 1516|           int error;
# 1517|   
# 1518|->         pFormat = PictureMatchFormat(pScreen, 32, PICT_a8r8g8b8);
# 1519|           if (!pFormat) {
# 1520|               free(argbbits);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def885]
xwayland-24.1.9/render/render.c:1525:19: warning[-Wanalyzer-malloc-leak]: leak of ‘argbbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1484:16: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1525:19: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1525:19: danger: ‘argbbits’ leaks here; was allocated at [(11)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/10)
# 1523|               return BadImplementation;
# 1524|           }
# 1525|->         pPixmap = (*pScreen->CreatePixmap) (pScreen, width, height, 32,
# 1526|                                               CREATE_PIXMAP_USAGE_SCRATCH);
# 1527|           if (!pPixmap) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def886]
xwayland-24.1.9/render/render.c:1525:19: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1495:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1525:19: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1525:19: danger: ‘mskbits’ leaks here; was allocated at [(15)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/14)
# 1523|               return BadImplementation;
# 1524|           }
# 1525|->         pPixmap = (*pScreen->CreatePixmap) (pScreen, width, height, 32,
# 1526|                                               CREATE_PIXMAP_USAGE_SCRATCH);
# 1527|           if (!pPixmap) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def887]
xwayland-24.1.9/render/render.c:1525:19: warning[-Wanalyzer-malloc-leak]: leak of ‘srcbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1490:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1525:19: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1525:19: danger: ‘srcbits’ leaks here; was allocated at [(13)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/12)
# 1523|               return BadImplementation;
# 1524|           }
# 1525|->         pPixmap = (*pScreen->CreatePixmap) (pScreen, width, height, 32,
# 1526|                                               CREATE_PIXMAP_USAGE_SCRATCH);
# 1527|           if (!pPixmap) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def888]
xwayland-24.1.9/render/render.c:1533:20: warning[-Wanalyzer-malloc-leak]: leak of ‘argbbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1484:16: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1533:20: throw: if ‘CreatePicture’ throws an exception...
xwayland-24.1.9/render/render.c:1533:20: danger: ‘argbbits’ leaks here; was allocated at [(11)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/10)
# 1531|               return BadAlloc;
# 1532|           }
# 1533|->         pPicture = CreatePicture(0, &pPixmap->drawable, pFormat, 0, 0,
# 1534|                                    client, &error);
# 1535|           if (!pPicture) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def889]
xwayland-24.1.9/render/render.c:1533:20: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1495:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1533:20: throw: if ‘CreatePicture’ throws an exception...
xwayland-24.1.9/render/render.c:1533:20: danger: ‘mskbits’ leaks here; was allocated at [(15)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/14)
# 1531|               return BadAlloc;
# 1532|           }
# 1533|->         pPicture = CreatePicture(0, &pPixmap->drawable, pFormat, 0, 0,
# 1534|                                    client, &error);
# 1535|           if (!pPicture) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def890]
xwayland-24.1.9/render/render.c:1533:20: warning[-Wanalyzer-malloc-leak]: leak of ‘srcbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1490:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1533:20: throw: if ‘CreatePicture’ throws an exception...
xwayland-24.1.9/render/render.c:1533:20: danger: ‘srcbits’ leaks here; was allocated at [(13)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/12)
# 1531|               return BadAlloc;
# 1532|           }
# 1533|->         pPicture = CreatePicture(0, &pPixmap->drawable, pFormat, 0, 0,
# 1534|                                    client, &error);
# 1535|           if (!pPicture) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def891]
xwayland-24.1.9/render/render.c:1541:9: warning[-Wanalyzer-malloc-leak]: leak of ‘argbbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1484:16: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1535:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1541:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1541:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1541:9: danger: ‘argbbits’ leaks here; was allocated at [(11)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/10)
# 1539|               return error;
# 1540|           }
# 1541|->         (*pScreen->DestroyPixmap) (pPixmap);
# 1542|           CompositePicture(PictOpSrc,
# 1543|                            pSrc, 0, pPicture, 0, 0, 0, 0, 0, 0, width, height);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def892]
xwayland-24.1.9/render/render.c:1541:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1495:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1535:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1541:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1541:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1541:9: danger: ‘mskbits’ leaks here; was allocated at [(15)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/14)
# 1539|               return error;
# 1540|           }
# 1541|->         (*pScreen->DestroyPixmap) (pPixmap);
# 1542|           CompositePicture(PictOpSrc,
# 1543|                            pSrc, 0, pPicture, 0, 0, 0, 0, 0, 0, width, height);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def893]
xwayland-24.1.9/render/render.c:1541:9: warning[-Wanalyzer-malloc-leak]: leak of ‘srcbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1490:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1535:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1541:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1541:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1541:9: danger: ‘srcbits’ leaks here; was allocated at [(13)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/12)
# 1539|               return error;
# 1540|           }
# 1541|->         (*pScreen->DestroyPixmap) (pPixmap);
# 1542|           CompositePicture(PictOpSrc,
# 1543|                            pSrc, 0, pPicture, 0, 0, 0, 0, 0, 0, width, height);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def894]
xwayland-24.1.9/render/render.c:1542:9: warning[-Wanalyzer-malloc-leak]: leak of ‘argbbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1484:16: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1535:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1541:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1542:9: throw: if ‘CompositePicture’ throws an exception...
xwayland-24.1.9/render/render.c:1542:9: danger: ‘argbbits’ leaks here; was allocated at [(11)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/10)
# 1540|           }
# 1541|           (*pScreen->DestroyPixmap) (pPixmap);
# 1542|->         CompositePicture(PictOpSrc,
# 1543|                            pSrc, 0, pPicture, 0, 0, 0, 0, 0, 0, width, height);
# 1544|           (*pScreen->GetImage) (pPicture->pDrawable,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def895]
xwayland-24.1.9/render/render.c:1542:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1495:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1535:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1541:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1542:9: throw: if ‘CompositePicture’ throws an exception...
xwayland-24.1.9/render/render.c:1542:9: danger: ‘mskbits’ leaks here; was allocated at [(15)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/14)
# 1540|           }
# 1541|           (*pScreen->DestroyPixmap) (pPixmap);
# 1542|->         CompositePicture(PictOpSrc,
# 1543|                            pSrc, 0, pPicture, 0, 0, 0, 0, 0, 0, width, height);
# 1544|           (*pScreen->GetImage) (pPicture->pDrawable,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def896]
xwayland-24.1.9/render/render.c:1542:9: warning[-Wanalyzer-malloc-leak]: leak of ‘srcbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1490:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1535:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1541:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1542:9: throw: if ‘CompositePicture’ throws an exception...
xwayland-24.1.9/render/render.c:1542:9: danger: ‘srcbits’ leaks here; was allocated at [(13)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/12)
# 1540|           }
# 1541|           (*pScreen->DestroyPixmap) (pPixmap);
# 1542|->         CompositePicture(PictOpSrc,
# 1543|                            pSrc, 0, pPicture, 0, 0, 0, 0, 0, 0, width, height);
# 1544|           (*pScreen->GetImage) (pPicture->pDrawable,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def897]
xwayland-24.1.9/render/render.c:1544:9: warning[-Wanalyzer-malloc-leak]: leak of ‘argbbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1484:16: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1535:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1541:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1544:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1544:9: danger: ‘argbbits’ leaks here; was allocated at [(11)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/10)
# 1542|           CompositePicture(PictOpSrc,
# 1543|                            pSrc, 0, pPicture, 0, 0, 0, 0, 0, 0, width, height);
# 1544|->         (*pScreen->GetImage) (pPicture->pDrawable,
# 1545|                                 0, 0, width, height, ZPixmap,
# 1546|                                 0xffffffff, (void *) argbbits);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def898]
xwayland-24.1.9/render/render.c:1544:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1495:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1535:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1541:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1544:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1544:9: danger: ‘mskbits’ leaks here; was allocated at [(15)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/14)
# 1542|           CompositePicture(PictOpSrc,
# 1543|                            pSrc, 0, pPicture, 0, 0, 0, 0, 0, 0, width, height);
# 1544|->         (*pScreen->GetImage) (pPicture->pDrawable,
# 1545|                                 0, 0, width, height, ZPixmap,
# 1546|                                 0xffffffff, (void *) argbbits);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def899]
xwayland-24.1.9/render/render.c:1544:9: warning[-Wanalyzer-malloc-leak]: leak of ‘srcbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1490:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1535:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1541:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1544:9: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:1544:9: danger: ‘srcbits’ leaks here; was allocated at [(13)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/12)
# 1542|           CompositePicture(PictOpSrc,
# 1543|                            pSrc, 0, pPicture, 0, 0, 0, 0, 0, 0, width, height);
# 1544|->         (*pScreen->GetImage) (pPicture->pDrawable,
# 1545|                                 0, 0, width, height, ZPixmap,
# 1546|                                 0xffffffff, (void *) argbbits);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def900]
xwayland-24.1.9/render/render.c:1547:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mskbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1495:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1535:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1541:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1547:9: throw: if ‘FreePicture’ throws an exception...
xwayland-24.1.9/render/render.c:1547:9: danger: ‘mskbits’ leaks here; was allocated at [(15)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/14)
# 1545|                                 0, 0, width, height, ZPixmap,
# 1546|                                 0xffffffff, (void *) argbbits);
# 1547|->         FreePicture(pPicture, 0);
# 1548|       }
# 1549|       /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def901]
xwayland-24.1.9/render/render.c:1547:9: warning[-Wanalyzer-malloc-leak]: leak of ‘srcbits’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1490:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1507:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1518:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1519:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1525:19: branch_false: ...to here
xwayland-24.1.9/render/render.c:1527:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1533:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:1535:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1541:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1547:9: throw: if ‘FreePicture’ throws an exception...
xwayland-24.1.9/render/render.c:1547:9: danger: ‘srcbits’ leaks here; was allocated at [(13)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/12)
# 1545|                                 0, 0, width, height, ZPixmap,
# 1546|                                 0xffffffff, (void *) argbbits);
# 1547|->         FreePicture(pPicture, 0);
# 1548|       }
# 1549|       /*

Error: GCC_ANALYZER_WARNING (CWE-457): [#def902]
xwayland-24.1.9/render/render.c:1631:26: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘twocolor[1]’
xwayland-24.1.9/render/render.c:1471:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1472:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1472:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1474:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1474:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1475:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1475:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1477:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1482:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1485:8: branch_false: following ‘false’ branch (when ‘argbbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1488:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:1491:8: branch_false: following ‘false’ branch (when ‘srcbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1495:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1496:8: branch_false: following ‘false’ branch (when ‘mskbits’ is non-NULL)...
xwayland-24.1.9/render/render.c:1503:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1555:17: branch_true: following ‘true’ branch (when ‘ncolor <= 2’)...
xwayland-24.1.9/render/render.c:1555:17: branch_true: ...to here
xwayland-24.1.9/render/render.c:1609:8: branch_false: following ‘false’ branch (when ‘ncolor != 3’)...
xwayland-24.1.9/render/render.c:1614:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1631:26: danger: use of uninitialized value ‘twocolor[1]’ here
# 1629|                            GetColor(twocolor[1], 16),
# 1630|                            GetColor(twocolor[1], 8),
# 1631|->                          GetColor(twocolor[1], 0),
# 1632|                            &pCursor, client, stuff->cid);
# 1633|       if (rc != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def903]
xwayland-24.1.9/render/render.c:1751:5: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
xwayland-24.1.9/render/render.c:1672:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1673:40: branch_false: ...to here
xwayland-24.1.9/render/render.c:1675:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1678:24: branch_false: ...to here
xwayland-24.1.9/render/render.c:1691:42: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1692:8: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
xwayland-24.1.9/render/render.c:1694:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1702:8: branch_false: following ‘false’ branch (when ‘ps’ is NULL)...
xwayland-24.1.9/render/render.c:1742:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1742:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1751:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1751:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/render/render.c:1751:5: danger: ‘reply’ leaks here; was allocated at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
# 1749|           swapl(&reply->numFilters);
# 1750|       }
# 1751|->     WriteToClient(client, total_bytes, reply);
# 1752|       free(reply);
# 1753|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def904]
xwayland-24.1.9/render/render.c:1806:15: warning[-Wanalyzer-malloc-leak]: leak of ‘cursors’
xwayland-24.1.9/render/render.c:1791:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1792:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1792:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1793:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1793:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1796:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1798:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1800:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1800:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1801:8: branch_false: following ‘false’ branch (when ‘cursors’ is non-NULL)...
xwayland-24.1.9/render/render.c:1803:34: branch_false: ...to here
xwayland-24.1.9/render/render.c:1805:17: branch_true: following ‘true’ branch (when ‘i < ncursor’)...
xwayland-24.1.9/render/render.c:1806:64: branch_true: ...to here
xwayland-24.1.9/render/render.c:1806:15: throw: if ‘dixLookupResourceByType’ throws an exception...
xwayland-24.1.9/render/render.c:1806:15: danger: ‘cursors’ leaks here; was allocated at [(9)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/8)
# 1804|       elt = (xAnimCursorElt *) (stuff + 1);
# 1805|       for (i = 0; i < ncursor; i++) {
# 1806|->         ret = dixLookupResourceByType((void **) (cursors + i), elt->cursor,
# 1807|                                         RT_CURSOR, client, DixReadAccess);
# 1808|           if (ret != Success) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def905]
xwayland-24.1.9/render/render.c:1815:11: warning[-Wanalyzer-malloc-leak]: leak of ‘cursors’
xwayland-24.1.9/render/render.c:1791:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1792:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:1792:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1793:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1793:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1796:9: branch_false: ...to here
xwayland-24.1.9/render/render.c:1798:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:1800:15: branch_false: ...to here
xwayland-24.1.9/render/render.c:1800:15: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:1801:8: branch_false: following ‘false’ branch (when ‘cursors’ is non-NULL)...
xwayland-24.1.9/render/render.c:1803:34: branch_false: ...to here
xwayland-24.1.9/render/render.c:1805:17: branch_false: following ‘false’ branch (when ‘i >= ncursor’)...
xwayland-24.1.9/render/render.c:1816:28: branch_false: ...to here
xwayland-24.1.9/render/render.c:1815:11: throw: if ‘AnimCursorCreate’ throws an exception...
xwayland-24.1.9/render/render.c:1815:11: danger: ‘cursors’ leaks here; was allocated at [(9)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/8)
# 1813|           elt++;
# 1814|       }
# 1815|->     ret = AnimCursorCreate(cursors, deltas, ncursor, &pCursor, client,
# 1816|                              stuff->cid);
# 1817|       free(cursors);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def906]
xwayland-24.1.9/render/render.c:2630:18: warning[-Wanalyzer-malloc-leak]: leak of ‘newPict’
xwayland-24.1.9/render/render.c:2610:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2611:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:2613:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2615:38: branch_false: ...to here
xwayland-24.1.9/render/render.c:2615:38: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:2615:8: branch_false: following ‘false’ branch (when ‘newPict’ is non-NULL)...
xwayland-24.1.9/render/render.c:2617:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:2627:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/render/render.c:2628:22: branch_true: ...to here
xwayland-24.1.9/render/render.c:2630:18: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:2630:18: danger: ‘newPict’ leaks here; was allocated at [(5)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/4)
# 2628|           stuff->pid = newPict->info[j].id;
# 2629|           stuff->drawable = refDraw->info[j].id;
# 2630|->         result = (*PanoramiXSaveRenderVector[X_RenderCreatePicture]) (client);
# 2631|           if (result != Success)
# 2632|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def907]
xwayland-24.1.9/render/render.c:2636:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newPict’
xwayland-24.1.9/render/render.c:2610:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2611:14: branch_false: ...to here
xwayland-24.1.9/render/render.c:2613:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2615:38: branch_false: ...to here
xwayland-24.1.9/render/render.c:2615:38: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:2615:8: branch_false: following ‘false’ branch (when ‘newPict’ is non-NULL)...
xwayland-24.1.9/render/render.c:2617:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:2635:8: branch_true: following ‘true’ branch (when ‘result == 0’)...
xwayland-24.1.9/render/render.c:2636:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:2636:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/render/render.c:2636:9: danger: ‘newPict’ leaks here; was allocated at [(5)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/4)
# 2634|   
# 2635|       if (result == Success)
# 2636|->         AddResource(newPict->info[0].id, XRT_PICTURE, newPict);
# 2637|       else
# 2638|           free(newPict);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def908]
xwayland-24.1.9/render/render.c:2878:17: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/render/render.c:2853:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2854:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:2854:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2855:18: branch_false: ...to here
xwayland-24.1.9/render/render.c:2856:8: branch_true: following ‘true’ branch (when ‘extra_len != 0’)...
xwayland-24.1.9/render/render.c:2856:40: branch_true: ...to here
xwayland-24.1.9/render/render.c:2856:40: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:2856:9: branch_true: following ‘true’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/render/render.c:2857:23: branch_true: ...to here
xwayland-24.1.9/render/render.c:2858:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:2859:16: branch_true: ...to here
xwayland-24.1.9/render/render.c:2859:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/render/render.c:2861:20: branch_false: ...to here
xwayland-24.1.9/render/render.c:2878:17: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:2878:17: danger: ‘extra’ leaks here; was allocated at [(7)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/6)
# 2876|               stuff->dst = dst->info[j].id;
# 2877|               result =
# 2878|->                 (*PanoramiXSaveRenderVector[X_RenderFillRectangles]) (client);
# 2879|               if (result != Success)
# 2880|                   break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def909]
xwayland-24.1.9/render/render.c:2937:22: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/render/render.c:2898:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2900:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:2900:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2901:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:2901:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2903:18: branch_false: ...to here
xwayland-24.1.9/render/render.c:2905:8: branch_true: following ‘true’ branch (when ‘extra_len != 0’)...
xwayland-24.1.9/render/render.c:2905:40: branch_true: ...to here
xwayland-24.1.9/render/render.c:2905:40: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:2905:9: branch_true: following ‘true’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/render/render.c:2906:23: branch_true: ...to here
xwayland-24.1.9/render/render.c:2908:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:2909:16: branch_true: ...to here
xwayland-24.1.9/render/render.c:2909:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/render/render.c:2911:20: branch_false: ...to here
xwayland-24.1.9/render/render.c:2937:22: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:2937:22: danger: ‘extra’ leaks here; was allocated at [(9)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/8)
# 2935|               stuff->src = src->info[j].id;
# 2936|               stuff->dst = dst->info[j].id;
# 2937|->             result = (*PanoramiXSaveRenderVector[X_RenderTrapezoids]) (client);
# 2938|   
# 2939|               if (result != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def910]
xwayland-24.1.9/render/render.c:2994:22: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/render/render.c:2959:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2961:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:2961:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2962:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:2962:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:2964:18: branch_false: ...to here
xwayland-24.1.9/render/render.c:2966:8: branch_true: following ‘true’ branch (when ‘extra_len != 0’)...
xwayland-24.1.9/render/render.c:2966:40: branch_true: ...to here
xwayland-24.1.9/render/render.c:2966:40: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:2966:9: branch_true: following ‘true’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/render/render.c:2967:23: branch_true: ...to here
xwayland-24.1.9/render/render.c:2969:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:2970:16: branch_true: ...to here
xwayland-24.1.9/render/render.c:2970:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/render/render.c:2972:20: branch_false: ...to here
xwayland-24.1.9/render/render.c:2994:22: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:2994:22: danger: ‘extra’ leaks here; was allocated at [(9)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/8)
# 2992|               stuff->src = src->info[j].id;
# 2993|               stuff->dst = dst->info[j].id;
# 2994|->             result = (*PanoramiXSaveRenderVector[X_RenderTriangles]) (client);
# 2995|   
# 2996|               if (result != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def911]
xwayland-24.1.9/render/render.c:3047:22: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/render/render.c:3016:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3018:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3018:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3019:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3019:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3021:18: branch_false: ...to here
xwayland-24.1.9/render/render.c:3023:8: branch_true: following ‘true’ branch (when ‘extra_len != 0’)...
xwayland-24.1.9/render/render.c:3023:40: branch_true: ...to here
xwayland-24.1.9/render/render.c:3023:40: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3023:9: branch_true: following ‘true’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/render/render.c:3024:23: branch_true: ...to here
xwayland-24.1.9/render/render.c:3026:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:3027:16: branch_true: ...to here
xwayland-24.1.9/render/render.c:3027:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/render/render.c:3029:20: branch_false: ...to here
xwayland-24.1.9/render/render.c:3047:22: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:3047:22: danger: ‘extra’ leaks here; was allocated at [(9)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/8)
# 3045|               stuff->src = src->info[j].id;
# 3046|               stuff->dst = dst->info[j].id;
# 3047|->             result = (*PanoramiXSaveRenderVector[X_RenderTriStrip]) (client);
# 3048|   
# 3049|               if (result != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def912]
xwayland-24.1.9/render/render.c:3100:22: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/render/render.c:3069:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3071:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3071:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3072:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3072:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3074:18: branch_false: ...to here
xwayland-24.1.9/render/render.c:3076:8: branch_true: following ‘true’ branch (when ‘extra_len != 0’)...
xwayland-24.1.9/render/render.c:3076:40: branch_true: ...to here
xwayland-24.1.9/render/render.c:3076:40: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3076:9: branch_true: following ‘true’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/render/render.c:3077:23: branch_true: ...to here
xwayland-24.1.9/render/render.c:3079:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:3080:16: branch_true: ...to here
xwayland-24.1.9/render/render.c:3080:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/render/render.c:3082:20: branch_false: ...to here
xwayland-24.1.9/render/render.c:3100:22: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:3100:22: danger: ‘extra’ leaks here; was allocated at [(9)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/8)
# 3098|               stuff->src = src->info[j].id;
# 3099|               stuff->dst = dst->info[j].id;
# 3100|->             result = (*PanoramiXSaveRenderVector[X_RenderTriFan]) (client);
# 3101|   
# 3102|               if (result != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def913]
xwayland-24.1.9/render/render.c:3139:22: warning[-Wanalyzer-malloc-leak]: leak of ‘extra’
xwayland-24.1.9/render/render.c:3123:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3124:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3124:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3125:18: branch_false: ...to here
xwayland-24.1.9/render/render.c:3126:8: branch_true: following ‘true’ branch (when ‘extra_len != 0’)...
xwayland-24.1.9/render/render.c:3126:40: branch_true: ...to here
xwayland-24.1.9/render/render.c:3126:40: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3126:9: branch_true: following ‘true’ branch (when ‘extra’ is non-NULL)...
xwayland-24.1.9/render/render.c:3127:23: branch_true: ...to here
xwayland-24.1.9/render/render.c:3130:9: branch_true: following ‘true’ branch...
xwayland-24.1.9/render/render.c:3131:16: branch_true: ...to here
xwayland-24.1.9/render/render.c:3131:16: branch_false: following ‘false’ branch (when ‘j == 0’)...
xwayland-24.1.9/render/render.c:3133:37: branch_false: ...to here
xwayland-24.1.9/render/render.c:3139:22: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:3139:22: danger: ‘extra’ leaks here; was allocated at [(7)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/6)
# 3137|                   stuff->yOff = y_off + screenInfo.screens[j]->y;
# 3138|               }
# 3139|->             result = (*PanoramiXSaveRenderVector[X_RenderAddTraps]) (client);
# 3140|               if (result != Success)
# 3141|                   break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def914]
xwayland-24.1.9/render/render.c:3167:18: warning[-Wanalyzer-malloc-leak]: leak of ‘newPict’
xwayland-24.1.9/render/render.c:3156:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3158:38: branch_false: ...to here
xwayland-24.1.9/render/render.c:3158:38: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3158:8: branch_false: following ‘false’ branch (when ‘newPict’ is non-NULL)...
xwayland-24.1.9/render/render.c:3161:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3165:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/render/render.c:3166:22: branch_true: ...to here
xwayland-24.1.9/render/render.c:3167:18: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:3167:18: danger: ‘newPict’ leaks here; was allocated at [(3)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/2)
# 3165|       FOR_NSCREENS_BACKWARD(j) {
# 3166|           stuff->pid = newPict->info[j].id;
# 3167|->         result = (*PanoramiXSaveRenderVector[X_RenderCreateSolidFill]) (client);
# 3168|           if (result != Success)
# 3169|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def915]
xwayland-24.1.9/render/render.c:3173:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newPict’
xwayland-24.1.9/render/render.c:3156:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3158:38: branch_false: ...to here
xwayland-24.1.9/render/render.c:3158:38: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3158:8: branch_false: following ‘false’ branch (when ‘newPict’ is non-NULL)...
xwayland-24.1.9/render/render.c:3161:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3172:8: branch_true: following ‘true’ branch (when ‘result == 0’)...
xwayland-24.1.9/render/render.c:3173:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:3173:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/render/render.c:3173:9: danger: ‘newPict’ leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
# 3171|   
# 3172|       if (result == Success)
# 3173|->         AddResource(newPict->info[0].id, XRT_PICTURE, newPict);
# 3174|       else
# 3175|           free(newPict);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def916]
xwayland-24.1.9/render/render.c:3199:13: warning[-Wanalyzer-malloc-leak]: leak of ‘newPict’
xwayland-24.1.9/render/render.c:3187:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3189:38: branch_false: ...to here
xwayland-24.1.9/render/render.c:3189:38: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3189:8: branch_false: following ‘false’ branch (when ‘newPict’ is non-NULL)...
xwayland-24.1.9/render/render.c:3192:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3196:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/render/render.c:3197:22: branch_true: ...to here
xwayland-24.1.9/render/render.c:3199:13: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:3199:13: danger: ‘newPict’ leaks here; was allocated at [(3)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/2)
# 3197|           stuff->pid = newPict->info[j].id;
# 3198|           result =
# 3199|->             (*PanoramiXSaveRenderVector[X_RenderCreateLinearGradient]) (client);
# 3200|           if (result != Success)
# 3201|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def917]
xwayland-24.1.9/render/render.c:3205:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newPict’
xwayland-24.1.9/render/render.c:3187:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3189:38: branch_false: ...to here
xwayland-24.1.9/render/render.c:3189:38: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3189:8: branch_false: following ‘false’ branch (when ‘newPict’ is non-NULL)...
xwayland-24.1.9/render/render.c:3192:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3204:8: branch_true: following ‘true’ branch (when ‘result == 0’)...
xwayland-24.1.9/render/render.c:3205:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:3205:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/render/render.c:3205:9: danger: ‘newPict’ leaks here; was allocated at [(3)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/2)
# 3203|   
# 3204|       if (result == Success)
# 3205|->         AddResource(newPict->info[0].id, XRT_PICTURE, newPict);
# 3206|       else
# 3207|           free(newPict);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def918]
xwayland-24.1.9/render/render.c:3231:13: warning[-Wanalyzer-malloc-leak]: leak of ‘newPict’
xwayland-24.1.9/render/render.c:3219:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3221:38: branch_false: ...to here
xwayland-24.1.9/render/render.c:3221:38: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3221:8: branch_false: following ‘false’ branch (when ‘newPict’ is non-NULL)...
xwayland-24.1.9/render/render.c:3224:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3228:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/render/render.c:3229:22: branch_true: ...to here
xwayland-24.1.9/render/render.c:3231:13: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:3231:13: danger: ‘newPict’ leaks here; was allocated at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
# 3229|           stuff->pid = newPict->info[j].id;
# 3230|           result =
# 3231|->             (*PanoramiXSaveRenderVector[X_RenderCreateRadialGradient]) (client);
# 3232|           if (result != Success)
# 3233|               break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def919]
xwayland-24.1.9/render/render.c:3237:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newPict’
xwayland-24.1.9/render/render.c:3219:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3221:38: branch_false: ...to here
xwayland-24.1.9/render/render.c:3221:38: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3221:8: branch_false: following ‘false’ branch (when ‘newPict’ is non-NULL)...
xwayland-24.1.9/render/render.c:3224:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3236:8: branch_true: following ‘true’ branch (when ‘result == 0’)...
xwayland-24.1.9/render/render.c:3237:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:3237:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/render/render.c:3237:9: danger: ‘newPict’ leaks here; was allocated at [(3)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/2)
# 3235|   
# 3236|       if (result == Success)
# 3237|->         AddResource(newPict->info[0].id, XRT_PICTURE, newPict);
# 3238|       else
# 3239|           free(newPict);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def920]
xwayland-24.1.9/render/render.c:3263:13: warning[-Wanalyzer-malloc-leak]: leak of ‘newPict’
xwayland-24.1.9/render/render.c:3251:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3253:38: branch_false: ...to here
xwayland-24.1.9/render/render.c:3253:38: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3253:8: branch_false: following ‘false’ branch (when ‘newPict’ is non-NULL)...
xwayland-24.1.9/render/render.c:3256:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3260:5: branch_true: following ‘true’ branch (when ‘j >= 0’)...
xwayland-24.1.9/render/render.c:3261:22: branch_true: ...to here
xwayland-24.1.9/render/render.c:3263:13: throw: if the called function throws an exception...
xwayland-24.1.9/render/render.c:3263:13: danger: ‘newPict’ leaks here; was allocated at [(3)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/2)
# 3261|           stuff->pid = newPict->info[j].id;
# 3262|           result =
# 3263|->             (*PanoramiXSaveRenderVector[X_RenderCreateConicalGradient])
# 3264|               (client);
# 3265|           if (result != Success)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def921]
xwayland-24.1.9/render/render.c:3270:9: warning[-Wanalyzer-malloc-leak]: leak of ‘newPict’
xwayland-24.1.9/render/render.c:3251:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/render/render.c:3253:38: branch_false: ...to here
xwayland-24.1.9/render/render.c:3253:38: acquire_memory: allocated here
xwayland-24.1.9/render/render.c:3253:8: branch_false: following ‘false’ branch (when ‘newPict’ is non-NULL)...
xwayland-24.1.9/render/render.c:3256:5: branch_false: ...to here
xwayland-24.1.9/render/render.c:3269:8: branch_true: following ‘true’ branch (when ‘result == 0’)...
xwayland-24.1.9/render/render.c:3270:9: branch_true: ...to here
xwayland-24.1.9/render/render.c:3270:9: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/render/render.c:3270:9: danger: ‘newPict’ leaks here; was allocated at [(3)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/2)
# 3268|   
# 3269|       if (result == Success)
# 3270|->         AddResource(newPict->info[0].id, XRT_PICTURE, newPict);
# 3271|       else
# 3272|           free(newPict);

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def923]
xwayland-24.1.9/test/damage/primitives.c:68:43: warning[-Wanalyzer-malloc-leak]: leak of ‘get_image(setup, *setup.d)’
xwayland-24.1.9/test/damage/primitives.c:91:1: enter_function: entry to ‘compute_expected_damage’
xwayland-24.1.9/test/damage/primitives.c:93:25: call_function: calling ‘get_image’ from ‘compute_expected_damage’
xwayland-24.1.9/test/damage/primitives.c:93:25: return_function: returning to ‘compute_expected_damage’ from ‘get_image’
xwayland-24.1.9/test/damage/primitives.c:68:43: danger: ‘get_image(setup, *setup.d)’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#   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: CPPCHECK_WARNING (CWE-476): [#def924]
xwayland-24.1.9/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: GCC_ANALYZER_WARNING (CWE-688): [#def925]
xwayland-24.1.9/test/damage/primitives.c:80:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
xwayland-24.1.9/test/damage/primitives.c:75:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/test/damage/primitives.c:76:5: branch_true: ...to here
xwayland-24.1.9/test/damage/primitives.c:76:5: branch_true: following ‘true’ branch...
xwayland-24.1.9/test/damage/primitives.c:79:31: branch_true: ...to here
xwayland-24.1.9/test/damage/primitives.c:78:24: acquire_memory: this call could return NULL
xwayland-24.1.9/test/damage/primitives.c:80:5: danger: argument 1 (‘result’) from [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
#   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): [#def926]
xwayland-24.1.9/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): [#def927]
xwayland-24.1.9/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): [#def928]
xwayland-24.1.9/test/simple-xinit.c: scope_hint: In function ‘handle_sigchld’
xwayland-24.1.9/test/simple-xinit.c:71:5: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#   71 |     write(server_displayfd, server_dead, strlen(server_dead));
#      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   69|   handle_sigchld(int sig)
#   70|   {
#   71|->     write(server_displayfd, server_dead, strlen(server_dead));
#   72|   }
#   73|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def929]
xwayland-24.1.9/xfixes/cursor.c:238:29: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
xwayland-24.1.9/xfixes/cursor.c:224:8: branch_false: following ‘false’ branch (when ‘eventMask != 0’)...
xwayland-24.1.9/xfixes/cursor.c:230:8: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:230:8: branch_true: following ‘true’ branch (when ‘e’ is NULL)...
xwayland-24.1.9/xfixes/cursor.c:231:30: branch_true: ...to here
xwayland-24.1.9/xfixes/cursor.c:231:30: acquire_memory: allocated here
xwayland-24.1.9/xfixes/cursor.c:232:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
xwayland-24.1.9/xfixes/cursor.c:235:9: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:238:29: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/xfixes/cursor.c:238:29: danger: ‘e’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  236|           e->pClient = pClient;
#  237|           e->pWindow = pWindow;
#  238|->         e->clientResource = FakeClientID(pClient->index);
#  239|   
#  240|           /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def930]
xwayland-24.1.9/xfixes/cursor.c:244:14: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
xwayland-24.1.9/xfixes/cursor.c:224:8: branch_false: following ‘false’ branch (when ‘eventMask != 0’)...
xwayland-24.1.9/xfixes/cursor.c:230:8: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:230:8: branch_true: following ‘true’ branch (when ‘e’ is NULL)...
xwayland-24.1.9/xfixes/cursor.c:231:30: branch_true: ...to here
xwayland-24.1.9/xfixes/cursor.c:231:30: acquire_memory: allocated here
xwayland-24.1.9/xfixes/cursor.c:232:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
xwayland-24.1.9/xfixes/cursor.c:235:9: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:244:14: throw: if ‘dixLookupResourceByType’ throws an exception...
xwayland-24.1.9/xfixes/cursor.c:244:14: danger: ‘e’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  242|            * catch window destroy
#  243|            */
#  244|->         rc = dixLookupResourceByType(&val, pWindow->drawable.id,
#  245|                                        CursorWindowType, serverClient,
#  246|                                        DixGetAttrAccess);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def931]
xwayland-24.1.9/xfixes/cursor.c:248:18: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
xwayland-24.1.9/xfixes/cursor.c:224:8: branch_false: following ‘false’ branch (when ‘eventMask != 0’)...
xwayland-24.1.9/xfixes/cursor.c:230:8: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:230:8: branch_true: following ‘true’ branch (when ‘e’ is NULL)...
xwayland-24.1.9/xfixes/cursor.c:231:30: branch_true: ...to here
xwayland-24.1.9/xfixes/cursor.c:231:30: acquire_memory: allocated here
xwayland-24.1.9/xfixes/cursor.c:232:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
xwayland-24.1.9/xfixes/cursor.c:235:9: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:247:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/xfixes/cursor.c:248:18: branch_true: ...to here
xwayland-24.1.9/xfixes/cursor.c:248:18: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/xfixes/cursor.c:248:18: danger: ‘e’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
#  246|                                        DixGetAttrAccess);
#  247|           if (rc != Success)
#  248|->             if (!AddResource(pWindow->drawable.id, CursorWindowType,
#  249|                                (void *) pWindow)) {
#  250|                   free(e);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def932]
xwayland-24.1.9/xfixes/cursor.c:254:14: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
xwayland-24.1.9/xfixes/cursor.c:224:8: branch_false: following ‘false’ branch (when ‘eventMask != 0’)...
xwayland-24.1.9/xfixes/cursor.c:230:8: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:230:8: branch_true: following ‘true’ branch (when ‘e’ is NULL)...
xwayland-24.1.9/xfixes/cursor.c:231:30: branch_true: ...to here
xwayland-24.1.9/xfixes/cursor.c:231:30: acquire_memory: allocated here
xwayland-24.1.9/xfixes/cursor.c:232:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
xwayland-24.1.9/xfixes/cursor.c:235:9: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:254:14: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/xfixes/cursor.c:254:14: danger: ‘e’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  252|               }
#  253|   
#  254|->         if (!AddResource(e->clientResource, CursorClientType, (void *) e))
#  255|               return BadAlloc;
#  256|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def933]
xwayland-24.1.9/xfixes/cursor.c:410:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rep’
xwayland-24.1.9/xfixes/cursor.c:362:1: enter_function: entry to ‘ProcXFixesGetCursorImage’
xwayland-24.1.9/xfixes/cursor.c:370:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:371:15: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:371:15: call_function: calling ‘CursorForClient’ from ‘ProcXFixesGetCursorImage’
xwayland-24.1.9/xfixes/cursor.c:371:15: return_function: returning to ‘ProcXFixesGetCursorImage’ from ‘CursorForClient’
xwayland-24.1.9/xfixes/cursor.c:372:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:374:10: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:376:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:378:23: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:382:11: acquire_memory: allocated here
xwayland-24.1.9/xfixes/cursor.c:384:8: branch_false: following ‘false’ branch (when ‘rep’ is non-NULL)...
xwayland-24.1.9/xfixes/cursor.c:387:5: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:400:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xfixes/cursor.c:401:9: branch_true: ...to here
xwayland-24.1.9/xfixes/cursor.c:410:9: throw: if ‘SwapLongs’ throws an exception...
xwayland-24.1.9/xfixes/cursor.c:410:9: danger: ‘rep’ leaks here; was allocated at [(16)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/15)
#  408|           swaps(&rep->yhot);
#  409|           swapl(&rep->cursorSerial);
#  410|->         SwapLongs(image, npixels);
#  411|       }
#  412|       WriteToClient(client,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def934]
xwayland-24.1.9/xfixes/cursor.c:412:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rep’
xwayland-24.1.9/xfixes/cursor.c:362:1: enter_function: entry to ‘ProcXFixesGetCursorImage’
xwayland-24.1.9/xfixes/cursor.c:370:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:371:15: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:371:15: call_function: calling ‘CursorForClient’ from ‘ProcXFixesGetCursorImage’
xwayland-24.1.9/xfixes/cursor.c:371:15: return_function: returning to ‘ProcXFixesGetCursorImage’ from ‘CursorForClient’
xwayland-24.1.9/xfixes/cursor.c:372:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:374:10: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:376:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:378:23: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:382:11: acquire_memory: allocated here
xwayland-24.1.9/xfixes/cursor.c:384:8: branch_false: following ‘false’ branch (when ‘rep’ is non-NULL)...
xwayland-24.1.9/xfixes/cursor.c:387:5: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:399:5: call_function: calling ‘CopyCursorToImage’ from ‘ProcXFixesGetCursorImage’
xwayland-24.1.9/xfixes/cursor.c:399:5: return_function: returning to ‘ProcXFixesGetCursorImage’ from ‘CopyCursorToImage’
xwayland-24.1.9/xfixes/cursor.c:400:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:413:56: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:412:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/xfixes/cursor.c:412:5: danger: ‘rep’ leaks here; was allocated at [(16)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/15)
#  410|           SwapLongs(image, npixels);
#  411|       }
#  412|->     WriteToClient(client,
#  413|                     sizeof(xXFixesGetCursorImageReply) + (npixels << 2), rep);
#  414|       free(rep);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def935]
xwayland-24.1.9/xfixes/cursor.c:567:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rep’
xwayland-24.1.9/xfixes/cursor.c:507:1: enter_function: entry to ‘ProcXFixesGetCursorImageAndName’
xwayland-24.1.9/xfixes/cursor.c:519:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:520:15: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:520:15: call_function: calling ‘CursorForClient’ from ‘ProcXFixesGetCursorImageAndName’
xwayland-24.1.9/xfixes/cursor.c:520:15: return_function: returning to ‘ProcXFixesGetCursorImageAndName’ from ‘CursorForClient’
xwayland-24.1.9/xfixes/cursor.c:521:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:523:10: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:525:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:527:23: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:534:11: acquire_memory: allocated here
xwayland-24.1.9/xfixes/cursor.c:536:8: branch_false: following ‘false’ branch (when ‘rep’ is non-NULL)...
xwayland-24.1.9/xfixes/cursor.c:539:5: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:555:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xfixes/cursor.c:556:9: branch_true: ...to here
xwayland-24.1.9/xfixes/cursor.c:567:9: throw: if ‘SwapLongs’ throws an exception...
xwayland-24.1.9/xfixes/cursor.c:567:9: danger: ‘rep’ leaks here; was allocated at [(16)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/15)
#  565|           swapl(&rep->cursorName);
#  566|           swaps(&rep->nbytes);
#  567|->         SwapLongs(image, npixels);
#  568|       }
#  569|       WriteToClient(client, sizeof(xXFixesGetCursorImageAndNameReply) +

Error: GCC_ANALYZER_WARNING (CWE-401): [#def936]
xwayland-24.1.9/xfixes/cursor.c:569:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rep’
xwayland-24.1.9/xfixes/cursor.c:507:1: enter_function: entry to ‘ProcXFixesGetCursorImageAndName’
xwayland-24.1.9/xfixes/cursor.c:519:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:520:15: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:520:15: call_function: calling ‘CursorForClient’ from ‘ProcXFixesGetCursorImageAndName’
xwayland-24.1.9/xfixes/cursor.c:520:15: return_function: returning to ‘ProcXFixesGetCursorImageAndName’ from ‘CursorForClient’
xwayland-24.1.9/xfixes/cursor.c:521:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:523:10: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:525:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:527:23: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:534:11: acquire_memory: allocated here
xwayland-24.1.9/xfixes/cursor.c:536:8: branch_false: following ‘false’ branch (when ‘rep’ is non-NULL)...
xwayland-24.1.9/xfixes/cursor.c:539:5: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:555:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/cursor.c:570:19: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:569:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/xfixes/cursor.c:569:5: danger: ‘rep’ leaks here; was allocated at [(16)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/15)
#  567|           SwapLongs(image, npixels);
#  568|       }
#  569|->     WriteToClient(client, sizeof(xXFixesGetCursorImageAndNameReply) +
#  570|                     (npixels << 2) + nbytesRound, rep);
#  571|       free(rep);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def937]
xwayland-24.1.9/xfixes/cursor.c:786:22: warning[-Wanalyzer-malloc-leak]: leak of ‘pChc’
xwayland-24.1.9/xfixes/cursor.c:774:1: enter_function: entry to ‘createCursorHideCount’
xwayland-24.1.9/xfixes/cursor.c:776:26: call_function: calling ‘dixLookupPrivate’ from ‘createCursorHideCount’
xwayland-24.1.9/xfixes/cursor.c:776:26: return_function: returning to ‘createCursorHideCount’ from ‘dixLookupPrivate’
xwayland-24.1.9/xfixes/cursor.c:779:33: acquire_memory: allocated here
xwayland-24.1.9/xfixes/cursor.c:780:8: branch_false: following ‘false’ branch (when ‘pChc’ is non-NULL)...
xwayland-24.1.9/xfixes/cursor.c:783:5: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:786:22: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/xfixes/cursor.c:786:22: danger: ‘pChc’ leaks here; was allocated at [(13)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/12)
#  784|       pChc->pScreen = pScreen;
#  785|       pChc->hideCount = 1;
#  786|->     pChc->resource = FakeClientID(pClient->index);
#  787|       pChc->pNext = cs->pCursorHideCounts;
#  788|       cs->pCursorHideCounts = pChc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def938]
xwayland-24.1.9/xfixes/cursor.c:794:10: warning[-Wanalyzer-malloc-leak]: leak of ‘pChc’
xwayland-24.1.9/xfixes/cursor.c:774:1: enter_function: entry to ‘createCursorHideCount’
xwayland-24.1.9/xfixes/cursor.c:776:26: call_function: calling ‘dixLookupPrivate’ from ‘createCursorHideCount’
xwayland-24.1.9/xfixes/cursor.c:776:26: return_function: returning to ‘createCursorHideCount’ from ‘dixLookupPrivate’
xwayland-24.1.9/xfixes/cursor.c:779:33: acquire_memory: allocated here
xwayland-24.1.9/xfixes/cursor.c:780:8: branch_false: following ‘false’ branch (when ‘pChc’ is non-NULL)...
xwayland-24.1.9/xfixes/cursor.c:783:5: branch_false: ...to here
xwayland-24.1.9/xfixes/cursor.c:794:10: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/xfixes/cursor.c:794:10: danger: ‘pChc’ leaks here; was allocated at [(13)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/12)
#  792|        * when the client goes away.
#  793|        */
#  794|->     if (!AddResource(pChc->resource, CursorHideCountType, (void *) pChc))
#  795|           return BadAlloc;
#  796|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def939]
xwayland-24.1.9/xfixes/region.c:575:9: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
xwayland-24.1.9/xfixes/region.c:531:1: enter_function: entry to ‘ProcXFixesFetchRegion’
xwayland-24.1.9/xfixes/region.c:542:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/region.c:543:5: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:543:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/region.c:545:15: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:547:12: call_function: inlined call to ‘RegionNumRects’ from ‘ProcXFixesFetchRegion’
xwayland-24.1.9/xfixes/region.c:549:13: acquire_memory: allocated here
xwayland-24.1.9/xfixes/region.c:551:8: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
xwayland-24.1.9/xfixes/region.c:553:5: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:562:17: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/region.c:568:9: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:568:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xfixes/region.c:569:9: branch_true: ...to here
xwayland-24.1.9/xfixes/region.c:575:9: throw: if ‘SwapShorts’ throws an exception...
xwayland-24.1.9/xfixes/region.c:575:9: danger: ‘reply’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  573|           swaps(&reply->width);
#  574|           swaps(&reply->height);
#  575|->         SwapShorts((INT16 *) pRect, nBox * 4);
#  576|       }
#  577|       WriteToClient(client, sizeof(xXFixesFetchRegionReply) +

Error: GCC_ANALYZER_WARNING (CWE-401): [#def940]
xwayland-24.1.9/xfixes/region.c:577:5: warning[-Wanalyzer-malloc-leak]: leak of ‘reply’
xwayland-24.1.9/xfixes/region.c:531:1: enter_function: entry to ‘ProcXFixesFetchRegion’
xwayland-24.1.9/xfixes/region.c:542:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/region.c:543:5: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:543:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/region.c:545:15: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:547:12: call_function: inlined call to ‘RegionNumRects’ from ‘ProcXFixesFetchRegion’
xwayland-24.1.9/xfixes/region.c:549:13: acquire_memory: allocated here
xwayland-24.1.9/xfixes/region.c:551:8: branch_false: following ‘false’ branch (when ‘reply’ is non-NULL)...
xwayland-24.1.9/xfixes/region.c:553:5: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:568:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/region.c:577:5: branch_false: ...to here
xwayland-24.1.9/xfixes/region.c:577:5: throw: if ‘WriteToClient’ throws an exception...
xwayland-24.1.9/xfixes/region.c:577:5: danger: ‘reply’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  575|           SwapShorts((INT16 *) pRect, nBox * 4);
#  576|       }
#  577|->     WriteToClient(client, sizeof(xXFixesFetchRegionReply) +
#  578|                            nBox * sizeof(xRectangle), (char *) reply);
#  579|       free(reply);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def941]
xwayland-24.1.9/xfixes/select.c:152:29: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
xwayland-24.1.9/xfixes/select.c:128:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/select.c:131:10: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:137:8: branch_false: following ‘false’ branch (when ‘eventMask != 0’)...
xwayland-24.1.9/xfixes/select.c:143:8: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:143:8: branch_true: following ‘true’ branch (when ‘e’ is NULL)...
xwayland-24.1.9/xfixes/select.c:144:33: branch_true: ...to here
xwayland-24.1.9/xfixes/select.c:144:33: acquire_memory: allocated here
xwayland-24.1.9/xfixes/select.c:145:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
xwayland-24.1.9/xfixes/select.c:148:9: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:152:29: throw: if ‘FakeClientID’ throws an exception...
xwayland-24.1.9/xfixes/select.c:152:29: danger: ‘e’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  150|           e->pClient = pClient;
#  151|           e->pWindow = pWindow;
#  152|->         e->clientResource = FakeClientID(pClient->index);
#  153|   
#  154|           /*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def942]
xwayland-24.1.9/xfixes/select.c:158:14: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
xwayland-24.1.9/xfixes/select.c:128:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/select.c:131:10: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:137:8: branch_false: following ‘false’ branch (when ‘eventMask != 0’)...
xwayland-24.1.9/xfixes/select.c:143:8: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:143:8: branch_true: following ‘true’ branch (when ‘e’ is NULL)...
xwayland-24.1.9/xfixes/select.c:144:33: branch_true: ...to here
xwayland-24.1.9/xfixes/select.c:144:33: acquire_memory: allocated here
xwayland-24.1.9/xfixes/select.c:145:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
xwayland-24.1.9/xfixes/select.c:148:9: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:158:14: throw: if ‘dixLookupResourceByType’ throws an exception...
xwayland-24.1.9/xfixes/select.c:158:14: danger: ‘e’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  156|            * catch window destroy
#  157|            */
#  158|->         rc = dixLookupResourceByType(&val, pWindow->drawable.id,
#  159|                                        SelectionWindowType, serverClient,
#  160|                                        DixGetAttrAccess);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def943]
xwayland-24.1.9/xfixes/select.c:162:18: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
xwayland-24.1.9/xfixes/select.c:128:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/select.c:131:10: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:137:8: branch_false: following ‘false’ branch (when ‘eventMask != 0’)...
xwayland-24.1.9/xfixes/select.c:143:8: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:143:8: branch_true: following ‘true’ branch (when ‘e’ is NULL)...
xwayland-24.1.9/xfixes/select.c:144:33: branch_true: ...to here
xwayland-24.1.9/xfixes/select.c:144:33: acquire_memory: allocated here
xwayland-24.1.9/xfixes/select.c:145:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
xwayland-24.1.9/xfixes/select.c:148:9: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:161:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/xfixes/select.c:162:18: branch_true: ...to here
xwayland-24.1.9/xfixes/select.c:162:18: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/xfixes/select.c:162:18: danger: ‘e’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
#  160|                                        DixGetAttrAccess);
#  161|           if (rc != Success)
#  162|->             if (!AddResource(pWindow->drawable.id, SelectionWindowType,
#  163|                                (void *) pWindow)) {
#  164|                   free(e);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def944]
xwayland-24.1.9/xfixes/select.c:168:14: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
xwayland-24.1.9/xfixes/select.c:128:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xfixes/select.c:131:10: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:137:8: branch_false: following ‘false’ branch (when ‘eventMask != 0’)...
xwayland-24.1.9/xfixes/select.c:143:8: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:143:8: branch_true: following ‘true’ branch (when ‘e’ is NULL)...
xwayland-24.1.9/xfixes/select.c:144:33: branch_true: ...to here
xwayland-24.1.9/xfixes/select.c:144:33: acquire_memory: allocated here
xwayland-24.1.9/xfixes/select.c:145:12: branch_false: following ‘false’ branch (when ‘e’ is non-NULL)...
xwayland-24.1.9/xfixes/select.c:148:9: branch_false: ...to here
xwayland-24.1.9/xfixes/select.c:168:14: throw: if ‘AddResource’ throws an exception...
xwayland-24.1.9/xfixes/select.c:168:14: danger: ‘e’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  166|               }
#  167|   
#  168|->         if (!AddResource(e->clientResource, SelectionClientType, (void *) e))
#  169|               return BadAlloc;
#  170|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def945]
xwayland-24.1.9/xkb/XKBGAlloc.c:457:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*((struct _XkbOverlay *)overlay).rows’
xwayland-24.1.9/xkb/XKBGAlloc.c:856:1: enter_function: entry to ‘SrvXkbAddGeomOverlay’
xwayland-24.1.9/xkb/XKBGAlloc.c:861:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/XKBGAlloc.c:864:46: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/XKBGAlloc.c:866:13: branch_true: ...to here
xwayland-24.1.9/xkb/XKBGAlloc.c:867:16: branch_true: following ‘true’ branch (when ‘sz_rows > 0’)...
xwayland-24.1.9/xkb/XKBGAlloc.c:868:18: branch_true: ...to here
xwayland-24.1.9/xkb/XKBGAlloc.c:868:18: call_function: calling ‘_XkbGeomAlloc’ from ‘SrvXkbAddGeomOverlay’
#  455|   
#  456|       return Success;
#  457|-> }
#  458|   
#  459|   #define	_XkbAllocProps(g,n) _XkbGeomAlloc((void *)&(g)->properties,\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def946]
xwayland-24.1.9/xkb/XKBGAlloc.c:457:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*section.doodads’
xwayland-24.1.9/xkb/XKBGAlloc.c:713:1: enter_function: entry to ‘SrvXkbAddGeomSection’
xwayland-24.1.9/xkb/XKBGAlloc.c:719:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/XKBGAlloc.c:721:43: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/XKBGAlloc.c:723:13: branch_true: ...to here
xwayland-24.1.9/xkb/XKBGAlloc.c:725:13: branch_true: following ‘true’ branch (when ‘sz_doodads > 0’)...
xwayland-24.1.9/xkb/XKBGAlloc.c:727:15: branch_true: ...to here
xwayland-24.1.9/xkb/XKBGAlloc.c:727:15: call_function: calling ‘_XkbGeomAlloc’ from ‘SrvXkbAddGeomSection’
#  455|   
#  456|       return Success;
#  457|-> }
#  458|   
#  459|   #define	_XkbAllocProps(g,n) _XkbGeomAlloc((void *)&(g)->properties,\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def947]
xwayland-24.1.9/xkb/XKBGAlloc.c:457:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*section.overlays’
xwayland-24.1.9/xkb/XKBGAlloc.c:713:1: enter_function: entry to ‘SrvXkbAddGeomSection’
xwayland-24.1.9/xkb/XKBGAlloc.c:719:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/XKBGAlloc.c:721:43: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/XKBGAlloc.c:723:13: branch_true: ...to here
xwayland-24.1.9/xkb/XKBGAlloc.c:725:13: branch_true: following ‘true’ branch (when ‘sz_over > 0’)...
xwayland-24.1.9/xkb/XKBGAlloc.c:728:32: branch_true: ...to here
xwayland-24.1.9/xkb/XKBGAlloc.c:728:32: call_function: calling ‘_XkbGeomAlloc’ from ‘SrvXkbAddGeomSection’
#  455|   
#  456|       return Success;
#  457|-> }
#  458|   
#  459|   #define	_XkbAllocProps(g,n) _XkbGeomAlloc((void *)&(g)->properties,\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def948]
xwayland-24.1.9/xkb/XKBGAlloc.c:457:1: warning[-Wanalyzer-malloc-leak]: leak of ‘*section.rows’
xwayland-24.1.9/xkb/XKBGAlloc.c:713:1: enter_function: entry to ‘SrvXkbAddGeomSection’
xwayland-24.1.9/xkb/XKBGAlloc.c:719:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/XKBGAlloc.c:721:43: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/XKBGAlloc.c:723:13: branch_true: ...to here
xwayland-24.1.9/xkb/XKBGAlloc.c:725:12: branch_true: following ‘true’ branch (when ‘sz_rows != 0’)...
xwayland-24.1.9/xkb/XKBGAlloc.c:725:32: branch_true: ...to here
xwayland-24.1.9/xkb/XKBGAlloc.c:725:32: call_function: calling ‘_XkbGeomAlloc’ from ‘SrvXkbAddGeomSection’
#  455|   
#  456|       return Success;
#  457|-> }
#  458|   
#  459|   #define	_XkbAllocProps(g,n) _XkbGeomAlloc((void *)&(g)->properties,\

Error: GCC_ANALYZER_WARNING (CWE-401): [#def949]
xwayland-24.1.9/xkb/XKBGAlloc.c:557:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*prop.value’
xwayland-24.1.9/xkb/XKBGAlloc.c:552:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/XKBGAlloc.c:554:42: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/XKBGAlloc.c:555:13: branch_true: ...to here
xwayland-24.1.9/xkb/XKBGAlloc.c:555:12: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/XKBGAlloc.c:555:30: branch_true: ...to here
xwayland-24.1.9/xkb/XKBGAlloc.c:557:27: acquire_memory: allocated here
xwayland-24.1.9/xkb/XKBGAlloc.c:557:13: danger: ‘*prop.value’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/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-775): [#def950]
xwayland-24.1.9/xkb/ddxLoad.c:315:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘XkbDDXOpenConfigFile(keymap, & fileName, 4096)’
xwayland-24.1.9/xkb/ddxLoad.c:343:1: enter_function: entry to ‘LoadXKM’
xwayland-24.1.9/xkb/ddxLoad.c:349:12: call_function: calling ‘XkbDDXOpenConfigFile’ from ‘LoadXKM’
xwayland-24.1.9/xkb/ddxLoad.c:349:12: return_function: returning to ‘LoadXKM’ from ‘XkbDDXOpenConfigFile’
xwayland-24.1.9/xkb/ddxLoad.c:350:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:355:15: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:355:15: throw: if ‘XkmReadFile’ throws an exception...
xwayland-24.1.9/xkb/ddxLoad.c:315:13: danger: ‘XkbDDXOpenConfigFile(keymap, & fileName, 4096)’ leaks here; was opened at [(15)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/14)
#  313|       if (mapName != NULL) {
#  314|           OutputDirectory(xkm_output_dir, sizeof(xkm_output_dir));
#  315|->         if ((XkbBaseDirectory != NULL) && (xkm_output_dir[0] != '/')
#  316|   #ifdef WIN32
#  317|               && (!isalpha(xkm_output_dir[0]) || xkm_output_dir[1] != ':')

Error: GCC_ANALYZER_WARNING (CWE-401): [#def951]
xwayland-24.1.9/xkb/ddxLoad.c:315:13: warning[-Wanalyzer-malloc-leak]: leak of ‘XkbDDXOpenConfigFile(keymap, & fileName, 4096)’
xwayland-24.1.9/xkb/ddxLoad.c:343:1: enter_function: entry to ‘LoadXKM’
xwayland-24.1.9/xkb/ddxLoad.c:349:12: call_function: calling ‘XkbDDXOpenConfigFile’ from ‘LoadXKM’
xwayland-24.1.9/xkb/ddxLoad.c:349:12: return_function: returning to ‘LoadXKM’ from ‘XkbDDXOpenConfigFile’
xwayland-24.1.9/xkb/ddxLoad.c:350:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:355:15: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:355:15: throw: if ‘XkmReadFile’ throws an exception...
xwayland-24.1.9/xkb/ddxLoad.c:315:13: danger: ‘XkbDDXOpenConfigFile(keymap, & fileName, 4096)’ leaks here; was allocated at [(15)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/14)
#  313|       if (mapName != NULL) {
#  314|           OutputDirectory(xkm_output_dir, sizeof(xkm_output_dir));
#  315|->         if ((XkbBaseDirectory != NULL) && (xkm_output_dir[0] != '/')
#  316|   #ifdef WIN32
#  317|               && (!isalpha(xkm_output_dir[0]) || xkm_output_dir[1] != ':')

Error: GCC_ANALYZER_WARNING (CWE-775): [#def952]
xwayland-24.1.9/xkb/ddxLoad.c:427:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&buf, "r")’
xwayland-24.1.9/xkb/ddxLoad.c:415:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:421:12: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:421:12: acquire_resource: opened here
xwayland-24.1.9/xkb/ddxLoad.c:422:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:427:13: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:427:13: throw: if ‘XkbRF_Create’ throws an exception...
xwayland-24.1.9/xkb/ddxLoad.c:427:13: danger: ‘fopen(&buf, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  425|       }
#  426|   
#  427|->     rules = XkbRF_Create();
#  428|       if (!rules) {
#  429|           LogMessage(X_ERROR, "XKB: Couldn't create rules struct\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def953]
xwayland-24.1.9/xkb/ddxLoad.c:427:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&buf, "r")’
xwayland-24.1.9/xkb/ddxLoad.c:415:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:421:12: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:421:12: acquire_memory: allocated here
xwayland-24.1.9/xkb/ddxLoad.c:422:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:427:13: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:427:13: throw: if ‘XkbRF_Create’ throws an exception...
xwayland-24.1.9/xkb/ddxLoad.c:427:13: danger: ‘fopen(&buf, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  425|       }
#  426|   
#  427|->     rules = XkbRF_Create();
#  428|       if (!rules) {
#  429|           LogMessage(X_ERROR, "XKB: Couldn't create rules struct\n");

Error: GCC_ANALYZER_WARNING (CWE-775): [#def954]
xwayland-24.1.9/xkb/ddxLoad.c:429:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&buf, "r")’
xwayland-24.1.9/xkb/ddxLoad.c:415:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:421:12: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:421:12: acquire_resource: opened here
xwayland-24.1.9/xkb/ddxLoad.c:422:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:427:13: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:428:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:429:9: branch_true: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:429:9: throw: if ‘LogMessage’ throws an exception...
xwayland-24.1.9/xkb/ddxLoad.c:429:9: danger: ‘fopen(&buf, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  427|       rules = XkbRF_Create();
#  428|       if (!rules) {
#  429|->         LogMessage(X_ERROR, "XKB: Couldn't create rules struct\n");
#  430|           fclose(file);
#  431|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def955]
xwayland-24.1.9/xkb/ddxLoad.c:429:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&buf, "r")’
xwayland-24.1.9/xkb/ddxLoad.c:415:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:421:12: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:421:12: acquire_memory: allocated here
xwayland-24.1.9/xkb/ddxLoad.c:422:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:427:13: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:428:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:429:9: branch_true: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:429:9: throw: if ‘LogMessage’ throws an exception...
xwayland-24.1.9/xkb/ddxLoad.c:429:9: danger: ‘fopen(&buf, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  427|       rules = XkbRF_Create();
#  428|       if (!rules) {
#  429|->         LogMessage(X_ERROR, "XKB: Couldn't create rules struct\n");
#  430|           fclose(file);
#  431|           return FALSE;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def956]
xwayland-24.1.9/xkb/ddxLoad.c:434:10: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&buf, "r")’
xwayland-24.1.9/xkb/ddxLoad.c:415:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:421:12: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:421:12: acquire_resource: opened here
xwayland-24.1.9/xkb/ddxLoad.c:422:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:427:13: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:428:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:434:10: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:434:10: throw: if ‘XkbRF_LoadRules’ throws an exception...
xwayland-24.1.9/xkb/ddxLoad.c:434:10: danger: ‘fopen(&buf, "r")’ leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  432|       }
#  433|   
#  434|->     if (!XkbRF_LoadRules(file, rules)) {
#  435|           LogMessage(X_ERROR, "XKB: Couldn't parse rules file %s\n", rules_name);
#  436|           fclose(file);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def957]
xwayland-24.1.9/xkb/ddxLoad.c:434:10: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&buf, "r")’
xwayland-24.1.9/xkb/ddxLoad.c:415:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:421:12: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:421:12: acquire_memory: allocated here
xwayland-24.1.9/xkb/ddxLoad.c:422:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:427:13: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:428:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/ddxLoad.c:434:10: branch_false: ...to here
xwayland-24.1.9/xkb/ddxLoad.c:434:10: throw: if ‘XkbRF_LoadRules’ throws an exception...
xwayland-24.1.9/xkb/ddxLoad.c:434:10: danger: ‘fopen(&buf, "r")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#  432|       }
#  433|   
#  434|->     if (!XkbRF_LoadRules(file, rules)) {
#  435|           LogMessage(X_ERROR, "XKB: Couldn't parse rules file %s\n", rules_name);
#  436|           fclose(file);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def958]
xwayland-24.1.9/xkb/maprules.c:154:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘file’
xwayland-24.1.9/xkb/maprules.c:969:1: enter_function: entry to ‘XkbRF_LoadRulesByName’
xwayland-24.1.9/xkb/maprules.c:975:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/maprules.c:977:8: branch_false: ...to here
xwayland-24.1.9/xkb/maprules.c:978:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/maprules.c:987:12: branch_false: ...to here
xwayland-24.1.9/xkb/maprules.c:987:12: acquire_resource: opened here
xwayland-24.1.9/xkb/maprules.c:988:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/maprules.c:992:8: branch_false: ...to here
xwayland-24.1.9/xkb/maprules.c:992:8: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
xwayland-24.1.9/xkb/maprules.c:994:10: branch_false: ...to here
xwayland-24.1.9/xkb/maprules.c:994:10: call_function: calling ‘XkbRF_LoadRules’ from ‘XkbRF_LoadRulesByName’
#  152|                   if ((ch != '\n') && (line->num_line > 0))
#  153|                       spacePending = TRUE;
#  154|->                 ungetc(ch, file);
#  155|               }
#  156|               else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def959]
xwayland-24.1.9/xkb/maprules.c:154:17: warning[-Wanalyzer-malloc-leak]: leak of ‘file’
xwayland-24.1.9/xkb/maprules.c:969:1: enter_function: entry to ‘XkbRF_LoadRulesByName’
xwayland-24.1.9/xkb/maprules.c:975:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/maprules.c:977:8: branch_false: ...to here
xwayland-24.1.9/xkb/maprules.c:978:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/maprules.c:987:12: branch_false: ...to here
xwayland-24.1.9/xkb/maprules.c:987:12: acquire_memory: allocated here
xwayland-24.1.9/xkb/maprules.c:988:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/maprules.c:992:8: branch_false: ...to here
xwayland-24.1.9/xkb/maprules.c:992:8: branch_false: following ‘false’ branch (when ‘file’ is non-NULL)...
xwayland-24.1.9/xkb/maprules.c:994:10: branch_false: ...to here
xwayland-24.1.9/xkb/maprules.c:994:10: call_function: calling ‘XkbRF_LoadRules’ from ‘XkbRF_LoadRulesByName’
#  152|                   if ((ch != '\n') && (line->num_line > 0))
#  153|                       spacePending = TRUE;
#  154|->                 ungetc(ch, file);
#  155|               }
#  156|               else {

Error: COMPILER_WARNING: [#def960]
xwayland-24.1.9/xkb/xkb.c: scope_hint: In function ‘_XkbSetNamedIndicator’
xwayland-24.1.9/xkb/xkb.c:3578:18: warning[-Wunused-but-set-variable=]: variable ‘extDevReason’ set but not used
# 3578 |     unsigned int extDevReason;
#      |                  ^~~~~~~~~~~~
# 3576|                         xkbSetNamedIndicatorReq * stuff)
# 3577|   {
# 3578|->     unsigned int extDevReason;
# 3579|       unsigned int statec, namec, mapc;
# 3580|       XkbSrvLedInfoPtr sli;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def961]
xwayland-24.1.9/xkb/xkbActions.c:1146:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*((struct _XkbSrvInfo *)xkbi).filters’
xwayland-24.1.9/xkb/xkbActions.c:1462:1: enter_function: entry to ‘SrvXkbLatchGroup’
xwayland-24.1.9/xkb/xkbActions.c:1468:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/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): [#def962]
xwayland-24.1.9/xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:542:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:527:5: danger: ‘rmlvo_dflts.layout’ leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
#  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): [#def963]
xwayland-24.1.9/xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:542:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:527:5: danger: ‘rmlvo_dflts.model’ leaks here; was allocated at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
#  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): [#def964]
xwayland-24.1.9/xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.options’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:542:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:527:5: danger: ‘rmlvo_dflts.options’ leaks here; was allocated at [(14)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/13)
#  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): [#def965]
xwayland-24.1.9/xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:542:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:527:5: danger: ‘rmlvo_dflts.rules’ leaks here; was allocated at [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
#  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): [#def966]
xwayland-24.1.9/xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.variant’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:542:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:527:5: danger: ‘rmlvo_dflts.variant’ leaks here; was allocated at [(14)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/13)
#  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): [#def967]
xwayland-24.1.9/xkb/xkbInit.c:542:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:542:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:542:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:542:9: danger: ‘rmlvo_dflts.layout’ leaks here; was allocated at [(14)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/13)
#  540|       dev->key = calloc(1, sizeof(*dev->key));
#  541|       if (!dev->key) {
#  542|->         ErrorF("XKB: Failed to allocate key class\n");
#  543|           return FALSE;
#  544|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def968]
xwayland-24.1.9/xkb/xkbInit.c:542:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:542:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:542:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:542:9: danger: ‘rmlvo_dflts.model’ leaks here; was allocated at [(14)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/13)
#  540|       dev->key = calloc(1, sizeof(*dev->key));
#  541|       if (!dev->key) {
#  542|->         ErrorF("XKB: Failed to allocate key class\n");
#  543|           return FALSE;
#  544|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def969]
xwayland-24.1.9/xkb/xkbInit.c:542:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.options’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:542:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:542:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:542:9: danger: ‘rmlvo_dflts.options’ leaks here; was allocated at [(14)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/13)
#  540|       dev->key = calloc(1, sizeof(*dev->key));
#  541|       if (!dev->key) {
#  542|->         ErrorF("XKB: Failed to allocate key class\n");
#  543|           return FALSE;
#  544|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def970]
xwayland-24.1.9/xkb/xkbInit.c:542:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:542:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:542:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:542:9: danger: ‘rmlvo_dflts.rules’ leaks here; was allocated at [(14)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/13)
#  540|       dev->key = calloc(1, sizeof(*dev->key));
#  541|       if (!dev->key) {
#  542|->         ErrorF("XKB: Failed to allocate key class\n");
#  543|           return FALSE;
#  544|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def971]
xwayland-24.1.9/xkb/xkbInit.c:542:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.variant’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:542:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:542:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:542:9: danger: ‘rmlvo_dflts.variant’ leaks here; was allocated at [(14)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/13)
#  540|       dev->key = calloc(1, sizeof(*dev->key));
#  541|       if (!dev->key) {
#  542|->         ErrorF("XKB: Failed to allocate key class\n");
#  543|           return FALSE;
#  544|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def972]
xwayland-24.1.9/xkb/xkbInit.c:549:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:549:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:549:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:549:9: danger: ‘rmlvo_dflts.layout’ leaks here; was allocated at [(14)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/13)
#  547|       dev->kbdfeed = calloc(1, sizeof(*dev->kbdfeed));
#  548|       if (!dev->kbdfeed) {
#  549|->         ErrorF("XKB: Failed to allocate key feedback class\n");
#  550|           goto unwind_key;
#  551|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def973]
xwayland-24.1.9/xkb/xkbInit.c:549:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:549:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:549:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:549:9: danger: ‘rmlvo_dflts.model’ leaks here; was allocated at [(14)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/13)
#  547|       dev->kbdfeed = calloc(1, sizeof(*dev->kbdfeed));
#  548|       if (!dev->kbdfeed) {
#  549|->         ErrorF("XKB: Failed to allocate key feedback class\n");
#  550|           goto unwind_key;
#  551|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def974]
xwayland-24.1.9/xkb/xkbInit.c:549:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.options’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:549:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:549:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:549:9: danger: ‘rmlvo_dflts.options’ leaks here; was allocated at [(14)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/13)
#  547|       dev->kbdfeed = calloc(1, sizeof(*dev->kbdfeed));
#  548|       if (!dev->kbdfeed) {
#  549|->         ErrorF("XKB: Failed to allocate key feedback class\n");
#  550|           goto unwind_key;
#  551|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def975]
xwayland-24.1.9/xkb/xkbInit.c:549:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:549:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:549:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:549:9: danger: ‘rmlvo_dflts.rules’ leaks here; was allocated at [(14)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/13)
#  547|       dev->kbdfeed = calloc(1, sizeof(*dev->kbdfeed));
#  548|       if (!dev->kbdfeed) {
#  549|->         ErrorF("XKB: Failed to allocate key feedback class\n");
#  550|           goto unwind_key;
#  551|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def976]
xwayland-24.1.9/xkb/xkbInit.c:549:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.variant’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:549:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:549:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:549:9: danger: ‘rmlvo_dflts.variant’ leaks here; was allocated at [(14)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/13)
#  547|       dev->kbdfeed = calloc(1, sizeof(*dev->kbdfeed));
#  548|       if (!dev->kbdfeed) {
#  549|->         ErrorF("XKB: Failed to allocate key feedback class\n");
#  550|           goto unwind_key;
#  551|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def977]
xwayland-24.1.9/xkb/xkbInit.c:555:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_true: following ‘true’ branch (when ‘xkbi’ is NULL)...
xwayland-24.1.9/xkb/xkbInit.c:555:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:555:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:555:9: danger: ‘rmlvo_dflts.layout’ leaks here; was allocated at [(14)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/13)
#  553|       xkbi = calloc(1, sizeof(*xkbi));
#  554|       if (!xkbi) {
#  555|->         ErrorF("XKB: Failed to allocate XKB info\n");
#  556|           goto unwind_kbdfeed;
#  557|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def978]
xwayland-24.1.9/xkb/xkbInit.c:555:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_true: following ‘true’ branch (when ‘xkbi’ is NULL)...
xwayland-24.1.9/xkb/xkbInit.c:555:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:555:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:555:9: danger: ‘rmlvo_dflts.model’ leaks here; was allocated at [(14)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/13)
#  553|       xkbi = calloc(1, sizeof(*xkbi));
#  554|       if (!xkbi) {
#  555|->         ErrorF("XKB: Failed to allocate XKB info\n");
#  556|           goto unwind_kbdfeed;
#  557|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def979]
xwayland-24.1.9/xkb/xkbInit.c:555:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.options’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_true: following ‘true’ branch (when ‘xkbi’ is NULL)...
xwayland-24.1.9/xkb/xkbInit.c:555:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:555:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:555:9: danger: ‘rmlvo_dflts.options’ leaks here; was allocated at [(14)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/13)
#  553|       xkbi = calloc(1, sizeof(*xkbi));
#  554|       if (!xkbi) {
#  555|->         ErrorF("XKB: Failed to allocate XKB info\n");
#  556|           goto unwind_kbdfeed;
#  557|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def980]
xwayland-24.1.9/xkb/xkbInit.c:555:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_true: following ‘true’ branch (when ‘xkbi’ is NULL)...
xwayland-24.1.9/xkb/xkbInit.c:555:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:555:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:555:9: danger: ‘rmlvo_dflts.rules’ leaks here; was allocated at [(14)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/13)
#  553|       xkbi = calloc(1, sizeof(*xkbi));
#  554|       if (!xkbi) {
#  555|->         ErrorF("XKB: Failed to allocate XKB info\n");
#  556|           goto unwind_kbdfeed;
#  557|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def981]
xwayland-24.1.9/xkb/xkbInit.c:555:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.variant’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_true: following ‘true’ branch (when ‘xkbi’ is NULL)...
xwayland-24.1.9/xkb/xkbInit.c:555:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:555:9: throw: if ‘ErrorF’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:555:9: danger: ‘rmlvo_dflts.variant’ leaks here; was allocated at [(14)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/13)
#  553|       xkbi = calloc(1, sizeof(*xkbi));
#  554|       if (!xkbi) {
#  555|->         ErrorF("XKB: Failed to allocate XKB info\n");
#  556|           goto unwind_kbdfeed;
#  557|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def982]
xwayland-24.1.9/xkb/xkbInit.c:566:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_false: following ‘false’ branch (when ‘xkbi’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:558:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:560:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:9: branch_false: following ‘false’ branch (when ‘keymap’ is NULL)...
xwayland-24.1.9/xkb/xkbInit.c:560:27: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:27: branch_true: following ‘true’ branch (when ‘rmlvo’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:560:49: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:49: call_function: calling ‘XkbCompareUsedRMLVO’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:560:49: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbCompareUsedRMLVO’
xwayland-24.1.9/xkb/xkbInit.c:560:38: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:565:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:565:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:566:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:566:9: throw: if ‘LogMessageVerb’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:566:9: danger: ‘rmlvo_dflts.layout’ leaks here; was allocated at [(14)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/13)
#  564|   
#  565|       if (xkb_cached_map)
#  566|->         LogMessageVerb(X_INFO, 4, "XKB: Reusing cached keymap\n");
#  567|       else {
#  568|           if (rmlvo)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def983]
xwayland-24.1.9/xkb/xkbInit.c:566:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_false: following ‘false’ branch (when ‘xkbi’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:558:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:560:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:9: branch_false: following ‘false’ branch (when ‘keymap’ is NULL)...
xwayland-24.1.9/xkb/xkbInit.c:560:27: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:27: branch_true: following ‘true’ branch (when ‘rmlvo’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:560:49: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:49: call_function: calling ‘XkbCompareUsedRMLVO’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:560:49: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbCompareUsedRMLVO’
xwayland-24.1.9/xkb/xkbInit.c:560:38: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:565:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:565:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:566:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:566:9: throw: if ‘LogMessageVerb’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:566:9: danger: ‘rmlvo_dflts.model’ leaks here; was allocated at [(14)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/13)
#  564|   
#  565|       if (xkb_cached_map)
#  566|->         LogMessageVerb(X_INFO, 4, "XKB: Reusing cached keymap\n");
#  567|       else {
#  568|           if (rmlvo)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def984]
xwayland-24.1.9/xkb/xkbInit.c:566:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_false: following ‘false’ branch (when ‘xkbi’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:558:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:560:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:9: branch_false: following ‘false’ branch (when ‘keymap’ is NULL)...
xwayland-24.1.9/xkb/xkbInit.c:560:27: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:27: branch_true: following ‘true’ branch (when ‘rmlvo’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:560:49: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:49: call_function: calling ‘XkbCompareUsedRMLVO’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:560:49: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbCompareUsedRMLVO’
xwayland-24.1.9/xkb/xkbInit.c:560:38: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:565:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:565:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:566:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:566:9: throw: if ‘LogMessageVerb’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:566:9: danger: ‘rmlvo_dflts.rules’ leaks here; was allocated at [(14)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/13)
#  564|   
#  565|       if (xkb_cached_map)
#  566|->         LogMessageVerb(X_INFO, 4, "XKB: Reusing cached keymap\n");
#  567|       else {
#  568|           if (rmlvo)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def985]
xwayland-24.1.9/xkb/xkbInit.c:569:30: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_false: following ‘false’ branch (when ‘xkbi’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:558:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:565:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:565:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:568:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:568:12: branch_true: following ‘true’ branch (when ‘rmlvo’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:569:30: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:569:30: throw: if ‘XkbCompileKeymap’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:569:30: danger: ‘rmlvo_dflts.layout’ leaks here; was allocated at [(14)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/13)
#  567|       else {
#  568|           if (rmlvo)
#  569|->             xkb_cached_map = XkbCompileKeymap(dev, rmlvo);
#  570|           else
#  571|               xkb_cached_map = XkbCompileKeymapFromString(dev, keymap, keymap_length);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def986]
xwayland-24.1.9/xkb/xkbInit.c:569:30: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_false: following ‘false’ branch (when ‘xkbi’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:558:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:565:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:565:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:568:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:568:12: branch_true: following ‘true’ branch (when ‘rmlvo’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:569:30: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:569:30: throw: if ‘XkbCompileKeymap’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:569:30: danger: ‘rmlvo_dflts.model’ leaks here; was allocated at [(14)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/13)
#  567|       else {
#  568|           if (rmlvo)
#  569|->             xkb_cached_map = XkbCompileKeymap(dev, rmlvo);
#  570|           else
#  571|               xkb_cached_map = XkbCompileKeymapFromString(dev, keymap, keymap_length);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def987]
xwayland-24.1.9/xkb/xkbInit.c:569:30: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.options’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_false: following ‘false’ branch (when ‘xkbi’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:558:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:565:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:565:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:568:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:568:12: branch_true: following ‘true’ branch (when ‘rmlvo’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:569:30: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:569:30: throw: if ‘XkbCompileKeymap’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:569:30: danger: ‘rmlvo_dflts.options’ leaks here; was allocated at [(14)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/13)
#  567|       else {
#  568|           if (rmlvo)
#  569|->             xkb_cached_map = XkbCompileKeymap(dev, rmlvo);
#  570|           else
#  571|               xkb_cached_map = XkbCompileKeymapFromString(dev, keymap, keymap_length);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def988]
xwayland-24.1.9/xkb/xkbInit.c:569:30: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_false: following ‘false’ branch (when ‘xkbi’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:558:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:565:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:565:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:568:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:568:12: branch_true: following ‘true’ branch (when ‘rmlvo’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:569:30: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:569:30: throw: if ‘XkbCompileKeymap’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:569:30: danger: ‘rmlvo_dflts.rules’ leaks here; was allocated at [(14)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/13)
#  567|       else {
#  568|           if (rmlvo)
#  569|->             xkb_cached_map = XkbCompileKeymap(dev, rmlvo);
#  570|           else
#  571|               xkb_cached_map = XkbCompileKeymapFromString(dev, keymap, keymap_length);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def989]
xwayland-24.1.9/xkb/xkbInit.c:569:30: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.variant’
xwayland-24.1.9/xkb/xkbInit.c:514:1: enter_function: entry to ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:527:5: branch_false: following ‘false’ branch (when ‘dev’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:528:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:529:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:530:5: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:532:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:532:8: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkbInit.c:534:9: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:534:9: call_function: calling ‘XkbGetRulesDflts’ from ‘InitKeyboardDeviceStructInternal’
xwayland-24.1.9/xkb/xkbInit.c:534:9: return_function: returning to ‘InitKeyboardDeviceStructInternal’ from ‘XkbGetRulesDflts’
xwayland-24.1.9/xkb/xkbInit.c:541:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:545:26: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:548:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:553:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:554:8: branch_false: following ‘false’ branch (when ‘xkbi’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:558:5: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:560:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:565:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:565:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbInit.c:568:12: branch_false: ...to here
xwayland-24.1.9/xkb/xkbInit.c:568:12: branch_true: following ‘true’ branch (when ‘rmlvo’ is non-NULL)...
xwayland-24.1.9/xkb/xkbInit.c:569:30: branch_true: ...to here
xwayland-24.1.9/xkb/xkbInit.c:569:30: throw: if ‘XkbCompileKeymap’ throws an exception...
xwayland-24.1.9/xkb/xkbInit.c:569:30: danger: ‘rmlvo_dflts.variant’ leaks here; was allocated at [(14)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/13)
#  567|       else {
#  568|           if (rmlvo)
#  569|->             xkb_cached_map = XkbCompileKeymap(dev, rmlvo);
#  570|           else
#  571|               xkb_cached_map = XkbCompileKeymapFromString(dev, keymap, keymap_length);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def990]
xwayland-24.1.9/xkb/xkbInit.c:579:11: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  577|       }
#  578|   
#  579|->     xkb = XkbAllocKeyboard();
#  580|       if (!xkb) {
#  581|           ErrorF("XKB: Failed to allocate keyboard description\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def991]
xwayland-24.1.9/xkb/xkbInit.c:579:11: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  577|       }
#  578|   
#  579|->     xkb = XkbAllocKeyboard();
#  580|       if (!xkb) {
#  581|           ErrorF("XKB: Failed to allocate keyboard description\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def992]
xwayland-24.1.9/xkb/xkbInit.c:579:11: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  577|       }
#  578|   
#  579|->     xkb = XkbAllocKeyboard();
#  580|       if (!xkb) {
#  581|           ErrorF("XKB: Failed to allocate keyboard description\n");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def993]
xwayland-24.1.9/xkb/xkbInit.c:581:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  579|       xkb = XkbAllocKeyboard();
#  580|       if (!xkb) {
#  581|->         ErrorF("XKB: Failed to allocate keyboard description\n");
#  582|           goto unwind_info;
#  583|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def994]
xwayland-24.1.9/xkb/xkbInit.c:581:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  579|       xkb = XkbAllocKeyboard();
#  580|       if (!xkb) {
#  581|->         ErrorF("XKB: Failed to allocate keyboard description\n");
#  582|           goto unwind_info;
#  583|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def995]
xwayland-24.1.9/xkb/xkbInit.c:581:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  579|       xkb = XkbAllocKeyboard();
#  580|       if (!xkb) {
#  581|->         ErrorF("XKB: Failed to allocate keyboard description\n");
#  582|           goto unwind_info;
#  583|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def996]
xwayland-24.1.9/xkb/xkbInit.c:585:10: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  583|       }
#  584|   
#  585|->     if (!XkbCopyKeymap(xkb, xkb_cached_map)) {
#  586|           ErrorF("XKB: Failed to copy keymap\n");
#  587|           goto unwind_desc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def997]
xwayland-24.1.9/xkb/xkbInit.c:585:10: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  583|       }
#  584|   
#  585|->     if (!XkbCopyKeymap(xkb, xkb_cached_map)) {
#  586|           ErrorF("XKB: Failed to copy keymap\n");
#  587|           goto unwind_desc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def998]
xwayland-24.1.9/xkb/xkbInit.c:585:10: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  583|       }
#  584|   
#  585|->     if (!XkbCopyKeymap(xkb, xkb_cached_map)) {
#  586|           ErrorF("XKB: Failed to copy keymap\n");
#  587|           goto unwind_desc;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def999]
xwayland-24.1.9/xkb/xkbInit.c:586:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  584|   
#  585|       if (!XkbCopyKeymap(xkb, xkb_cached_map)) {
#  586|->         ErrorF("XKB: Failed to copy keymap\n");
#  587|           goto unwind_desc;
#  588|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1000]
xwayland-24.1.9/xkb/xkbInit.c:586:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  584|   
#  585|       if (!XkbCopyKeymap(xkb, xkb_cached_map)) {
#  586|->         ErrorF("XKB: Failed to copy keymap\n");
#  587|           goto unwind_desc;
#  588|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1001]
xwayland-24.1.9/xkb/xkbInit.c:586:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.9/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.9/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
#  584|   
#  585|       if (!XkbCopyKeymap(xkb, xkb_cached_map)) {
#  586|->         ErrorF("XKB: Failed to copy keymap\n");
#  587|           goto unwind_desc;
#  588|       }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1002]
xwayland-24.1.9/xkb/xkbInit.c:652:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.9/xkb/xkbInit.c:666:1: enter_function: entry to ‘InitKeyboardDeviceStruct’
xwayland-24.1.9/xkb/xkbInit.c:669:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStruct’
#  650|   
#  651|    unwind_desc:
#  652|->     XkbFreeKeyboard(xkb, 0, TRUE);
#  653|    unwind_info:
#  654|       free(xkbi);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1003]
xwayland-24.1.9/xkb/xkbInit.c:652:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.9/xkb/xkbInit.c:666:1: enter_function: entry to ‘InitKeyboardDeviceStruct’
xwayland-24.1.9/xkb/xkbInit.c:669:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStruct’
#  650|   
#  651|    unwind_desc:
#  652|->     XkbFreeKeyboard(xkb, 0, TRUE);
#  653|    unwind_info:
#  654|       free(xkbi);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1004]
xwayland-24.1.9/xkb/xkbInit.c:652:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.9/xkb/xkbInit.c:666:1: enter_function: entry to ‘InitKeyboardDeviceStruct’
xwayland-24.1.9/xkb/xkbInit.c:669:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStruct’
#  650|   
#  651|    unwind_desc:
#  652|->     XkbFreeKeyboard(xkb, 0, TRUE);
#  653|    unwind_info:
#  654|       free(xkbi);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1005]
xwayland-24.1.9/xkb/xkbUtils.c:954:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
xwayland-24.1.9/xkb/xkbUtils.c:2025:1: enter_function: entry to ‘XkbDeviceApplyKeymap’
xwayland-24.1.9/xkb/xkbUtils.c:2030:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbUtils.c:2046:11: call_function: calling ‘XkbCopyKeymap’ from ‘XkbDeviceApplyKeymap’
#  952|   
#  953|               }
#  954|->             memcpy(dst->map->syms, src->map->syms,
#  955|                      src->map->size_syms * sizeof(KeySym));
#  956|           }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1006]
xwayland-24.1.9/xkb/xkbUtils.c:1212:13: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
xwayland-24.1.9/xkb/xkbUtils.c:2025:1: enter_function: entry to ‘XkbDeviceApplyKeymap’
xwayland-24.1.9/xkb/xkbUtils.c:2030:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbUtils.c:2046:11: call_function: calling ‘XkbCopyKeymap’ from ‘XkbDeviceApplyKeymap’
# 1210|                   dst->server->acts = tmp;
# 1211|               }
# 1212|->             memcpy(dst->server->acts, src->server->acts,
# 1213|                      src->server->size_acts * sizeof(XkbAction));
# 1214|           }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1007]
xwayland-24.1.9/xkb/xkbUtils.c:1603:26: warning[-Wanalyzer-malloc-leak]: leak of ‘doutline’
xwayland-24.1.9/xkb/xkbUtils.c:1978:1: enter_function: entry to ‘XkbCopyKeymap’
xwayland-24.1.9/xkb/xkbUtils.c:1997:10: call_function: calling ‘_XkbCopyIndicators’ from ‘XkbCopyKeymap’
xwayland-24.1.9/xkb/xkbUtils.c:1997:10: return_function: returning to ‘XkbCopyKeymap’ from ‘_XkbCopyIndicators’
xwayland-24.1.9/xkb/xkbUtils.c:1997:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbUtils.c:2001:10: branch_false: ...to here
xwayland-24.1.9/xkb/xkbUtils.c:2001:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbUtils.c:2005:10: branch_false: ...to here
xwayland-24.1.9/xkb/xkbUtils.c:2005:10: call_function: calling ‘_XkbCopyNames’ from ‘XkbCopyKeymap’
xwayland-24.1.9/xkb/xkbUtils.c:2005:10: return_function: returning to ‘XkbCopyKeymap’ from ‘_XkbCopyNames’
xwayland-24.1.9/xkb/xkbUtils.c:2005:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbUtils.c:2009:10: branch_false: ...to here
xwayland-24.1.9/xkb/xkbUtils.c:2009:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkbUtils.c:2013:10: branch_false: ...to here
xwayland-24.1.9/xkb/xkbUtils.c:2013:10: call_function: calling ‘_XkbCopyGeom’ from ‘XkbCopyKeymap’
# 1601|   
# 1602|                       for (j = 0,
# 1603|->                          soutline = sshape->outlines,
# 1604|                            doutline = dshape->outlines;
# 1605|                            j < sshape->num_outlines;

Error: GCC_ANALYZER_WARNING (CWE-823): [#def1008]
xwayland-24.1.9/xkb/xkmread.c:152:9: warning[-Wanalyzer-tainted-offset]: use of attacker-controlled value as offset without upper-bounds checking
xwayland-24.1.9/xkb/xkmread.c:1209:1: enter_function: entry to ‘XkmReadFile’
xwayland-24.1.9/xkb/xkmread.c:1217:10: call_function: calling ‘XkmReadTOC’ from ‘XkmReadFile’
xwayland-24.1.9/xkb/xkmread.c:1217:10: return_function: returning to ‘XkmReadFile’ from ‘XkmReadTOC’
xwayland-24.1.9/xkb/xkmread.c:1217:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkmread.c:1219:10: branch_false: ...to here
xwayland-24.1.9/xkb/xkmread.c:1219:8: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkmread.c:1224:9: branch_false: ...to here
xwayland-24.1.9/xkb/xkmread.c:1226:17: branch_true: following ‘true’ branch...
xwayland-24.1.9/xkb/xkmread.c:1227:21: branch_true: ...to here
xwayland-24.1.9/xkb/xkmread.c:1230:12: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkmread.c:1230:13: branch_false: following ‘false’ branch...
xwayland-24.1.9/xkb/xkmread.c:1234:28: branch_false: ...to here
xwayland-24.1.9/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)

Scan Properties

analyzer-version-clippy1.92.0
analyzer-version-cppcheck2.19.1
analyzer-version-gcc16.0.0
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-24.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namexorg-x11-server-Xwayland-24.1.9-1.fc44
store-results-to/tmp/tmpxda52bcr/xorg-x11-server-Xwayland-24.1.9-1.fc44.tar.xz
time-created2026-01-08 22:15:27
time-finished2026-01-08 22:18:45
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'gcc,cppcheck,clippy,shellcheck,unicontrol' '-o' '/tmp/tmpxda52bcr/xorg-x11-server-Xwayland-24.1.9-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpxda52bcr/xorg-x11-server-Xwayland-24.1.9-1.fc44.src.rpm'
tool-versioncsmock-3.8.3.20251215.161544.g62de9a5-1.el9