xserver/os
Enrico Weigelt, metux IT consult a8f0e2801e 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-06-12 17:21:43 +02:00
..
.gitignore
WaitFor.c
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 os: auth: let GenerateAuthorization() return 0 on error 2025-06-12 16:52:59 +02:00
auth.h os: auth: generate XIDs in proto funcs only on success 2025-06-12 16:52:56 +02:00
backtrace.c
bug_priv.h
busfault.c
busfault.h
client.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
client_priv.h
cmdline.h
connection.c os: replace xallocarray() by calloc() 2025-06-12 17:21:43 +02:00
ddx_priv.h
fmt.c
fmt.h
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: auth: protect against duplicate auth keys 2025-06-12 16:53:06 +02:00
mitauth.h os: auth: generate XIDs in proto funcs only on success 2025-06-12 16:52:56 +02:00
osdep.h os: move LIMITCLIENTS define into private header 2025-06-12 17:21:43 +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
screensaver.h
serverlock.c
serverlock.h
strcasecmp.c
strcasestr.c
string.c
strlcat.c
strlcpy.c
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
xdmauth.c os: auth: protect against duplicate auth keys 2025-06-12 16:53:06 +02:00
xdmauth.h os: auth: generate XIDs in proto funcs only on success 2025-06-12 16:52:56 +02:00
xdmcp.c os: xdmcp: simplify AddAuth handler call 2025-06-12 16:53:03 +02:00
xdmcp.h os: auth: use strlen() for auth proto name length 2025-06-12 16:52:41 +02:00
xprintf.c os: drop deprecated Xprintf() 2025-06-12 16:54:27 +02:00
xserver_poll.c
xserver_poll.h
xsha1.c os: use calloc() instead of malloc() 2025-06-12 16:49:45 +02:00
xsha1.h
xstrans.c