xserver/hw/xquartz
Enrico Weigelt, metux IT consult 87c5b5bf42 xquartz: 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-07-04 14:10:18 +02:00
..
GL xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
bundle xquartz: Remove invalid Unicode sequence 2024-05-07 22:26:34 +00:00
mach-startup xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
man man pages: remove extraneous PP macros 2025-05-31 15:01:49 -07:00
pbproxy fix missing includes of <X11/Xfuncproto.h> 2024-07-20 17:18:38 +00:00
xpr xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
NSUserDefaults+XQuartzDefaults.h hw: add/fix include guards where missing/broken 2025-06-27 13:58:05 +02:00
NSUserDefaults+XQuartzDefaults.m xquartz: Move default applications list outside of the main executable 2022-11-24 11:15:44 -08:00
X11Application.h xquartz: Create a separate category for organizing user preferences 2022-06-14 22:20:11 -07:00
X11Application.m miext: move over extinit_priv.h from include 2025-06-12 17:21:46 +02:00
X11Controller.h xquartz: Convert X11Controller ivars into @properties 2021-02-18 22:32:14 -08:00
X11Controller.m xquartz: fix compilation 2025-02-10 19:37:18 +08:00
applewm.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
applewmExt.h xquartz: Remove support for older versions of libXplugin 2021-02-01 16:21:39 -08:00
darwin.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
darwin.h fix missing includes of <X11/Xfuncproto.h> 2024-07-20 17:18:38 +00:00
darwinEvents.c os: unexport ListenOnOpenFD() 2025-02-18 10:53:44 +00:00
darwinEvents.h XQuartz: darwinPointer now sends both absolute and relative motion 2012-04-23 20:20:42 -07:00
darwinXinput.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
darwinfb.h XQuartz: Fix darwinfb.h header guard 2014-01-12 23:12:48 -08:00
defaults.plist xquartz: Move default applications list outside of the main executable 2022-11-24 11:15:44 -08:00
keysym2ucs.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
keysym2ucs.h Use ARRAY_SIZE all over the tree 2017-10-30 13:45:20 -04:00
meson.build xquartz: depend on libXdmcp (includes osdep.h which includes X11/Xdmcp.h) 2025-06-27 14:30:27 +02:00
quartz.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
quartz.h xquartz: Fold quartzCommon.h into quartz.h 2021-02-18 22:32:14 -08:00
quartzKeyboard.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
quartzKeyboard.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
quartzRandR.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
quartzRandR.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
quartzStartup.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
sanitizedCarbon.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
sanitizedCocoa.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00