Task #152243 - fixed.err
back to task #152243download
Error: GCC_ANALYZER_WARNING (CWE-688):
xwayland-24.1.13/Xext/panoramiXprocs.c:1399:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origPts’ where non-null expected
xwayland-24.1.13/Xext/panoramiXprocs.c:1380:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1382:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1384:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1387:9: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1392:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1395:19: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1397:8: branch_true: following ‘true’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1398:19: branch_true: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1398:19: acquire_memory: this call could return NULL
xwayland-24.1.13/Xext/panoramiXprocs.c:1399:9: danger: argument 1 (‘origPts’) from [(9)](sarif:/runs/0/results/0/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-688):
xwayland-24.1.13/Xext/panoramiXprocs.c:1464:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origPts’ where non-null expected
xwayland-24.1.13/Xext/panoramiXprocs.c:1445:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1447:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1449:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1452:9: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1457:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1460:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1462:8: branch_true: following ‘true’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1463:19: branch_true: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1463:19: acquire_memory: this call could return NULL
xwayland-24.1.13/Xext/panoramiXprocs.c:1464:9: danger: argument 1 (‘origPts’) from [(9)](sarif:/runs/0/results/1/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-688):
xwayland-24.1.13/Xext/panoramiXprocs.c:1533:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origSegs’ where non-null expected
xwayland-24.1.13/Xext/panoramiXprocs.c:1510:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1512:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1514:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1517:9: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1522:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1525:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1528:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1530:5: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1531:8: branch_true: following ‘true’ branch (when ‘nsegs > 0’)...
xwayland-24.1.13/Xext/panoramiXprocs.c:1532:20: branch_true: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1532:20: acquire_memory: this call could return NULL
xwayland-24.1.13/Xext/panoramiXprocs.c:1533:9: danger: argument 1 (‘origSegs’) from [(11)](sarif:/runs/0/results/2/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-688):
xwayland-24.1.13/Xext/panoramiXprocs.c:1601:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origRecs’ where non-null expected
xwayland-24.1.13/Xext/panoramiXprocs.c:1578:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1580:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1582:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1585:9: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1590:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1593:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1596:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1598:5: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1599:8: branch_true: following ‘true’ branch (when ‘nrects > 0’)...
xwayland-24.1.13/Xext/panoramiXprocs.c:1600:20: branch_true: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1600:20: acquire_memory: this call could return NULL
xwayland-24.1.13/Xext/panoramiXprocs.c:1601:9: danger: argument 1 (‘origRecs’) from [(11)](sarif:/runs/0/results/3/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-688):
xwayland-24.1.13/Xext/panoramiXprocs.c:1668:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origArcs’ where non-null expected
xwayland-24.1.13/Xext/panoramiXprocs.c:1645:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1647:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1649:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1652:9: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1657:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1660:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1663:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1665:11: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1666:8: branch_true: following ‘true’ branch (when ‘narcs != 0’)...
xwayland-24.1.13/Xext/panoramiXprocs.c:1667:20: branch_true: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1667:20: acquire_memory: this call could return NULL
xwayland-24.1.13/Xext/panoramiXprocs.c:1668:9: danger: argument 1 (‘origArcs’) from [(11)](sarif:/runs/0/results/4/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-688):
xwayland-24.1.13/Xext/panoramiXprocs.c:1730:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘locPts’ where non-null expected
xwayland-24.1.13/Xext/panoramiXprocs.c:1710:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1712:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1714:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1717:9: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1722:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1725:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1728:8: branch_true: following ‘true’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1729:18: branch_true: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1729:18: acquire_memory: this call could return NULL
xwayland-24.1.13/Xext/panoramiXprocs.c:1730:9: danger: argument 1 (‘locPts’) from [(9)](sarif:/runs/0/results/5/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-688):
xwayland-24.1.13/Xext/panoramiXprocs.c:1799:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origRects’ where non-null expected
xwayland-24.1.13/Xext/panoramiXprocs.c:1776:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1778:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1780:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1783:9: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1788:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1791:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1794:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1796:5: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1797:8: branch_true: following ‘true’ branch (when ‘things > 0’)...
xwayland-24.1.13/Xext/panoramiXprocs.c:1798:21: branch_true: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1798:21: acquire_memory: this call could return NULL
xwayland-24.1.13/Xext/panoramiXprocs.c:1799:9: danger: argument 1 (‘origRects’) from [(11)](sarif:/runs/0/results/6/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-688):
xwayland-24.1.13/Xext/panoramiXprocs.c:1866:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘origArcs’ where non-null expected
xwayland-24.1.13/Xext/panoramiXprocs.c:1843:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1845:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1847:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1850:9: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1855:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1858:14: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1861:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/Xext/panoramiXprocs.c:1863:11: branch_false: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1864:8: branch_true: following ‘true’ branch (when ‘narcs != 0’)...
xwayland-24.1.13/Xext/panoramiXprocs.c:1865:20: branch_true: ...to here
xwayland-24.1.13/Xext/panoramiXprocs.c:1865:20: acquire_memory: this call could return NULL
xwayland-24.1.13/Xext/panoramiXprocs.c:1866:9: danger: argument 1 (‘origArcs’) from [(11)](sarif:/runs/0/results/7/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-126):
xwayland-24.1.13/dri3/dri3_screen.c:143:13: warning[-Wanalyzer-out-of-bounds]: stack-based buffer over-read
xwayland-24.1.13/dri3/dri3_screen.c:112:1: enter_function: entry to ‘dri3_fd_from_pixmap’
xwayland-24.1.13/dri3/dri3_screen.c:115:38: call_function: inlined call to ‘dri3_screen_priv’ from ‘dri3_fd_from_pixmap’
xwayland-24.1.13/dri3/dri3_screen.c:115:38: call_function: inlined call to ‘dri3_screen_priv’ from ‘dri3_fd_from_pixmap’
xwayland-24.1.13/dri3/dri3_screen.c:123:8: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
xwayland-24.1.13/dri3/dri3_screen.c:129:9: branch_false: ...to here
xwayland-24.1.13/dri3/dri3_screen.c:129:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/dri3/dri3_screen.c:132:9: branch_false: ...to here
xwayland-24.1.13/dri3/dri3_screen.c:132:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.13/dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.13/dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.13/dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.13/dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.13/dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.13/dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.13/dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.13/dri3/dri3_screen.c:142:21: branch_true: following ‘true’ branch...
xwayland-24.1.13/dri3/dri3_screen.c:143:13: branch_true: ...to here
xwayland-24.1.13/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-476):
xwayland-24.1.13/glamor/glamor.c:1031:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘modifier’
xwayland-24.1.13/glamor/glamor.c:1066:1: enter_function: entry to ‘glamor_fd_from_pixmap’
xwayland-24.1.13/glamor/glamor.c:1073:11: call_function: calling ‘_glamor_fds_from_pixmap’ from ‘glamor_fd_from_pixmap’
# 1029| if (!glamor_priv->dri3_enabled)
# 1030| return 0;
# 1031|-> switch (pixmap_priv->type) {
# 1032| case GLAMOR_TEXTURE_DRM:
# 1033| case GLAMOR_TEXTURE_ONLY:
Error: GCC_ANALYZER_WARNING (CWE-476):
xwayland-24.1.13/glx/glxcmds.c:126:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pVisual’
# 124|
# 125| /* FIXME: What exactly should we check here... */
# 126|-> if (pVisual->class != glxConvertToXVisualType(config->visualType) ||
# 127| !(config->drawableType & GLX_WINDOW_BIT)) {
# 128| client->errorValue = pDraw->id;
Error: GCC_ANALYZER_WARNING (CWE-476):
xwayland-24.1.13/glx/glxdricommon.c:142:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘config’
xwayland-24.1.13/glx/glxdricommon.c:238:1: enter_function: entry to ‘glxConvertConfigs’
xwayland-24.1.13/glx/glxdricommon.c:247:17: branch_true: following ‘true’ branch...
xwayland-24.1.13/glx/glxdricommon.c:248:22: branch_true: ...to here
xwayland-24.1.13/glx/glxdricommon.c:248:22: call_function: calling ‘createModeFromConfig’ from ‘glxConvertConfigs’
# 140| config = calloc(1, sizeof *config);
# 141|
# 142|-> config->driConfig = driConfig;
# 143|
# 144| i = 0;
Error: GCC_ANALYZER_WARNING (CWE-476):
xwayland-24.1.13/hw/vfb/InitOutput.c:416:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ppix’
xwayland-24.1.13/hw/vfb/InitOutput.c:411:16: acquire_memory: this call could return NULL
xwayland-24.1.13/hw/vfb/InitOutput.c:415:21: branch_true: following ‘true’ branch (when ‘entries > i’)...
xwayland-24.1.13/hw/vfb/InitOutput.c:416:17: branch_true: ...to here
xwayland-24.1.13/hw/vfb/InitOutput.c:416:13: danger: ‘ppix + (long unsigned int)i * 4’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 414|
# 415| for (i = 0; i < entries; i++)
# 416|-> ppix[i] = i;
# 417| /* XXX truecolor */
# 418| QueryColors(pmap, entries, ppix, prgb, serverClient);
Error: GCC_ANALYZER_WARNING (CWE-476):
xwayland-24.1.13/hw/vfb/InitOutput.c:421:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘defs’
xwayland-24.1.13/hw/vfb/InitOutput.c:413:16: acquire_memory: this call could return NULL
xwayland-24.1.13/hw/vfb/InitOutput.c:420:21: branch_true: following ‘true’ branch (when ‘entries > i’)...
xwayland-24.1.13/hw/vfb/InitOutput.c:421:33: branch_true: ...to here
xwayland-24.1.13/hw/vfb/InitOutput.c:421:13: danger: ‘defs + (long unsigned int)i * 12’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/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-476):
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:172:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘lease_private’
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:134:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:134:8: branch_false: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:141:12: branch_false: following ‘false’ branch...
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:146:5: branch_true: following ‘true’ branch...
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:146:5: branch_true: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:155:12: branch_true: following ‘true’ branch (when ‘connectors_of_device != 0’)...
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:156:16: branch_true: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:156:16: branch_false: following ‘false’ branch (when ‘lease_device’ is NULL)...
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:146:5: branch_false: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:166:21: acquire_memory: this call could return NULL
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:167:17: branch_false: following ‘false’ branch...
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:172:5: branch_false: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:172:5: danger: ‘lease_private’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
# 170| wp_drm_lease_request_v1_request_connector(req, output->lease_connector);
# 171| }
# 172|-> lease_private->fd = -1;
# 173| lease_private->lease = wp_drm_lease_request_v1_submit(req);
# 174| lease_private->rrLease = rrLease;
Error: GCC_ANALYZER_WARNING (CWE-476):
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:458:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘device_data’
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:456:48: acquire_memory: this call could return NULL
xwayland-24.1.13/hw/xwayland/xwayland-drm-lease.c:458:5: danger: ‘device_data’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/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-476):
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:311:24: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘xwl_seat’
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:292:1: enter_function: entry to ‘xwl_cursor_warped_to’
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:299:37: call_function: inlined call to ‘xwl_screen_get’ from ‘xwl_cursor_warped_to’
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:299:37: call_function: inlined call to ‘xwl_screen_get’ from ‘xwl_cursor_warped_to’
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:304:8: branch_true: following ‘true’ branch (when ‘xwl_seat’ is NULL)...
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:305:20: call_function: inlined call to ‘xwl_screen_get_default_seat’ from ‘xwl_cursor_warped_to’
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:307:8: branch_true: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:311:8: branch_true: following ‘true’ branch...
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:311:24: branch_true: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:311:24: danger: dereference of NULL ‘xwl_seat’
# 309|
# 310| xwl_window = xwl_window_from_window(window);
# 311|-> if (!xwl_window && xwl_seat->focus_window) {
# 312| focus = xwl_seat->focus_window->toplevel;
# 313|
Error: GCC_ANALYZER_WARNING (CWE-476):
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:524:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘queued’
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:500:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:503:32: branch_false: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:503:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:510:32: branch_false: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:514:13: branch_false: following ‘false’ branch (when the strings are non-equal)...
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:521:32: branch_false: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:521:13: branch_true: following ‘true’ branch (when the strings are equal)...
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:522:13: branch_true: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:522:12: branch_true: following ‘true’ branch...
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:523:58: branch_true: ...to here
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:523:58: acquire_memory: this call could return NULL
xwayland-24.1.13/hw/xwayland/xwayland-screen.c:524:13: danger: ‘queued’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
# 522| if (xwl_screen->screen->root == NULL) {
# 523| struct xwl_queued_drm_lease_device *queued = malloc(sizeof(struct xwl_queued_drm_lease_device));
# 524|-> queued->id = id;
# 525| xorg_list_append(&queued->link, &xwl_screen->queued_drm_lease_devices);
# 526| } else {
Error: GCC_ANALYZER_WARNING (CWE-401):
xwayland-24.1.13/include/privates.h:165:16: warning[-Wanalyzer-malloc-leak]: leak of ‘newPix’
xwayland-24.1.13/composite/compext.c:701:1: enter_function: entry to ‘PanoramiXCompositeNameWindowPixmap’
xwayland-24.1.13/composite/compext.c:712:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/composite/compext.c:714:15: branch_false: ...to here
xwayland-24.1.13/composite/compext.c:714:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/composite/compext.c:720:5: branch_false: ...to here
xwayland-24.1.13/composite/compext.c:720:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/composite/compext.c:722:20: branch_false: ...to here
xwayland-24.1.13/composite/compext.c:722:20: acquire_memory: allocated here
xwayland-24.1.13/composite/compext.c:722:8: branch_false: following ‘false’ branch (when ‘newPix’ is non-NULL)...
xwayland-24.1.13/composite/compext.c:725:5: branch_false: ...to here
xwayland-24.1.13/composite/compext.c:729:5: branch_true: following ‘true’ branch...
xwayland-24.1.13/composite/compext.c:730:58: branch_true: ...to here
xwayland-24.1.13/composite/compext.c:732:12: branch_false: following ‘false’ branch...
xwayland-24.1.13/composite/compext.c:738:18: branch_false: ...to here
xwayland-24.1.13/composite/compext.c:738:12: branch_false: following ‘false’ branch...
xwayland-24.1.13/composite/compext.c:743:14: branch_false: ...to here
xwayland-24.1.13/composite/compext.c:743:14: call_function: calling ‘dixLookupPrivate’ from ‘PanoramiXCompositeNameWindowPixmap’
xwayland-24.1.13/composite/compext.c:743:14: return_function: returning to ‘PanoramiXCompositeNameWindowPixmap’ from ‘dixLookupPrivate’
xwayland-24.1.13/composite/compext.c:744:12: branch_false: following ‘false’ branch...
xwayland-24.1.13/composite/compext.c:749:21: branch_false: ...to here
xwayland-24.1.13/composite/compext.c:750:12: branch_false: following ‘false’ branch...
xwayland-24.1.13/composite/compext.c:755:14: branch_false: ...to here
xwayland-24.1.13/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-476):
xwayland-24.1.13/os/ospoll.c:229:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘ospoll’
xwayland-24.1.13/os/ospoll.c:227:35: acquire_memory: this call could return NULL
xwayland-24.1.13/os/ospoll.c:229:5: danger: ‘ospoll’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 227| struct ospoll *ospoll = calloc(1, sizeof (struct ospoll));
# 228|
# 229|-> ospoll->epoll_fd = epoll_create1(EPOLL_CLOEXEC);
# 230| if (ospoll->epoll_fd < 0) {
# 231| free (ospoll);
Error: COMPILER_WARNING:
xwayland-24.1.13/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):
xwayland-24.1.13/os/string.c:55:17: warning[-Wanalyzer-mismatching-deallocation]: ‘list’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’
xwayland-24.1.13/os/string.c:46:8: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
xwayland-24.1.13/os/string.c:48:12: branch_false: ...to here
xwayland-24.1.13/os/string.c:48:12: acquire_memory: allocated here (expects deallocation with ‘free’)
xwayland-24.1.13/os/string.c:49:8: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
xwayland-24.1.13/os/string.c:51:11: branch_false: ...to here
xwayland-24.1.13/os/string.c:52:8: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
xwayland-24.1.13/os/string.c:54:16: branch_false: ...to here
xwayland-24.1.13/os/string.c:54:41: branch_true: following ‘true’ branch (when ‘tok’ is non-NULL)...
xwayland-24.1.13/os/string.c:55:36: branch_true: ...to here
xwayland-24.1.13/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):
xwayland-24.1.13/os/utils.c:1108:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘result’
xwayland-24.1.13/os/utils.c:1072:8: branch_true: following ‘true’ branch...
xwayland-24.1.13/os/utils.c:1077:33: branch_true: ...to here
xwayland-24.1.13/os/utils.c:1105:18: acquire_memory: this call could return NULL
xwayland-24.1.13/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-476):
xwayland-24.1.13/os/xdmcp.c:1514:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘mcastinfo’
xwayland-24.1.13/os/xdmcp.c:1487:8: branch_true: following ‘true’ branch...
xwayland-24.1.13/os/xdmcp.c:1488:9: branch_true: ...to here
xwayland-24.1.13/os/xdmcp.c:1496:8: branch_true: following ‘true’ branch...
xwayland-24.1.13/os/xdmcp.c:1497:14: branch_true: ...to here
xwayland-24.1.13/os/xdmcp.c:1497:28: branch_true: following ‘true’ branch (when ‘ai’ is non-NULL)...
xwayland-24.1.13/os/xdmcp.c:1498:19: branch_true: ...to here
xwayland-24.1.13/os/xdmcp.c:1506:12: branch_false: following ‘false’ branch (when ‘ai’ is non-NULL)...
xwayland-24.1.13/os/xdmcp.c:1513:25: branch_false: ...to here
xwayland-24.1.13/os/xdmcp.c:1513:25: acquire_memory: this call could return NULL
xwayland-24.1.13/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-476):
xwayland-24.1.13/randr/rrcrtc.c:750:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘outputs’
xwayland-24.1.13/randr/rrcrtc.c:1291:1: enter_function: entry to ‘ProcRRSetCrtcConfig’
xwayland-24.1.13/randr/rrcrtc.c:1307:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/randr/rrcrtc.c:1308:19: branch_false: ...to here
xwayland-24.1.13/randr/rrcrtc.c:1310:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/randr/rrcrtc.c:1312:9: branch_false: ...to here
xwayland-24.1.13/randr/rrcrtc.c:1312:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/randr/rrcrtc.c:1315:9: branch_false: ...to here
xwayland-24.1.13/randr/rrcrtc.c:1315:8: branch_true: following ‘true’ branch...
xwayland-24.1.13/randr/rrcrtc.c:1316:9: branch_true: ...to here
xwayland-24.1.13/randr/rrcrtc.c:1316:9: release_memory: ‘mode’ is NULL
xwayland-24.1.13/randr/rrcrtc.c:1317:12: branch_false: following ‘false’ branch (when ‘numOutputs == 0’)...
xwayland-24.1.13/randr/rrcrtc.c:1334:5: branch_false: ...to here
xwayland-24.1.13/randr/rrcrtc.c:1334:17: branch_false: following ‘false’ branch...
xwayland-24.1.13/randr/rrcrtc.c:1334:17: branch_false: ...to here
xwayland-24.1.13/randr/rrcrtc.c:1369:17: branch_false: following ‘false’ branch...
xwayland-24.1.13/randr/rrcrtc.c:1386:19: branch_false: ...to here
xwayland-24.1.13/randr/rrcrtc.c:1387:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRSetCrtcConfig’
xwayland-24.1.13/randr/rrcrtc.c:1387:16: return_function: returning to ‘ProcRRSetCrtcConfig’ from ‘dixLookupPrivate’
xwayland-24.1.13/randr/rrcrtc.c:1391:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/randr/rrcrtc.c:1400:5: branch_false: ...to here
xwayland-24.1.13/randr/rrcrtc.c:1418:9: release_memory: ‘mode’ is NULL
xwayland-24.1.13/randr/rrcrtc.c:1418:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/randr/rrcrtc.c:1475:42: branch_false: ...to here
xwayland-24.1.13/randr/rrcrtc.c:1475:10: release_memory: ‘mode’ is NULL
xwayland-24.1.13/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-476):
xwayland-24.1.13/randr/rroutput.c:551:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘extra’
xwayland-24.1.13/randr/rroutput.c:461:1: enter_function: entry to ‘ProcRRGetOutputInfo’
xwayland-24.1.13/randr/rroutput.c:477:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/randr/rroutput.c:478:5: branch_false: ...to here
xwayland-24.1.13/randr/rroutput.c:478:5: branch_false: following ‘false’ branch...
xwayland-24.1.13/randr/rroutput.c:480:14: branch_false: ...to here
xwayland-24.1.13/randr/rroutput.c:483:16: call_function: calling ‘dixLookupPrivate’ from ‘ProcRRGetOutputInfo’
xwayland-24.1.13/randr/rroutput.c:483:16: return_function: returning to ‘ProcRRGetOutputInfo’ from ‘dixLookupPrivate’
xwayland-24.1.13/randr/rroutput.c:485:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/randr/rroutput.c:518:31: branch_false: ...to here
xwayland-24.1.13/randr/rroutput.c:536:12: branch_false: following ‘false’ branch (when ‘extraLen == 0’)...
xwayland-24.1.13/randr/rroutput.c:546:37: branch_false: ...to here
xwayland-24.1.13/randr/rroutput.c:550:21: branch_true: following ‘true’ branch...
xwayland-24.1.13/randr/rroutput.c:551:24: branch_true: ...to here
xwayland-24.1.13/randr/rroutput.c:551:13: danger: dereference of NULL ‘extra + (long unsigned int)i * 4’
# 549|
# 550| for (i = 0; i < output->numCrtcs; i++) {
# 551|-> crtcs[i] = output->crtcs[i]->id;
# 552| if (client->swapped)
# 553| swapl(&crtcs[i]);
Error: GCC_ANALYZER_WARNING (CWE-476):
xwayland-24.1.13/render/glyph.c:388:26: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘hashSet’
xwayland-24.1.13/render/glyph.c:397:1: enter_function: entry to ‘ResizeGlyphHash’
xwayland-24.1.13/render/glyph.c:409:15: call_function: inlined call to ‘FindGlyphHashSet’ from ‘ResizeGlyphHash’
xwayland-24.1.13/render/glyph.c:410:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/render/glyph.c:414:10: branch_false: ...to here
xwayland-24.1.13/render/glyph.c:414:10: call_function: calling ‘AllocateGlyphHash’ from ‘ResizeGlyphHash’
# 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):
xwayland-24.1.13/test/damage/primitives.c:68:43: warning[-Wanalyzer-malloc-leak]: leak of ‘get_image(setup, *setup.d)’
xwayland-24.1.13/test/damage/primitives.c:334:5: enter_function: entry to ‘main’
xwayland-24.1.13/test/damage/primitives.c:341:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/test/damage/primitives.c:346:23: branch_false: ...to here
xwayland-24.1.13/test/damage/primitives.c:359:5: call_function: calling ‘create_start_pixmap’ from ‘main’
xwayland-24.1.13/test/damage/primitives.c:359:5: return_function: returning to ‘main’ from ‘create_start_pixmap’
xwayland-24.1.13/test/damage/primitives.c:364:5: call_function: calling ‘damage_test’ from ‘main’
# 66| xcb_get_image_cookie_t cookie =
# 67| xcb_get_image(setup->c, XCB_IMAGE_FORMAT_Z_PIXMAP, drawable,
# 68|-> 0, 0, setup->width, setup->height, ~0);
# 69| xcb_get_image_reply_t *reply =
# 70| xcb_get_image_reply(setup->c, cookie, NULL);
Error: CPPCHECK_WARNING (CWE-476):
xwayland-24.1.13/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):
xwayland-24.1.13/test/damage/primitives.c:80:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘result’ where non-null expected
xwayland-24.1.13/test/damage/primitives.c:334:5: enter_function: entry to ‘main’
xwayland-24.1.13/test/damage/primitives.c:341:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/test/damage/primitives.c:346:23: branch_false: ...to here
xwayland-24.1.13/test/damage/primitives.c:359:5: call_function: calling ‘create_start_pixmap’ from ‘main’
# 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-401):
xwayland-24.1.13/xkb/XKBGAlloc.c:557:13: warning[-Wanalyzer-malloc-leak]: leak of ‘*((struct _XkbProperty *)prop).value’
xwayland-24.1.13/xkb/XKBGAlloc.c:552:8: branch_false: following ‘false’ branch...
xwayland-24.1.13/xkb/XKBGAlloc.c:554:42: branch_true: following ‘true’ branch...
xwayland-24.1.13/xkb/XKBGAlloc.c:555:13: branch_true: ...to here
xwayland-24.1.13/xkb/XKBGAlloc.c:555:12: branch_true: following ‘true’ branch...
xwayland-24.1.13/xkb/XKBGAlloc.c:555:30: branch_true: ...to here
xwayland-24.1.13/xkb/XKBGAlloc.c:557:27: acquire_memory: allocated here
xwayland-24.1.13/xkb/XKBGAlloc.c:557:13: danger: ‘*((struct _XkbProperty *)prop).value’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
# 555| if ((prop->name) && (strcmp(name, prop->name) == 0)) {
# 556| free(prop->value);
# 557|-> prop->value = strdup(value);
# 558| return prop;
# 559| }
Error: GCC_ANALYZER_WARNING (CWE-476):
xwayland-24.1.13/xkb/xkbActions.c:1146:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘*((struct _XkbSrvInfo *)xkbi).filters’
xwayland-24.1.13/xkb/xkbActions.c:1248:1: enter_function: entry to ‘XkbActionGetFilter’
xwayland-24.1.13/xkb/xkbActions.c:1283:18: call_function: calling ‘_XkbNextFreeFilter’ from ‘XkbActionGetFilter’
# 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-762):
xwayland-24.1.13/xkb/xkbActions.c:1152:21: warning[-Wanalyzer-mismatching-deallocation]: ‘*((struct _XkbSrvInfo *)xkbi).filters’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’
xwayland-24.1.13/xkb/xkbActions.c:1248:1: enter_function: entry to ‘XkbActionGetFilter’
xwayland-24.1.13/xkb/xkbActions.c:1283:18: call_function: calling ‘_XkbNextFreeFilter’ from ‘XkbActionGetFilter’
# 1150| }
# 1151| xkbi->szFilters *= 2;
# 1152|-> xkbi->filters = reallocarray(xkbi->filters,
# 1153| xkbi->szFilters, sizeof(XkbFilterRec));
# 1154| /* 6/21/93 (ef) -- XXX! deal with allocation failure */
Error: GCC_ANALYZER_WARNING (CWE-401):
xwayland-24.1.13/xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.layout’
xwayland-24.1.13/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.13/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
# 525| XkbRMLVOSet rmlvo_dflts = { NULL };
# 526|
# 527|-> BUG_RETURN_VAL(dev == NULL, FALSE);
# 528| BUG_RETURN_VAL(dev->key != NULL, FALSE);
# 529| BUG_RETURN_VAL(dev->kbdfeed != NULL, FALSE);
Error: GCC_ANALYZER_WARNING (CWE-401):
xwayland-24.1.13/xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.model’
xwayland-24.1.13/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.13/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
# 525| XkbRMLVOSet rmlvo_dflts = { NULL };
# 526|
# 527|-> BUG_RETURN_VAL(dev == NULL, FALSE);
# 528| BUG_RETURN_VAL(dev->key != NULL, FALSE);
# 529| BUG_RETURN_VAL(dev->kbdfeed != NULL, FALSE);
Error: GCC_ANALYZER_WARNING (CWE-401):
xwayland-24.1.13/xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.options’
xwayland-24.1.13/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.13/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
# 525| XkbRMLVOSet rmlvo_dflts = { NULL };
# 526|
# 527|-> BUG_RETURN_VAL(dev == NULL, FALSE);
# 528| BUG_RETURN_VAL(dev->key != NULL, FALSE);
# 529| BUG_RETURN_VAL(dev->kbdfeed != NULL, FALSE);
Error: GCC_ANALYZER_WARNING (CWE-401):
xwayland-24.1.13/xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.rules’
xwayland-24.1.13/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.13/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
# 525| XkbRMLVOSet rmlvo_dflts = { NULL };
# 526|
# 527|-> BUG_RETURN_VAL(dev == NULL, FALSE);
# 528| BUG_RETURN_VAL(dev->key != NULL, FALSE);
# 529| BUG_RETURN_VAL(dev->kbdfeed != NULL, FALSE);
Error: GCC_ANALYZER_WARNING (CWE-401):
xwayland-24.1.13/xkb/xkbInit.c:527:5: warning[-Wanalyzer-malloc-leak]: leak of ‘rmlvo_dflts.variant’
xwayland-24.1.13/xkb/xkbInit.c:674:1: enter_function: entry to ‘InitKeyboardDeviceStructFromString’
xwayland-24.1.13/xkb/xkbInit.c:678:12: call_function: calling ‘InitKeyboardDeviceStructInternal’ from ‘InitKeyboardDeviceStructFromString’
# 525| XkbRMLVOSet rmlvo_dflts = { NULL };
# 526|
# 527|-> BUG_RETURN_VAL(dev == NULL, FALSE);
# 528| BUG_RETURN_VAL(dev->key != NULL, FALSE);
# 529| BUG_RETURN_VAL(dev->kbdfeed != NULL, FALSE);