sof/tools/logger
Kai Vehmanen 1a7a36a84c sof-logger: ensure NULL string is not passed to printf/fprintf
Due to allocation failures, or invalid content in dictionary,
"params" entries in "struct proc_ldc_entry" may be NULL.

In print_entry_params(), the NULL entries may be passed
as arguments to fprintf(). While e.g. glibc handles these without
error, this is not guaranteed behaviour and may result in segfault
on some platforms.

Fix the issue by aborting program if allocation fails and
explicitly handling the cases when asprintf_entry_text returns
NULL.

Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
2022-12-21 13:03:44 +00:00
..
CMakeLists.txt header: rtos: decouple headers into rtos specific directories. 2022-08-31 12:01:07 +01:00
config.h.in sof-logger: make inotify optional 2022-08-29 13:24:40 +01:00
convert.c sof-logger: ensure NULL string is not passed to printf/fprintf 2022-12-21 13:03:44 +00:00
convert.h logger: make "global_config" truly global 2022-12-21 09:36:27 +00:00
filter.c logger: make "global_config" truly global 2022-12-21 09:36:27 +00:00
filter.h logger: Create global convert_config variable to avoid spaghetti code. 2020-09-01 10:11:55 +01:00
logger.c logger: make "global_config" truly global 2022-12-21 09:36:27 +00:00
misc.c logger: make "global_config" truly global 2022-12-21 09:36:27 +00:00
misc.h logger: rename asprintf and vasprintf 2021-12-02 09:56:25 +00:00