xserver/hw/xfree86
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
..
common xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
ddc xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
dixmods xfree86: shmodule: use explicit field initializers for XF86ModuleData 2025-02-17 19:41:30 +00:00
doc xfree86: fbman: drop unused xf86FBManagerRunning() 2025-06-12 16:21:05 +02:00
dri xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
dri2 xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
drivers xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
exa xfree86: exa: use CloseScreen hook 2025-06-12 16:46:17 +02:00
fbdevhw xfree86: fbdevhw: drop unused FBDEVHW_PLANES 2025-06-12 16:41:34 +02:00
glamor_egl drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
i2c xfree86: i2c: drop unused xf86I2CWriteWord() 2025-06-12 16:22:54 +02:00
int10 xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
loader xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
man man pages: remove extraneous PP macros 2025-05-31 15:01:49 -07:00
modes xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
os-support xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
parser xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
ramdac xfree86: cursor: use CloseScreen hook 2025-06-12 16:46:24 +02:00
shadowfb xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
utils xfree86: utils: gracefully handle allocation failure. 2025-06-12 16:33:37 +02:00
vgahw xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
x86emu xfree86: x86emu: add extra assert()'s 2025-06-12 16:33:24 +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 treewide: drop COMPOSITE symbol 2025-06-12 16:47:01 +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