xserver/fb
Enrico Weigelt, metux IT consult fb3bbd5ec1 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-05-22 18:58:08 +02:00
..
fb.h Revert "fb: Declare wfbFinishScreenInit, wfbScreenInit for !FB_ACCESS_WRAPPER" 2024-11-08 17:42:09 +00:00
fballpriv.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbarc.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbbits.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbbits.h fb: Remove 24bpp support (v3) 2017-03-17 15:14:42 -04:00
fbblt.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbbltone.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbcmap_mi.c mi: unexport miExpandDirectColors() 2025-02-06 16:45:20 +02:00
fbcopy.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbfill.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00: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 drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbgetsp.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbglyph.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbimage.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00: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-05-22 18:58:08 +02:00
fboverlay.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
fbpict.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbpict.h fb: remove some superfluous empty lines 2017-05-29 13:52:55 +10:00
fbpixmap.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbpoint.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbpush.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbrop.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
fbscreen.c dix: unexport Ones() 2024-10-26 16:35:57 +00:00
fbseg.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbsetsp.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00: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 drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbutil.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
fbwindow.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
meson.build Revert "fb: Remove even/odd tile slow-pathing" 2023-04-19 15:33:59 +00:00
wfbrename.h Revert "fb: Remove even/odd tile slow-pathing" 2023-04-19 15:33:59 +00:00