21f94e7...
by
Ranjani Sridharan <email address hidden>
topology2: build the topologies in the right folder
The CAVS topologies need to be in the avs-tplg folder and the MTL
topologies need to be in sof-ace-tplg folder. Also, change the output
file names to the names expected by the kernel and the NHLT binary files
to match the topology file names.
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 <email address hidden>
(cherry picked from commit 1a7a36a84cfe31a6f6b40488300d5b6cd709250c)
fef93b2...
by
Guennadi Liakhovetski <email address hidden>
ipc: ipc4: do not access memory beyond object boudaries
With IPC4 only two 32-bit values are copied from the host in the
common part, anything beyond that must be copied separately. Those
two values are stored in a global msg_data.msg_in object. Therefore
always when reading from it only up to 8 bytes should be read. In
most cases it is also the case, because the target object has the
same size, but in case of SOF_IPC4_MOD_INIT_INSTANCE this isn't the
case, there special care must be taken.
Also remove a redundant NULL check where NULL cannot appear.
Signed-off-by: Guennadi Liakhovetski <email address hidden>
(cherry picked from commit 96686cfcde5a579649ef4504ba64572651689698)
Signed-off-by: Kai Vehmanen <email address hidden>
da690d2...
by
Guennadi Liakhovetski <email address hidden>
logger: check localtime() return value
localtime() can return NULL in error cases. Check the return value
before dereferencing it.
Signed-off-by: Guennadi Liakhovetski <email address hidden>
(cherry picked from commit 84b2dd2ae94ccc4101f44ecbea9564ffdd87d754)
Signed-off-by: Kai Vehmanen <email address hidden>