xserver/randr
Enrico Weigelt, metux IT consult 67fc0c527c 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 18:59:04 +02:00
..
meson.build meson: hide C API if Xorg is disabled (like autotools) 2021-03-11 00:22:36 +00:00
randr.c randr: RRScreenInit(): drop unnecessary zero'ing 2025-02-24 20:30:26 +00:00
randrstr.h render: drop obsolete macros pict_f_transform and pict_f_vector 2024-03-03 22:54:16 +00:00
randrstr_priv.h randr: use explicit case statement instead of SProcRandrVector table 2025-02-24 20:30:26 +00:00
rrcrtc.c randr: use calloc() instead of malloc() 2025-05-22 18:59:04 +02:00
rrdispatch.c randr: use calloc() instead of malloc() 2025-05-22 18:59:04 +02:00
rrinfo.c randr: use calloc() instead of malloc() 2025-05-22 18:59:04 +02:00
rrlease.c randr: use struct initializer for reply structs 2025-02-24 20:30:26 +00:00
rrmode.c randr: use calloc() instead of malloc() 2025-05-22 18:59:04 +02:00
rrmonitor.c randr: use calloc() instead of malloc() 2025-05-22 18:59:04 +02:00
rroutput.c randr: use calloc() instead of malloc() 2025-05-22 18:59:04 +02:00
rrpointer.c dix: unexport GetSpritePosition() 2024-09-02 16:43:29 +00:00
rrproperty.c randr: use calloc() instead of malloc() 2025-05-22 18:59:04 +02:00
rrprovider.c randr: use calloc() instead of malloc() 2025-05-22 18:59:04 +02:00
rrproviderproperty.c randr: use calloc() instead of malloc() 2025-05-22 18:59:04 +02:00
rrscreen.c randr: use calloc() instead of malloc() 2025-05-22 18:59:04 +02:00
rrsdispatch.c randr: use explicit case statement instead of SProcRandrVector table 2025-02-24 20:30:26 +00:00
rrtransform.c randr: Silence -Wshift-negative-value warnings 2015-10-19 11:51:52 -04:00
rrtransform.h render: drop obsolete macros pict_f_transform and pict_f_vector 2024-03-03 22:54:16 +00:00
rrxinerama.c randr: use struct initializer for reply structs 2025-02-24 20:30:26 +00:00