xserver/hw/xwin/glx
Enrico Weigelt, metux IT consult 5377ee4d81 xwin: 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:50:05 +02:00
..
.gitignore hw/xwin/glx: Update .gitignore 2014-08-29 13:49:08 +01:00
dri_helpers.c Add Windows-DRI extension 2016-09-15 20:10:29 +01:00
dri_helpers.h Add Windows-DRI extension 2016-09-15 20:10:29 +01:00
gen_gl_wrappers.py gen_gl_wrappers: remove unused imports 2022-04-02 18:06:30 +00:00
glshim.c meson: Add dependency on generated code fragments in hw/xwin/glx/ 2017-12-13 11:32:53 -05:00
glthunk.c meson: Add dependency on generated code fragments in hw/xwin/glx/ 2017-12-13 11:32:53 -05:00
glwindows.h hw/xwin: Add an idempotency guard to glwindows.h 2014-08-29 13:40:26 +01:00
indirect.c xwin: use calloc() instead of malloc() 2025-06-12 16:50:05 +02:00
indirect.h xwin: glx: drop glxWinUnrealizeWindow() 2025-06-12 16:42:20 +02:00
meson.build build: Switch to meson 0.56 2024-01-08 10:38:05 +00:00
wgl_ext_api.c meson: Add dependency on generated code fragments in hw/xwin/glx/ 2017-12-13 11:32:53 -05:00
wgl_ext_api.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
winpriv.c hw/xwin: Remove mwextwm mode 2019-05-01 14:06:15 +00:00
winpriv.h Add Windows-DRI extension 2016-09-15 20:10:29 +01:00