xserver/hw/xwin
Enrico Weigelt, metux IT consult 5377ee4d81 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-12 16:50:05 +02:00
..
dri xwin: drop swapping request length fields 2025-02-06 22:28:51 +00:00
glx xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
man XWin.man: fix typos in font change escapes 2025-05-31 15:06:23 -07:00
winclipboard xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
.gitignore XWin: build XWin man pages using XORG_MANPAGE_SECTIONS 2011-01-18 15:10:21 -08:00
InitInput.c mi: unexport mieqInit() 2025-02-06 16:45:20 +02:00
InitOutput.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
X.ico
XWin.exe.manifest hw/xwin: Report OS version in log 2015-03-23 16:01:58 +00:00
XWin.rc hw/xwin: Add controls for enabling/disabling monitoring of PRIMARY selection 2014-11-09 14:22:35 +00:00
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 hw/xwin: Add correct taskbar grouping of X windows on Windows 7 2012-11-27 16:08:22 +00:00
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 xwin: call miCreateScreenResources() directly 2025-06-12 16:42:52 +02:00
winSetAppUserModelID.c hw/xwin: Fix format warnings with debug printing of pointers on 64-bit 2014-10-09 16:31:58 +01:00
winallpriv.c Move sizeof to second argument in calloc calls 2024-07-19 23:45:21 +00:00
winauth.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +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 xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
winconfig.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +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 xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +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 hw/xwin: Improve choice of display name used by internal clients 2014-08-29 13:28:00 +01:00
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 Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
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 hw/xwin: Handle WM_MOUSEHWHEEL 2013-07-23 23:59:27 +01:00
winmisc.c xwin: Remove native GDI engine (v2) 2014-10-09 09:27:21 +02:00
winmonitors.c hw/xwin: Make QueryMonitor() slightly less insane 2019-06-28 17:44:58 +00:00
winmonitors.h hw/xwin: Align parameter names in prototypes with definition 2014-03-03 14:31:17 +00:00
winmouse.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
winms.h hw/xwin: Fix for MinGW-w64 DirectDraw headers 2012-11-28 14:44:14 +00:00
winmsg.c xwin: consolidate debugging symbols 2024-03-19 02:05:35 +00:00
winmsg.h hw/xwin: Tidy-up of winmsg.h 2016-03-09 16:13:54 +00:00
winmsgwindow.c xwin: consolidate debugging symbols 2024-03-19 02:05:35 +00:00
winmultiwindowclass.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
winmultiwindowclass.h xwin: Correctly interpret WM_HINTS, WM_NORMAL_HINTS properties on x86_64 2016-02-29 14:04:19 -05:00
winmultiwindowicons.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
winmultiwindowicons.h hw/xwin: Fix lingering uses of libX11 types and values 2020-04-15 14:13:58 +00:00
winmultiwindowshape.c xwin: drop wrapping on ScreenRec->SetShape() 2025-06-12 16:42:30 +02:00
winmultiwindowwindow.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
winmultiwindowwm.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
winmultiwindowwndproc.c include: drop obsolete dixevents.h 2025-06-12 16:17:35 +02:00
winos.c hw/xwin: Report OS version in log 2015-03-23 16:01:58 +00:00
winprefs.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +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 xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
winprefsyacc.y xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
winprocarg.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
winrandr.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
winresource.h hw/xwin: Add controls for enabling/disabling monitoring of PRIMARY selection 2014-11-09 14:22:35 +00:00
winscrinit.c xwin: call miCreateScreenResources() directly 2025-06-12 16:42:52 +02:00
winshadddnl.c xwin: call winFinishScreenInitFB() directly 2025-06-12 16:42:24 +02:00
winshadgdi.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
wintaskbar.c hw/xwin: Use Bool type in winShowWindowOnTaskbar() prototype 2016-06-23 14:15:27 +01:00
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 Remove readmask from screen block/wakeup handler 2016-07-18 15:27:51 -04:00
winwindow.c xwin: fix missing include of mi/mi_priv.h 2025-06-12 16:43:20 +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