xserver/hw/xfree86/parser
Enrico Weigelt, metux IT consult d8e6511b1b xfree86: 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:57 +02:00
..
Configint.h Fix spelling/wording issues 2020-07-05 13:07:33 -07:00
DRI.c Fix a double-free on syntax error without a new line. 2024-09-01 23:28:20 +00:00
Device.c xfree86: parser: rename IOBASE for fixing name conflict 2025-02-06 16:05:00 +00:00
Extensions.c Fix a double-free on syntax error without a new line. 2024-09-01 23:28:20 +00:00
Files.c xfree86: parser: check for alloc failure and possible NULL pointers 2025-06-12 16:33:26 +02:00
Flags.c xfree86: parser: check for alloc failure and possible NULL pointers 2025-06-12 16:33:26 +02:00
Input.c Fix a double-free on syntax error without a new line. 2024-09-01 23:28:20 +00:00
InputClass.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
Layout.c xfree86: parser: check for alloc failure and possible NULL pointers 2025-06-12 16:33:26 +02:00
Module.c xfree86: parser: check for alloc failure and possible NULL pointers 2025-06-12 16:33:26 +02:00
Monitor.c Fix a double-free on syntax error without a new line. 2024-09-01 23:28:20 +00:00
OutputClass.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
Pointer.c Fix a double-free on syntax error without a new line. 2024-09-01 23:28:20 +00:00
Screen.c Fix a double-free on syntax error without a new line. 2024-09-01 23:28:20 +00:00
Vendor.c Fix a double-free on syntax error without a new line. 2024-09-01 23:28:20 +00:00
Video.c Fix a double-free on syntax error without a new line. 2024-09-01 23:28:20 +00:00
configProcs.h os: log: replace VErrorF() by LogVMessageVerb() 2025-02-06 23:35:27 +00:00
meson.build Add a Meson build system alongside autotools. 2017-04-26 15:25:27 -07:00
read.c xfree86: parser: move private defs from xf86Parser.h to xf86Parser_priv.h 2025-02-06 23:51:34 +00:00
scan.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
write.c xfree86: parser: move private defs from xf86Parser.h to xf86Parser_priv.h 2025-02-06 23:51:34 +00:00
xf86Optrec.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xf86Parser.h xfree86: parser: move private defs from xf86Parser.h to xf86Parser_priv.h 2025-02-06 23:51:34 +00:00
xf86Parser_priv.h xfree86: parser: move private defs from xf86Parser.h to xf86Parser_priv.h 2025-02-06 23:51:34 +00:00
xf86tokens.h xfree86: parser: rename IOBASE for fixing name conflict 2025-02-06 16:05:00 +00:00