xserver/hw/xnest
Enrico Weigelt, metux IT consult 8f26a2f6a7 xnest: 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:50:00 +02:00
..
man Replace "the the" with a single "the" in docs & comments 2022-03-31 13:27:57 -07:00
.gitignore Xnest: build Xnest man pages using XORG_MANPAGE_SECTIONS 2011-01-18 15:10:17 -08:00
Args.c treewide: drop COMPOSITE symbol 2025-06-12 16:47:01 +02:00
Args.h Xnest: cleanup X.h includes 2024-04-15 19:20:39 +00:00
Color.c Xnest: drop obsolete xnest-config.h 2025-02-06 20:22:52 +00:00
Color.h Xnest: cleanup X.h includes 2024-04-15 19:20:39 +00:00
Cursor.c Xnest: drop obsolete xnest-config.h 2025-02-06 20:22:52 +00:00
Display.c os: unexport CloseWellKnownConnections() 2025-02-18 10:53:45 +00:00
Display.h Xnest: Display.h: fix missing include of colormap.h 2024-08-31 23:32:54 +00:00
Drawable.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
Events.c Xnest: drop obsolete xnest-config.h 2025-02-06 20:22:52 +00:00
Events.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
Font.c xnest: use calloc() instead of malloc() 2025-06-12 16:50:00 +02:00
GC.c xnest: use dixDestroyPixmap() instead of direct driver call 2025-02-12 17:48:30 +01:00
GCOps.c Xnest: drop obsolete xnest-config.h 2025-02-06 20:22:52 +00:00
GCOps.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
Handlers.c Xnest: drop obsolete xnest-config.h 2025-02-06 20:22:52 +00:00
Handlers.h Remove fd_set from Block/Wakeup handler API 2016-07-18 15:27:51 -04:00
Init.c os: move out extension disable flags to corresponing extensions 2025-02-07 12:00:53 +01:00
Init.h Xnest: canonicalize includes: <X11/Xdefs.h> 2024-04-15 19:20:39 +00:00
Keyboard.c Xnest: use authorative declarations from X11/XKBlib.h 2025-02-28 17:27:05 +00:00
Keyboard.h Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
Pixmap.c Xnest: drop obsolete xnest-config.h 2025-02-06 20:22:52 +00:00
Pointer.c Xnest: drop obsolete xnest-config.h 2025-02-06 20:22:52 +00:00
Pointer.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
Screen.c xnest: use calloc() instead of malloc() 2025-06-12 16:50:00 +02:00
Screen.h Xnest: cleanup X.h includes 2024-04-15 19:20:39 +00:00
Visual.c Xnest: drop obsolete xnest-config.h 2025-02-06 20:22:52 +00:00
Visual.h Xnest: cleanup X.h includes 2024-04-15 19:20:39 +00:00
Window.c Xnest: drop obsolete xnest-config.h 2025-02-06 20:22:52 +00:00
XNCursor.h Xnest: canonicalize includes: <X11/Xdefs.h> 2024-04-15 19:20:39 +00:00
XNFont.h Xnest: canonicalize includes: <X11/Xdefs.h> 2024-04-15 19:20:39 +00:00
XNGC.h Xnest: XNGC.h: add missing includes 2024-08-31 23:21:21 +00:00
XNPixmap.h Xnest: canonicalize includes: <X11/Xdefs.h> 2024-04-15 19:20:39 +00:00
XNWindow.h Xnest: canonicalize includes: <X11/Xdefs.h> 2024-04-15 19:20:39 +00:00
Xnest.h Xnest: add guards to Xnest.h 2024-08-31 23:09:30 +00:00
icon R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00
meson.build Xnest: tidy up extension blacklisting in miinitext.c 2025-02-06 16:14:03 +00:00
screensaver R6.6 is the Xorg base-line 2003-11-14 15:54:54 +00:00