Task #152243 - added.err
back to task #152243download
Error: GCC_ANALYZER_WARNING (CWE-476):
xwayland-26.0.99.904/glamor/glamor.c:1032:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘offsets’
xwayland-26.0.99.904/glamor/glamor.c:1067:1: enter_function: entry to ‘glamor_fd_from_pixmap’
xwayland-26.0.99.904/glamor/glamor.c:1074:11: call_function: calling ‘_glamor_fds_from_pixmap’ from ‘glamor_fd_from_pixmap’
# 1030| if (!glamor_priv->dri3_enabled)
# 1031| return 0;
# 1032|-> switch (pixmap_priv->type) {
# 1033| case GLAMOR_TEXTURE_DRM:
# 1034| case GLAMOR_TEXTURE_ONLY:
Error: GCC_ANALYZER_WARNING (CWE-476):
xwayland-26.0.99.904/glamor/glamor_priv.h:471:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prog’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:373:1: enter_function: entry to ‘glamor_composite_glyphs’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:403:12: branch_true: following ‘true’ branch (when ‘nlist != 0’)...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:404:14: branch_true: ...to here
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:413:16: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:423:24: branch_false: following ‘false’ branch (when ‘glyphs_queued == 0’)...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:427:17: branch_false: ...to here
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:413:16: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:419:21: call_function: calling ‘glamor_pixmap_is_memory’ from ‘glamor_composite_glyphs’
# 469| glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
# 470|
# 471|-> return priv->type == GLAMOR_MEMORY;
# 472| }
# 473|
Error: GCC_ANALYZER_WARNING (CWE-476):
xwayland-26.0.99.904/glamor/glamor_priv.h:504:12: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘prog’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:373:1: enter_function: entry to ‘glamor_composite_glyphs’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:403:12: branch_true: following ‘true’ branch (when ‘nlist != 0’)...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:404:14: branch_true: ...to here
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:413:16: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:419:21: call_function: calling ‘glamor_pixmap_is_memory’ from ‘glamor_composite_glyphs’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:419:21: return_function: returning to ‘glamor_composite_glyphs’ from ‘glamor_pixmap_is_memory’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:434:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:434:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:439:24: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:440:28: branch_true: ...to here
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:440:28: branch_false: following ‘false’ branch (when ‘glyphs_queued == 0’)...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:449:25: branch_false: ...to here
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:449:24: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:450:30: branch_true: ...to here
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:460:28: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:461:29: branch_true: ...to here
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:461:29: call_function: calling ‘glamor_glyph_atlas_init’ from ‘glamor_composite_glyphs’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:461:29: return_function: returning to ‘glamor_composite_glyphs’ from ‘glamor_glyph_atlas_init’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:462:32: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:463:33: branch_true: ...to here
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:408:16: branch_true: following ‘true’ branch (when ‘n != 0’)...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:409:31: branch_true: ...to here
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:413:16: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:419:20: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:419:21: call_function: calling ‘glamor_pixmap_is_memory’ from ‘glamor_composite_glyphs’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:419:21: return_function: returning to ‘glamor_composite_glyphs’ from ‘glamor_pixmap_is_memory’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:419:20: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:434:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:434:63: call_function: inlined call to ‘glamor_get_glyph_private’ from ‘glamor_composite_glyphs’
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:449:24: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:450:30: branch_true: ...to here
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:460:28: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:461:29: branch_true: ...to here
xwayland-26.0.99.904/glamor/glamor_composite_glyphs.c:461:29: call_function: calling ‘glamor_glyph_atlas_init’ from ‘glamor_composite_glyphs’
# 502| glamor_pixmap_private *priv = glamor_get_pixmap_private(pixmap);
# 503|
# 504|-> return priv->gl_fbo == GLAMOR_FBO_NORMAL;
# 505| }
# 506|
Error: GCC_ANALYZER_WARNING (CWE-416):
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1269:5: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*xwl_selection.clipboard.send_queue.next’
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1639:1: enter_function: entry to ‘property_callback’
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1646:8: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1651:9: branch_false: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1651:8: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1654:9: branch_false: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1654:8: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1657:5: branch_false: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1676:8: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1677:9: branch_true: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1676:9: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1678:9: branch_true: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1678:9: call_function: calling ‘handle_send_data_reply’ from ‘property_callback’
# 1267| __FUNCTION__, ATOM_NAME_HELPER(selection), ATOM_NAME_HELPER(req->target), attrs->x11_serial);
# 1268|
# 1269|-> x11_deliver_selection_req(selection, req->target,
# 1270| xwl_selection->bridge_window->drawable.id,
# 1271| property, attrs->x11_owner_time);
Error: GCC_ANALYZER_WARNING (CWE-416):
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1269:5: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘*xwl_selection.primary.send_queue.next’
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1639:1: enter_function: entry to ‘property_callback’
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1646:8: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1651:9: branch_false: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1651:8: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1654:9: branch_false: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1654:8: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1657:5: branch_false: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1684:8: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1685:9: branch_true: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1684:9: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1686:9: branch_true: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1686:9: call_function: calling ‘handle_send_data_reply’ from ‘property_callback’
# 1267| __FUNCTION__, ATOM_NAME_HELPER(selection), ATOM_NAME_HELPER(req->target), attrs->x11_serial);
# 1268|
# 1269|-> x11_deliver_selection_req(selection, req->target,
# 1270| xwl_selection->bridge_window->drawable.id,
# 1271| property, attrs->x11_owner_time);
Error: GCC_ANALYZER_WARNING (CWE-416):
xwayland-26.0.99.904/include/inputstr.h:698:12: warning[-Wanalyzer-use-after-free]: use after ‘reallocarray’ of ‘*pSprite.spriteTrace’
xwayland-26.0.99.904/mi/miwindow.c:810:1: enter_function: entry to ‘miXYToWindow’
xwayland-26.0.99.904/mi/miwindow.c:813:12: call_function: calling ‘miSpriteTrace’ from ‘miXYToWindow’
# 696| {
# 697| assert(sprite->spriteTraceGood > 0);
# 698|-> return sprite->spriteTrace[sprite->spriteTraceGood - 1];
# 699| }
# 700|
Error: GCC_ANALYZER_WARNING (CWE-416):
xwayland-26.0.99.904/include/list.h:204:5: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘req’
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1639:1: enter_function: entry to ‘property_callback’
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1646:8: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1651:9: branch_false: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1651:8: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1654:9: branch_false: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1654:8: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1657:5: branch_false: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1676:8: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1677:9: branch_true: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1676:9: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1678:9: branch_true: ...to here
xwayland-26.0.99.904/hw/xwayland/xwayland-selection.c:1678:9: call_function: calling ‘handle_send_data_reply’ from ‘property_callback’
# 202| xorg_list_del(struct xorg_list *entry)
# 203| {
# 204|-> __xorg_list_del(entry->prev, entry->next);
# 205| xorg_list_init(entry);
# 206| }
Error: GCC_ANALYZER_WARNING (CWE-762):
xwayland-26.0.99.904/os/utils.c:1935:17: warning[-Wanalyzer-mismatching-deallocation]: ‘list’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’
xwayland-26.0.99.904/os/utils.c:1926:8: branch_false: following ‘false’ branch (when ‘str’ is non-NULL)...
xwayland-26.0.99.904/os/utils.c:1928:12: branch_false: ...to here
xwayland-26.0.99.904/os/utils.c:1928:12: acquire_memory: allocated here (expects deallocation with ‘free’)
xwayland-26.0.99.904/os/utils.c:1929:8: branch_false: following ‘false’ branch (when ‘list’ is non-NULL)...
xwayland-26.0.99.904/os/utils.c:1931:11: branch_false: ...to here
xwayland-26.0.99.904/os/utils.c:1932:8: branch_false: following ‘false’ branch (when ‘tmp’ is non-NULL)...
xwayland-26.0.99.904/os/utils.c:1934:16: branch_false: ...to here
xwayland-26.0.99.904/os/utils.c:1934:41: branch_true: following ‘true’ branch (when ‘tok’ is non-NULL)...
xwayland-26.0.99.904/os/utils.c:1935:36: branch_true: ...to here
xwayland-26.0.99.904/os/utils.c:1935:17: danger: deallocated with ‘reallocarray’ here; allocation at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) expects deallocation with ‘free’
# 1933| goto error;
# 1934| for (tok = strtok(tmp, separators); tok; tok = strtok(NULL, separators)) {
# 1935|-> nlist = reallocarray(list, num + 2, sizeof(*list));
# 1936| if (!nlist)
# 1937| goto error;
Error: GCC_ANALYZER_WARNING (CWE-401):
xwayland-26.0.99.904/randr/rrproviderproperty.c:433:1: warning[-Wanalyzer-malloc-leak]: leak of ‘pAtoms’
xwayland-26.0.99.904/randr/rrproviderproperty.c:400:5: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/randr/rrproviderproperty.c:402:5: branch_false: ...to here
xwayland-26.0.99.904/randr/rrproviderproperty.c:402:5: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/randr/rrproviderproperty.c:404:25: branch_false: ...to here
xwayland-26.0.99.904/randr/rrproviderproperty.c:406:8: branch_true: following ‘true’ branch (when ‘numProps != 0’)...
xwayland-26.0.99.904/randr/rrproviderproperty.c:407:24: branch_true: ...to here
xwayland-26.0.99.904/randr/rrproviderproperty.c:407:24: acquire_memory: allocated here
xwayland-26.0.99.904/randr/rrproviderproperty.c:407:12: branch_false: following ‘false’ branch (when ‘pAtoms’ is non-NULL)...
xwayland-26.0.99.904/randr/rrproviderproperty.c:412:27: branch_false: ...to here
xwayland-26.0.99.904/randr/rrproviderproperty.c:422:8: branch_false: following ‘false’ branch (when ‘numProps == 0’)...
xwayland-26.0.99.904/randr/rrproviderproperty.c:400:5: branch_false: ...to here
xwayland-26.0.99.904/randr/rrproviderproperty.c:433:1: danger: ‘pAtoms’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
# 431| }
# 432| return Success;
# 433|-> }
# 434|
# 435| int
Error: GCC_ANALYZER_WARNING (CWE-401):
xwayland-26.0.99.904/xkb/XKBGAlloc.c:558:16: warning[-Wanalyzer-malloc-leak]: leak of ‘*((struct _XkbProperty *)prop).value’
xwayland-26.0.99.904/xkb/XKBGAlloc.c:552:8: branch_false: following ‘false’ branch...
xwayland-26.0.99.904/xkb/XKBGAlloc.c:554:42: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/xkb/XKBGAlloc.c:555:13: branch_true: ...to here
xwayland-26.0.99.904/xkb/XKBGAlloc.c:555:12: branch_true: following ‘true’ branch...
xwayland-26.0.99.904/xkb/XKBGAlloc.c:555:30: branch_true: ...to here
xwayland-26.0.99.904/xkb/XKBGAlloc.c:557:27: acquire_memory: allocated here
xwayland-26.0.99.904/xkb/XKBGAlloc.c:558:16: danger: ‘*((struct _XkbProperty *)prop).value’ leaks here; was allocated at [(7)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/6)
# 556| free(prop->value);
# 557| prop->value = strdup(value);
# 558|-> if (!prop->value)
# 559| return NULL;
# 560| return prop;
Error: GCC_ANALYZER_WARNING (CWE-762):
xwayland-26.0.99.904/xkb/xkbActions.c:1158:22: warning[-Wanalyzer-mismatching-deallocation]: ‘*((struct _XkbSrvInfo *)xkbi).filters’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’
xwayland-26.0.99.904/xkb/xkbActions.c:1258:1: enter_function: entry to ‘XkbActionGetFilter’
xwayland-26.0.99.904/xkb/xkbActions.c:1293:18: call_function: calling ‘_XkbNextFreeFilter’ from ‘XkbActionGetFilter’
# 1156| int newSize = xkbi->szFilters * 2;
# 1157|
# 1158|-> newFilters = reallocarray(xkbi->filters,
# 1159| newSize, sizeof(XkbFilterRec));
# 1160| if (!newFilters)