xserver/hw/xfree86/ddc
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
..
DDC.HOWTO Fix some documentation typos 2008-03-03 16:11:05 -05:00
ddc.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
ddcProperty.c xfree86: ddc: unexport xf86EdidMonitorSet() 2025-06-12 16:22:13 +02:00
edid.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
interpret_edid.c xfree86: ddc: drop unused xf86MonitorIsHDMI() 2025-06-12 16:22:17 +02:00
meson.build Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
print_edid.c xfree86: ddc: move private definitions from xf86DDC.h to xf86DDC_priv.h 2025-02-06 23:51:34 +00:00
xf86DDC.h xfree86: ddc: make DMTModes[] static 2025-06-12 16:22:27 +02:00
xf86DDC_priv.h xfree86: ddc: unexport gtf_supported() 2025-06-12 16:22:21 +02:00