xserver/xfixes
Enrico Weigelt, metux IT consult 71a2617c28 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-07-04 14:10:18 +02:00
..
cursor.c xfixes: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
disconnect.c xfixes: Check request length for SetClientDisconnectMode 2025-06-17 20:01:25 +02:00
meson.build treewide: remove "lib" prefix in static_library names (meson) 2025-07-03 12:01:52 +02:00
region.c dix: clean up MakeWindowOptional() calls and add alloc fault checks 2025-06-12 17:21:48 +02:00
saveset.c xfixes: simplify dispatcher 2025-06-12 17:21:44 +02:00
select.c dix: add selection filtering hooks 2025-06-12 17:21:48 +02:00
xfixes.c miext: move over extinit_priv.h from include 2025-06-12 17:21:46 +02:00
xfixes.h xfixes: Unexport xfixes.h 2015-07-08 16:40:58 -04:00
xfixesint.h dix: move over private defintions from selection.h to private header 2025-06-12 17:21:46 +02:00