xserver/mi
Enrico Weigelt, metux IT consult 6b451da19c mi: 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-05-22 18:59:03 +02:00
..
meson.build Revert "mi: drop now obsolete mioverlay.c" 2025-02-27 11:53:54 +00:00
mi.h mi: unexport miXYToWindow() 2025-02-06 16:45:20 +02:00
mi_priv.h mi: unexport SetInstalledmiColormap() macro 2025-02-06 16:45:20 +02:00
miarc.c mi: use calloc() instead of malloc() 2025-05-22 18:59:03 +02:00
micmap.c mi: use calloc() instead of malloc() 2025-05-22 18:59:03 +02:00
micmap.h mi: unexport SetInstalledmiColormap() macro 2025-02-06 16:45:20 +02:00
micoord.h mi: Remove semi-arbitrary arch awareness in packed coordinate macros 2014-07-28 12:20:44 -07:00
micopy.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
midash.c mi: unexport miStepDash() 2025-02-06 16:45:20 +02:00
midispcur.c mi: use dixDestroyPixmap() instead of direct driver call 2025-02-12 17:48:30 +01:00
mieq.c os: move BUG_*() macros to own private header 2025-02-17 19:32:48 +00:00
miexpose.c mi: miexpose: fix FTBS w/ rootless helper 2025-02-08 15:15:57 +00:00
mifillarc.c mi: use calloc() instead of malloc() 2025-05-22 18:59:03 +02:00
mifillarc.h mi: Unexport arc fill implementation details 2014-10-27 15:45:21 -04:00
mifpoly.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
migc.c mi: use dixDestroyPixmap() instead of direct driver call 2025-02-12 17:48:30 +01:00
migc.h mi: Add include guards to migc.h 2017-02-16 15:10:32 -05:00
miglblt.c mi: use dixDestroyPixmap() instead of direct driver call 2025-02-12 17:48:30 +01:00
miinitext.c Xext: drop disable flag for GE extension 2025-02-26 13:34:19 +00:00
miinitext.h mi: List extensions in usage message 2021-01-29 12:52:09 +00:00
miline.h mi: miline.h: drop DEFAULTZEROLINEBIAS from public header 2025-02-06 22:18:12 +00:00
mioverlay.c mi: use calloc() instead of malloc() 2025-05-22 18:59:03 +02:00
mioverlay.h Revert "mi: drop obsolete miInitOverlay()" 2025-02-27 11:53:54 +00:00
mipointer.c mi: use calloc() instead of malloc() 2025-05-22 18:59:03 +02:00
mipointer.h mi: (re)export and document miPointerInitialize() 2025-02-13 23:53:39 +00:00
mipointer_priv.h mi: (re)export and document miPointerInitialize() 2025-02-13 23:53:39 +00:00
mipointrst.h dix: Update some comments to reflect the new non-SIGIO input model 2016-06-08 11:36:32 -04:00
mipoly.c mi: use calloc() instead of malloc() 2025-05-22 18:59:03 +02:00
mipoly.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
mipolypnt.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipolyrect.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipolyseg.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipolytext.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
mipushpxl.c mi: use calloc() instead of malloc() 2025-05-22 18:59:03 +02:00
miscanfill.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
miscrinit.c mi: use calloc() instead of malloc() 2025-05-22 18:59:03 +02:00
misprite.c mi: use calloc() instead of malloc() 2025-05-22 18:59:03 +02:00
misprite.h mi: misprite.h: drop unnecessary extern on functions 2024-10-10 14:44:52 +00:00
mistruct.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
mivalidate.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mivaltree.c mi: unexport miShapedWindowIn() 2025-02-06 16:45:20 +02:00
miwideline.c mi: unexport miStepDash() 2025-02-06 16:45:20 +02:00
miwideline.h mi: Fold mispans.c into miwideline.c 2014-10-27 15:45:22 -04:00
miwindow.c mi: unexport miClearToBackground() 2025-02-06 16:45:20 +02:00
mizerarc.c mi: unexport miWideArc() 2025-02-06 16:45:20 +02:00
mizerarc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
mizerclip.c mi: miline.h: unexport only locally used macros 2025-02-06 22:18:11 +00:00
mizerline.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00