xserver/os
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Enrico Weigelt, metux IT consult 5f619d862d os: 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:45 +02:00
..
.gitignore
access.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
alloc.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
audit.h
auth.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
auth.h
backtrace.c os: backtrace: Fix -Wincompatible-pointer-types compiler error on 32-bit targets 2025-02-07 16:58:02 +02:00
bug_priv.h os: move BUG_*() macros to own private header 2025-02-17 19:32:48 +00:00
busfault.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
busfault.h
client.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
client_priv.h os: unexport SetCriticalOutputPending() 2025-02-23 17:39:18 +00:00
cmdline.h
connection.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
ddx_priv.h
fmt.c
fmt.h misc.h: unexport compare_version() 2025-02-18 11:17:40 +00:00
inputthread.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
io.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
log.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
meson.build
mitauth.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
mitauth.h
osdep.h os: drop self-limiting resources 2025-06-12 16:31:57 +02:00
osinit.c os: don't ever try to mess with stderr / fd 2 2025-06-12 16:32:00 +02:00
ospoll.c os: ospoll_create(): protect from allocation failure 2025-06-12 16:35:42 +02:00
ospoll.h
reallocarray.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
screensaver.h
serverlock.c
serverlock.h
strcasecmp.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
strcasestr.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
string.c
strlcat.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
strlcpy.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
strndup.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
timingsafe_memcmp.c
utils.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
WaitFor.c os: drop unused TimerCheck() 2025-02-23 17:46:13 +00:00
xdmauth.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
xdmauth.h
xdmcp.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
xdmcp.h
xprintf.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
xserver_poll.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
xserver_poll.h
xsha1.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
xsha1.h
xstrans.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00