Task #9459 - added.err
back to task #9459download
Error: GCC_ANALYZER_WARNING (CWE-401):
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c: scope_hint: In function ‘cache_formats_and_modifiers’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c:186:8: warning[-Wanalyzer-malloc-leak]: leak of ‘((struct dri3_screen_priv)**screen.devPrivates).formats’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘cache_formats_and_modifiers’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c: scope_hint: In function ‘cache_formats_and_modifiers’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/dri3/dri3_screen.c: scope_hint: In function ‘cache_formats_and_modifiers’
# 184|
# 185| ds->formats = calloc(num_formats, sizeof(dri3_dmabuf_format_rec));
# 186|-> if (!ds->formats) {
# 187| free(formats);
# 188| return BadAlloc;
Error: CLANG_WARNING:
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/fb/fbscreen.c:179:59: warning[core.BitwiseShift]: Right operand is negative in left shift
# 177| rootdepth = 0;
# 178| if (!fbInitVisuals(&visuals, &depths, &nvisuals, &ndepths, &rootdepth,
# 179|-> &defaultVisual, ((unsigned long) 1 << (bpp - 1)),
# 180| 8))
# 181| return FALSE;
Error: CLANG_WARNING:
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_program.c:406:5: warning[unix.Malloc]: Attempt to free released memory
# 404| prog->prog = 0;
# 405| }
# 406|-> free(vs_prog_string);
# 407| free(fs_prog_string);
# 408| free(version_string);
Error: GCC_ANALYZER_WARNING (CWE-457):
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:505:53: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘src_pixmap_priv[1]’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:412:18: note: in expansion of macro ‘REGION_RECTS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c:413:16: note: in expansion of macro ‘REGION_NUM_RECTS’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor_xv.c: scope_hint: In function ‘glamor_xv_render’
# 503|
# 504| glActiveTexture(GL_TEXTURE1);
# 505|-> glBindTexture(GL_TEXTURE_2D, src_pixmap_priv[1]->fbo->tex);
# 506| glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
# 507| glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
Error: GCC_ANALYZER_WARNING (CWE-401):
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-glamor-gbm.c: scope_hint: In function ‘xwl_dri3_create_syncobj’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-glamor-gbm.c:1158:12: warning[-Wanalyzer-malloc-leak]: leak of ‘syncobj’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/cursor.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/scrnintstr.h:53: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/glamor/glamor.h:32: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-glamor-gbm.c:49: included_from: Included from here.
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/include/privates.h: scope_hint: In function ‘xwl_dri3_create_syncobj’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-glamor-gbm.c: scope_hint: In function ‘xwl_dri3_create_syncobj’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-glamor-gbm.c: scope_hint: In function ‘xwl_dri3_create_syncobj’
# 1156| syncobj->base.signaled_eventfd = xwl_dri3_syncobj_signaled_eventfd;
# 1157| syncobj->base.submitted_eventfd = xwl_dri3_syncobj_submitted_eventfd;
# 1158|-> return &syncobj->base;
# 1159|
# 1160| fail:
Error: CLANG_WARNING:
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/hw/xwayland/xwayland-window.c:1093:22: warning[unix.Malloc]: Use of memory after it is freed
# 1091|
# 1092| xorg_list_for_each_entry(window_output, &xwl_window->xwl_output_list, link) {
# 1093|-> xwl_output = window_output->xwl_output;
# 1094| if (xwl_output->scale > scale)
# 1095| scale = xwl_output->scale;
Error: GCC_ANALYZER_WARNING (CWE-762):
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/string.c: scope_hint: In function ‘xstrtokenize’
xorg-x11-server-Xwayland-24.1.0-build/xwayland-24.1.0/os/string.c:55:17: warning[-Wanalyzer-mismatching-deallocation]: ‘list’ should have been deallocated with ‘free’ but was deallocated with ‘reallocarray’
# 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;