xserver/hw/xfree86
Enrico Weigelt, metux IT consult f759a7eee7 (!1909) 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-03 11:37:33 +02:00
..
common (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
ddc (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
dixmods xfree86: shmodule: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
doc (!1997) xfree86: fbman: drop unused xf86FBManagerRunning() 2025-06-03 11:37:29 +02:00
dri (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
dri2 (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
drivers (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
exa (!1714) xfree86: exa: use CloseScreen hook 2025-06-03 11:37:33 +02:00
fbdevhw (!1952) xfree86: fbdevhw: drop unused FBDEVHW_PLANES 2025-06-03 11:37:32 +02:00
glamor_egl drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
i2c (!1992) xfree86: i2c: drop unused xf86I2CWriteWord() 2025-06-03 11:37:29 +02:00
int10 (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
loader (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
man man pages: remove extraneous PP macros 2025-05-31 15:01:49 -07:00
modes (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
os-support (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
parser (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
ramdac (!1714) xfree86: cursor: use CloseScreen hook 2025-06-03 11:37:33 +02:00
shadowfb (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
utils (!1969) xfree86: utils: gracefully handle allocation failure. 2025-06-03 11:37:31 +02:00
vgahw (!1909) xfree86: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
x86emu (!1969) xfree86: x86emu: add extra assert()'s 2025-06-03 11:37:31 +02:00
xkb dix: unexport non-public functions from dixgrabs.h and document prototypes 2024-10-10 13:50:57 +00:00
.gitignore Xorg: Add Xorg.wrap to hw/xfree86/.gitignore 2014-04-18 11:39:16 +02:00
Xorg.sh.in xfree86: rename Xorg.bin to Xorg 2015-01-05 09:53:58 +10:00
meson.build meson: Support building Xnest and Xorg on darwin 2022-06-26 09:16:42 +00:00
sdksyms.sh (!1944) treewide: drop COMPOSITE symbol 2025-06-03 11:37:33 +02:00
xorg-wrapper.c Fix various spelling errors 2019-10-01 17:05:28 +00:00
xorgconf.cpp Fix spelling/wording issues 2020-07-05 13:07:33 -07:00