xserver/xfixes
Enrico Weigelt, metux IT consult 45d7b62d95 xfixes: 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:48:08 +02:00
..
cursor.c xfixes: use calloc() instead of malloc() 2025-06-12 16:48:08 +02:00
disconnect.c xfixes: drop swapping request length fields 2025-02-06 22:28:49 +00:00
meson.build xfixes: Add ClientDisconnectMode 2021-06-07 17:28:05 +02:00
region.c xfixes: drop swapping request length fields 2025-02-06 22:28:49 +00:00
saveset.c xfixes: drop swapping request length fields 2025-02-06 22:28:49 +00:00
select.c xfixes: use calloc() instead of malloc() 2025-06-12 16:48:08 +02:00
xfixes.c misc.h: unexport compare_version() 2025-02-18 11:17:40 +00:00
xfixes.h xfixes: Unexport xfixes.h 2015-07-08 16:40:58 -04:00
xfixesint.h rename old symbol PANORAMIX to XINERAMA 2025-02-06 15:51:27 +00:00