xserver/os
Enrico Weigelt, metux IT consult e6cea8dfb4 (1823) os: replace xallocarray() by calloc()
Only key difference that calloc(), in contrast to rellocarray(),
is zero-initializing. The overhead is hard to measure on today's
machines, and it's safer programming practise to always allocate
zero-initialized, so one can't forget to do it explicitly.

Cocci rule:

    @@
    expression COUNT;
    expression LEN;
    @@
    - xallocarray(COUNT,LEN)
    + calloc(COUNT,LEN)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-22 17:34:59 +02:00
..
.gitignore
WaitFor.c os: drop unused TimerCheck() 2025-02-23 17:46:13 +00:00
access.c (!1909) os: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
alloc.c (!1909) os: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
audit.h
auth.c (!1901) os: auth: let GenerateAuthorization() return 0 on error 2025-05-22 17:34:52 +02:00
auth.h (!1901) os: auth: generate XIDs in proto funcs only on success 2025-05-22 17:34:52 +02:00
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 (!1909) os: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
client_priv.h os: unexport SetCriticalOutputPending() 2025-02-23 17:39:18 +00:00
cmdline.h
connection.c (1823) os: replace xallocarray() by calloc() 2025-05-22 17:34:59 +02:00
ddx_priv.h
fmt.c
fmt.h misc.h: unexport compare_version() 2025-02-18 11:17:40 +00:00
inputthread.c (!1909) os: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
io.c (!1909) os: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
log.c (!1909) os: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
meson.build
mitauth.c (!1901) os: auth: protect against duplicate auth keys 2025-05-22 17:34:52 +02:00
mitauth.h (!1901) os: auth: generate XIDs in proto funcs only on success 2025-05-22 17:34:52 +02:00
osdep.h (1825) os: move LIMITCLIENTS define into private header 2025-05-22 17:34:59 +02:00
osinit.c (!1973) os: don't ever try to mess with stderr / fd 2 2025-05-22 17:34:39 +02:00
ospoll.c (!1958) os: ospoll_create(): protect from allocation failure 2025-05-22 17:34: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 (!1909) os: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
timingsafe_memcmp.c
utils.c (!1909) os: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
xdmauth.c (!1901) os: auth: protect against duplicate auth keys 2025-05-22 17:34:52 +02:00
xdmauth.h (!1901) os: auth: generate XIDs in proto funcs only on success 2025-05-22 17:34:52 +02:00
xdmcp.c (!1901) os: xdmcp: simplify AddAuth handler call 2025-05-22 17:34:52 +02:00
xdmcp.h (!1901) os: auth: use strlen() for auth proto name length 2025-05-22 17:34:52 +02:00
xprintf.c (!1898) os: drop deprecated Xprintf() 2025-05-22 17:34:53 +02:00
xserver_poll.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
xserver_poll.h
xsha1.c (!1909) os: use calloc() instead of malloc() 2025-05-22 17:34:49 +02:00
xsha1.h
xstrans.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00