xserver/randr
Enrico Weigelt, metux IT consult d300c8d354 (!1909) randr: 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-05-22 17:34:49 +02:00
..
meson.build
randr.c (!1714) randr: use CloseScreen hook 2025-05-22 17:34:46 +02:00
randrstr.h (!1985) randr: unexport and document RRXineramaExtensionInit() 2025-05-22 17:34:38 +02:00
randrstr_priv.h (!1985) randr: unexport and document RRTransformCopy() 2025-05-22 17:34:39 +02:00
rrcrtc.c (!1909) randr: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
rrdispatch.c (!1909) randr: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
rrdispatch_priv.h
rrinfo.c (!1909) randr: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
rrlease.c
rrmode.c (!1909) randr: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
rrmonitor.c (!1909) randr: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
rroutput.c (!1909) randr: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
rrpointer.c (!1985) randr: unexport and document RRCrtcGetScanoutSize() 2025-05-22 17:34:37 +02:00
rrproperty.c (!1909) randr: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
rrprovider.c (!1909) randr: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
rrproviderproperty.c (!1909) randr: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
rrscreen.c (!1909) randr: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
rrsdispatch.c
rrtransform.c (!1985) randr: unexport and document RRTransformInit() 2025-05-22 17:34:39 +02:00
rrtransform.h (!1985) randr: unexport and document RRTransformCopy() 2025-05-22 17:34:39 +02:00
rrxinerama.c