xserver/hw/xfree86/loader
Enrico Weigelt, metux IT consult f759a7eee7 (!1909) xfree86: 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-03 11:37:33 +02:00
..
loader.c Revert "xfree86: loader: drop unused LoaderShouldIgnoreABI()" 2025-02-07 14:46:21 +01:00
loader.h loader: Move LoaderSymbolFromModule() to public API 2019-11-13 19:49:18 +00:00
loaderProcs.h loader: Remove unused path and name from ModuleDescPtr 2017-01-25 14:22:06 -05:00
loadmod.c (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
meson.build Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
symbol-test.c xfree86: build a shared lib identical to Xorg 2017-05-15 09:14:42 -07:00