xserver/hw/xwin
Enrico Weigelt, metux IT consult e2e0af3224 (!1909) xwin: 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-03 11:37:33 +02:00
..
dri xwin: drop swapping request length fields 2025-02-06 22:28:51 +00:00
glx (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
man XWin.man: fix typos in font change escapes 2025-05-31 15:06:23 -07:00
winclipboard (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
.gitignore
InitInput.c mi: unexport mieqInit() 2025-02-06 16:45:20 +02:00
InitOutput.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
X.ico
XWin.exe.manifest
XWin.rc
ddraw.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
meson.build meson: Add dependencies for hw/xwin/ resource compilation 2021-11-04 13:03:25 +00:00
propertystore.h
system.XWinrc hw/xwin: Add -icon option to set the screen window icon in windowed mode 2019-09-18 19:11:45 +00:00
win.h (!1705) xwin: call miCreateScreenResources() directly 2025-06-03 11:37:32 +02:00
winSetAppUserModelID.c
winallpriv.c Move sizeof to second argument in calloc calls 2024-07-19 23:45:21 +00:00
winauth.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winauth.h hw/xwin: Consistently use BOOL type from Xmd.h 2020-04-15 14:13:58 +00:00
winblock.c xwin: remove always true/set XWIN_CLIPBOARD conditional/define 2017-08-22 10:59:41 -04:00
winclipboardinit.c Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
winclipboardwrappers.c include: move private defs to dixstruct_priv.h 2024-04-30 00:47:38 +00:00
wincmap.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winconfig.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winconfig.h hw: Rename boolean config value field from bool to boolean 2019-07-22 20:28:27 -04:00
wincreatewnd.c dix: unexport fields from opaque.h not used by modules/drivers 2024-06-23 21:19:27 +00:00
wincursor.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
windialogs.c xwin: consolidate debugging symbols 2024-03-19 02:05:35 +00:00
windisplay.c dix: unexport fields from opaque.h not used by modules/drivers 2024-06-23 21:19:27 +00:00
windisplay.h
winengine.c hw/xwin: Remove mwextwm mode 2019-05-01 14:06:15 +00:00
winerror.c xwin: drop duplicate OsVendorVErrorF() 2025-02-06 23:35:27 +00:00
winglobals.c hw/xwin: Remove nounicodeclipboard option 2020-04-15 14:13:58 +00:00
winglobals.h hw/xwin: Remove nounicodeclipboard option 2020-04-15 14:13:58 +00:00
winkeybd.c mi: unexport mieqProcessInputEvents() 2025-02-06 16:45:20 +02:00
winkeybd.h
winkeyhook.c xwin: remove always true/set XWIN_MULTIWINDOW conditional/define 2017-08-22 10:59:41 -04:00
winkeynames.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
winlayouts.h hw/xwin: Add the Belgian (Comma) keyboard layout 2019-06-28 17:38:36 +00:00
winmessages.h
winmisc.c
winmonitors.c hw/xwin: Make QueryMonitor() slightly less insane 2019-06-28 17:44:58 +00:00
winmonitors.h
winmouse.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winms.h
winmsg.c xwin: consolidate debugging symbols 2024-03-19 02:05:35 +00:00
winmsg.h
winmsgwindow.c xwin: consolidate debugging symbols 2024-03-19 02:05:35 +00:00
winmultiwindowclass.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winmultiwindowclass.h
winmultiwindowicons.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winmultiwindowicons.h hw/xwin: Fix lingering uses of libX11 types and values 2020-04-15 14:13:58 +00:00
winmultiwindowshape.c (!1705) xwin: drop wrapping on ScreenRec->SetShape() 2025-06-03 11:37:32 +02:00
winmultiwindowwindow.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winmultiwindowwm.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winmultiwindowwndproc.c (!2007) include: drop obsolete dixevents.h 2025-06-03 11:37:28 +02:00
winos.c
winprefs.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winprefs.h hw/xwin: Add -icon option to set the screen window icon in windowed mode 2019-09-18 19:11:45 +00:00
winprefslex.l (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winprefsyacc.y (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winprocarg.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winrandr.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
winresource.h
winscrinit.c (!1705) xwin: call miCreateScreenResources() directly 2025-06-03 11:37:32 +02:00
winshadddnl.c (!1705) xwin: call winFinishScreenInitFB() directly 2025-06-03 11:37:32 +02:00
winshadgdi.c (!1909) xwin: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
wintaskbar.c
wintrayicon.c dix: unexport fields from opaque.h not used by modules/drivers 2024-06-23 21:19:27 +00:00
winvalargs.c hw/xwin: A simpleminded attempt at composition 2019-06-17 21:56:35 +00:00
winwakeup.c
winwindow.c (!1936) xwin: fix missing include of mi/mi_priv.h 2025-06-03 11:37:32 +02:00
winwindow.h xwin: consolidate debugging symbols 2024-03-19 02:05:35 +00:00
winwndproc.c mi: unexport miPointerSetScreen() 2025-02-06 14:38:05 +00:00