xserver/hw/xfree86/ddc
Enrico Weigelt, metux IT consult 2ad73189b4 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-05-22 18:59:05 +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-05-22 18:59:05 +02:00
ddcProperty.c xfree86: Create EDID atom from the root window callback (v2) 2016-04-18 11:23:10 -04:00
edid.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
interpret_edid.c xfree86: common: use LogMessageVerb() instead of xf86Msg() 2025-02-07 22:40:06 +00: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: move private definitions from xf86DDC.h to xf86DDC_priv.h 2025-02-06 23:51:34 +00:00
xf86DDC_priv.h xfree86: ddc: move private definitions from xf86DDC.h to xf86DDC_priv.h 2025-02-06 23:51:34 +00:00