xserver/composite
Enrico Weigelt, metux IT consult c6b8b78a29 composite: 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-06-12 16:49:13 +02:00
..
compalloc.c composite: use calloc() instead of malloc() 2025-06-12 16:49:13 +02:00
compext.c composite: use calloc() instead of malloc() 2025-06-12 16:49:13 +02:00
compinit.c composite: use calloc() instead of malloc() 2025-06-12 16:49:13 +02:00
compint.h compext: use CloseScreen hook 2025-06-12 16:45:21 +02:00
compositeext.h composite: move out unexported CompositeIsImplicitRedirectException() 2024-03-03 22:50:07 +00:00
compositeext_priv.h composite: fix duplicate typedef of ScreenPtr 2024-04-18 00:51:06 +00:00
compoverlay.c composite: use calloc() instead of malloc() 2025-06-12 16:49:13 +02:00
compwindow.c (!1714) composite: use window position notify hook 2025-06-12 16:44:35 +02:00
meson.build meson: hide C API if Xorg is disabled (like autotools) 2021-03-11 00:22:36 +00:00