xserver/exa
Enrico Weigelt, metux IT consult 0111bd0d06 exa: use calloc() instead of malloc()
Using calloc() instead of malloc() as preventive measure, so there
never can be any hidden bugs or leaks due uninitialized memory.

The extra cost of using this compiler intrinsic should be practically
impossible to measure - in many cases a good compiler can even deduce
if certain areas really don't need to be zero'd (because they're written
to right after allocation) and create more efficient machine code.

The code pathes in question are pretty cold anyways, so it's probably
not worth even thinking about potential extra runtime costs.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-22 18:58:08 +02:00
..
exa.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
exa.h exa: rename some badly named variables 2020-07-10 06:17:40 +10:00
exa_accel.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
exa_classic.c exa: simplify CreatePixmap()/DestroyPixmap() handlers error pathes 2025-02-12 17:48:30 +01:00
exa_driver.c exa: simplify CreatePixmap()/DestroyPixmap() handlers error pathes 2025-02-12 17:48:30 +01:00
exa_glyphs.c exa: use dixDestroyPixmap() instead of direct driver call 2025-02-12 17:48:30 +01:00
exa_migration_classic.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
exa_migration_mixed.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
exa_mixed.c exa: use calloc() instead of malloc() 2025-05-22 18:58:08 +02:00
exa_offscreen.c exa: use calloc() instead of malloc() 2025-05-22 18:58:08 +02:00
exa_priv.h include: drop obsolete check for typeof operator 2024-04-22 22:15:45 +00:00
exa_render.c exa: use dixDestroyPixmap() instead of direct driver call 2025-02-12 17:48:30 +01:00
exa_unaccel.c mi: Add a default no-op miSourceValidate 2019-10-30 16:26:01 +00:00
meson.build Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00