Enrico Weigelt, metux IT consult
8c05f4db0a
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-06-12 16:49:27 +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
xfree86: modeset: call miCreateScreenResources() directly
2025-06-12 16:41:39 +02:00
miarc.c
mi: use calloc() instead of malloc()
2025-06-12 16:49:27 +02:00
micmap.c
mi: use calloc() instead of malloc()
2025-06-12 16:49:27 +02:00
micmap.h
mi: unexport SetInstalledmiColormap() macro
2025-02-06 16:45:20 +02:00
micoord.h
micopy.c
midash.c
mi: unexport miStepDash()
2025-02-06 16:45:20 +02:00
midispcur.c
mi: use CloseScreen hook
2025-06-12 16:45:32 +02:00
mieq.c
dix: unexport SetInputCheck() and make it inline
2025-06-12 16:20:09 +02:00
miexpose.c
treewide: drop COMPOSITE symbol
2025-06-12 16:47:01 +02:00
mifillarc.c
mi: use calloc() instead of malloc()
2025-06-12 16:49:27 +02:00
mifillarc.h
mifpoly.h
migc.c
mi: use dixDestroyPixmap() instead of direct driver call
2025-02-12 17:48:30 +01:00
migc.h
miglblt.c
mi: use dixDestroyPixmap() instead of direct driver call
2025-02-12 17:48:30 +01:00
miinitext.c
treewide: drop COMPOSITE symbol
2025-06-12 16:47:01 +02:00
miinitext.h
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-06-12 16:49:27 +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-06-12 16:49:27 +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
mipoly.c
mi: use calloc() instead of malloc()
2025-06-12 16:49:27 +02:00
mipoly.h
mi: NULL-protect miFillGeneralPoly()
2025-06-12 16:31:29 +02:00
mipolypnt.c
mipolyrect.c
mipolyseg.c
mipolytext.c
mipushpxl.c
mi: use calloc() instead of malloc()
2025-06-12 16:49:27 +02:00
miscanfill.h
miscrinit.c
mi: use calloc() instead of malloc()
2025-06-12 16:49:27 +02:00
misprite.c
mi: use calloc() instead of malloc()
2025-06-12 16:49:27 +02:00
misprite.h
mistruct.h
mivalidate.h
mivaltree.c
treewide: drop COMPOSITE symbol
2025-06-12 16:47:01 +02:00
miwideline.c
mi: miwideline: fix uninitialized fields in miWideLine()
2025-06-12 16:31:32 +02:00
miwideline.h
miwindow.c
treewide: drop COMPOSITE symbol
2025-06-12 16:47:01 +02:00
mizerarc.c
mi: unexport miWideArc()
2025-02-06 16:45:20 +02:00
mizerarc.h
mizerclip.c
mi: miline.h: unexport only locally used macros
2025-02-06 22:18:11 +00:00
mizerline.c