xserver/fb
Enrico Weigelt, metux IT consult c4c5f03cb7 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-12 16:48:17 +02:00
..
fb.h treewide: drop COMPOSITE symbol 2025-06-12 16:47:01 +02:00
fb_priv.h fb: unexport fbGetScreenPixmap() macro 2025-06-12 16:41:12 +02:00
fballpriv.c fb: unexport fbAllocatePrivates() 2025-06-12 16:40:09 +02:00
fbarc.c fb: unexport fbGetGCPrivate() macro 2025-06-12 16:41:09 +02:00
fbbits.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbbits.h fb: unexport fbGetGCPrivate() macro 2025-06-12 16:41:09 +02:00
fbblt.c fb: move FbStipStrideToBitsStride() to fbblt.c 2025-06-12 16:40:17 +02:00
fbbltone.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbcmap_mi.c fb: unexport fbListInstalledColormaps() 2025-06-12 16:40:12 +02:00
fbcopy.c fb: unexport fbGetGCPrivate() macro 2025-06-12 16:41:09 +02:00
fbfill.c fb: unexport fbValidateDrawable() 2025-06-12 16:39:59 +02:00
fbfillrect.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbfillsp.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbgc.c fb: unexport fbGetGCPrivate() macro 2025-06-12 16:41:09 +02:00
fbgetsp.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbglyph.c fb: unexport fbGetGCPrivate() macro 2025-06-12 16:41:09 +02:00
fbimage.c fb: unexport FbBitsStrideToStipStride() macro 2025-06-12 16:40:20 +02:00
fbline.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fboverlay.c fb: use calloc() instead of malloc() 2025-06-12 16:48:17 +02:00
fboverlay.h fb: overlay: drop unused fbOverlaySetupScreen() 2025-06-12 16:36:17 +02:00
fbpict.c fb: pict: make fbGlyphs() static 2025-06-12 16:35:29 +02:00
fbpict.h fb: pict: make fbGlyphs() static 2025-06-12 16:35:29 +02:00
fbpict_priv.h fb: pict: unexport fbTriangles() 2025-06-12 16:35:19 +02:00
fbpixmap.c treewide: drop COMPOSITE symbol 2025-06-12 16:47:01 +02:00
fbpoint.c fb: unexport FbBitsStrideToStipStride() macro 2025-06-12 16:40:20 +02:00
fbpush.c fb: unexport FbBitsStrideToStipStride() macro 2025-06-12 16:40:20 +02:00
fbrop.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
fbscreen.c fb: unexport fbAllocatePrivates() 2025-06-12 16:40:09 +02:00
fbseg.c fb: unexport fbGetGCPrivate() macro 2025-06-12 16:41:09 +02:00
fbsetsp.c fb: unexport fbValidateDrawable() 2025-06-12 16:39:59 +02:00
fbsolid.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbtile.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbtrap.c fb: pict: unexport fbRasterizeTrapezoid() 2025-06-12 16:35:11 +02:00
fbutil.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbwindow.c treewide: drop COMPOSITE symbol 2025-06-12 16:47:01 +02:00
meson.build Revert "fb: Remove even/odd tile slow-pathing" 2023-04-19 15:33:59 +00:00
wfbrename.h fb: overlay: drop unused fbOverlaySetupScreen() 2025-06-12 16:36:17 +02:00