xserver/hw/xquartz/mach-startup
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
..
.gitignore Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
bundle-main.c xquartz: use calloc() instead of malloc() 2025-07-04 14:10:18 +02:00
bundle_trampoline.c xquartz: Add a launch trampoline to better integrate with modern versions of macOS 2021-02-22 09:20:25 -08:00
launchd_fd.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
launchd_fd.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
mach_startup.defs XQuartz: Pass along SIGINT and SIGTERM from the stub to X11.app 2008-10-28 22:01:40 -07:00
mach_startup_types.h XQuartz: Source formatting cleanup 2012-03-24 01:07:06 -07:00
meson.build xquartz: depend on libX11 (includes X11/Xlib.h) 2025-06-27 14:30:27 +02:00
stub.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00