xserver/hw/xfree86/modes
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 xfree86: Move xf86CVTMode() function 2021-08-06 11:29:29 +00:00
xf86Crtc.c xfree86: crtc: use PostCreateResources screen hook 2025-06-12 16:46:55 +02:00
xf86Crtc.h xfree86: crtc: use CloseScreen hook 2025-06-12 16:46:20 +02:00
xf86Cursors.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
xf86DiDGA.c xfree86: common: move non-exported funcs from dgaproc.h to separate header 2024-02-29 10:27:08 +00:00
xf86EdidModes.c xfree86: ddc: make DMTModes[] static 2025-06-12 16:22:27 +02:00
xf86Modes.c treewide: replace xnfstrdup() calls by XNFstrdup() 2024-07-26 23:41:34 +00:00
xf86Modes.h Eliminate the use of xf86Rename.h 2013-04-24 10:22:20 -07:00
xf86RandR12.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
xf86RandR12.h xfree86: unexport xf86RandR12CreateScreenResources() 2025-06-12 16:43:14 +02:00
xf86RandR12_priv.h xfree86: unexport xf86RandR12CreateScreenResources() 2025-06-12 16:43:14 +02:00
xf86Rotate.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
xf86gtf.c treewide: replace xnfcalloc() calls by XNFcallocarray() 2024-07-26 23:41:33 +00:00