xserver/fb
Enrico Weigelt, metux IT consult e64a51188a (!1909) fb: 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
..
fb.h (!1944) treewide: drop COMPOSITE symbol 2025-06-03 11:37:33 +02:00
fb_priv.h (!1954) fb: unexport fbGetScreenPixmap() macro 2025-06-03 11:37:32 +02:00
fballpriv.c (!1954) fb: unexport fbAllocatePrivates() 2025-06-03 11:37:32 +02:00
fbarc.c (!1954) fb: unexport fbGetGCPrivate() macro 2025-06-03 11:37:32 +02:00
fbbits.c
fbbits.h (!1954) fb: unexport fbGetGCPrivate() macro 2025-06-03 11:37:32 +02:00
fbblt.c (!1954) fb: move FbStipStrideToBitsStride() to fbblt.c 2025-06-03 11:37:32 +02:00
fbbltone.c
fbcmap_mi.c (!1954) fb: unexport fbListInstalledColormaps() 2025-06-03 11:37:32 +02:00
fbcopy.c (!1954) fb: unexport fbGetGCPrivate() macro 2025-06-03 11:37:32 +02:00
fbfill.c (!1954) fb: unexport fbValidateDrawable() 2025-06-03 11:37:32 +02:00
fbfillrect.c
fbfillsp.c
fbgc.c (!1954) fb: unexport fbGetGCPrivate() macro 2025-06-03 11:37:32 +02:00
fbgetsp.c
fbglyph.c (!1954) fb: unexport fbGetGCPrivate() macro 2025-06-03 11:37:32 +02:00
fbimage.c (!1954) fb: unexport FbBitsStrideToStipStride() macro 2025-06-03 11:37:32 +02:00
fbline.c
fboverlay.c (!1909) fb: use calloc() instead of malloc() 2025-06-03 11:37:33 +02:00
fboverlay.h (!1957) fb: overlay: drop unused fbOverlaySetupScreen() 2025-06-03 11:37:32 +02:00
fbpict.c (!1962) fb: pict: make fbGlyphs() static 2025-06-03 11:37:32 +02:00
fbpict.h (!1962) fb: pict: make fbGlyphs() static 2025-06-03 11:37:32 +02:00
fbpict_priv.h (!1962) fb: pict: unexport fbTriangles() 2025-06-03 11:37:32 +02:00
fbpixmap.c (!1944) treewide: drop COMPOSITE symbol 2025-06-03 11:37:33 +02:00
fbpoint.c (!1954) fb: unexport FbBitsStrideToStipStride() macro 2025-06-03 11:37:32 +02:00
fbpush.c (!1954) fb: unexport FbBitsStrideToStipStride() macro 2025-06-03 11:37:32 +02:00
fbrop.h
fbscreen.c (!1954) fb: unexport fbAllocatePrivates() 2025-06-03 11:37:32 +02:00
fbseg.c (!1954) fb: unexport fbGetGCPrivate() macro 2025-06-03 11:37:32 +02:00
fbsetsp.c (!1954) fb: unexport fbValidateDrawable() 2025-06-03 11:37:32 +02:00
fbsolid.c
fbtile.c
fbtrap.c (!1962) fb: pict: unexport fbRasterizeTrapezoid() 2025-06-03 11:37:32 +02:00
fbutil.c
fbwindow.c (!1944) treewide: drop COMPOSITE symbol 2025-06-03 11:37:33 +02:00
meson.build
wfbrename.h (!1957) fb: overlay: drop unused fbOverlaySetupScreen() 2025-06-03 11:37:32 +02:00