xserver/hw/xfree86/shadowfb
Enrico Weigelt, metux IT consult d8e6511b1b 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-12 16:49:57 +02:00
..
meson.build meson: Fix linkage of loadable modules for PE/COFF 2017-10-12 15:22:04 -04:00
sfbmodule.c xfree86: xfbmodule: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
shadowfb.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
shadowfb.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00