xserver/glamor
Enrico Weigelt, metux IT consult 34d42a47df (1823) glamor: replace xallocarray() by calloc()
Only key difference that calloc(), in contrast to rellocarray(),
is zero-initializing. The overhead is hard to measure on today's
machines, and it's safer programming practise to always allocate
zero-initialized, so one can't forget to do it explicitly.

Cocci rule:

    @@
    expression COUNT;
    expression LEN;
    @@
    - xallocarray(COUNT,LEN)
    + calloc(COUNT,LEN)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-03 11:37:36 +02:00
..
glamor.c (!1714) glamor: use PixmapDestroy hook 2025-06-03 11:37:33 +02:00
glamor.h (!1714) glamor: use CloseScreen hook 2025-06-03 11:37:32 +02:00
glamor_addtraps.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_composite_glyphs.c (!1898) os: drop Xasprintf() and Xvasprintf() 2025-06-03 11:37:34 +02:00
glamor_compositerects.c (1823) glamor: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
glamor_context.h
glamor_copy.c (!1944) treewide: drop COMPOSITE symbol 2025-06-03 11:37:33 +02:00
glamor_core.c (!1909) glamor: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
glamor_dash.c (!1975) glamor: BUG_RETURN*() on pixmap private data 2025-06-03 11:37:31 +02:00
glamor_debug.h glamor: glamor_debug.h: drop unused AbortServer() declaration 2024-03-03 22:29:52 +00:00
glamor_egl.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_egl.h
glamor_egl_ext.h
glamor_eglmodule.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_fbo.c (!1975) glamor: BUG_RETURN*() on pixmap private data 2025-06-03 11:37:31 +02:00
glamor_font.c (!1909) glamor: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
glamor_font.h
glamor_glx_provider.c glamor: reject configs using unsupported rgbBits size 2025-01-21 09:16:52 +00:00
glamor_glx_provider.h
glamor_glyphblt.c (!1975) glamor: BUG_RETURN*() on pixmap private data 2025-06-03 11:37:31 +02:00
glamor_gradient.c (1823) glamor: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
glamor_image.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_largepixmap.c (!1975) glamor: fix segfault on calloc() failure 2025-06-03 11:37:31 +02:00
glamor_lines.c (!1975) glamor: BUG_RETURN*() on pixmap private data 2025-06-03 11:37:31 +02:00
glamor_picture.c (!1975) glamor: BUG_RETURN*() on pixmap private data 2025-06-03 11:37:31 +02:00
glamor_pixmap.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_points.c (!1975) glamor: BUG_RETURN*() on pixmap private data 2025-06-03 11:37:31 +02:00
glamor_prepare.c (1823) glamor: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
glamor_prepare.h
glamor_priv.h (!1714) glamor: use PixmapDestroy hook 2025-06-03 11:37:33 +02:00
glamor_program.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_program.h
glamor_rects.c (!1975) glamor: BUG_RETURN*() on pixmap private data 2025-06-03 11:37:31 +02:00
glamor_render.c (!1975) glamor: BUG_RETURN*() on pixmap private data 2025-06-03 11:37:31 +02:00
glamor_segs.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_spans.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_sync.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_text.c (!1975) glamor: BUG_RETURN*() on pixmap private data 2025-06-03 11:37:31 +02:00
glamor_transfer.c (!1975) glamor: BUG_RETURN*() on pixmap private data 2025-06-03 11:37:31 +02:00
glamor_transfer.h
glamor_transform.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_transform.h
glamor_trapezoid.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_triangles.c (!1962) fb: pict: unexport fbTriangles() 2025-06-03 11:37:32 +02:00
glamor_utils.c (1823) glamor: replace xallocarray() by calloc() 2025-06-03 11:37:36 +02:00
glamor_utils.h (!1975) glamor: NULL-protect GLAMOR_PIXMAP_PRIV_HAS_FBO() 2025-06-03 11:37:31 +02:00
glamor_vbo.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_window.c (!1930) glamor: fix missing include of dix-config.h 2025-06-03 11:37:34 +02:00
glamor_xv.c (!1975) glamor: BUG_RETURN*() on pixmap private data 2025-06-03 11:37:31 +02:00
meson.build