Revision 41c5305cc3d827d2ea686533777a285176ae01a0 authored by Ranjani Sridharan on 12 May 2023, 11:46:30 UTC, committed by Mark Brown on 15 May 2023, 01:21:15 UTC
Topology could have more instances of the tokens being searched for than
the number of sets that need to be copied. Stop copying token after the
limit of number of token instances has been reached. This worked before
only by chance as we had allocated more size for the tuples array than
the number of actual tokens being parsed.

Fixes: 7006d20e5e9d ("ASoC: SOF: Introduce IPC3 ops")
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com
Link: https://lore.kernel.org/r/20230512114630.24439-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org
1 parent 171b53b
History
File Mode Size
.gitignore -rw-r--r-- 120 bytes
Kconfig -rw-r--r-- 5.4 KB
Makefile -rw-r--r-- 3.2 KB
blacklist.c -rw-r--r-- 9.5 KB
blacklist.h -rw-r--r-- 135 bytes
blacklist_hashes.c -rw-r--r-- 147 bytes
check-blacklist-hashes.awk -rwxr-xr-x 1.0 KB
default_x509.genkey -rw-r--r-- 407 bytes
extract-cert.c -rw-r--r-- 3.7 KB
revocation_certificates.S -rw-r--r-- 495 bytes
system_certificates.S -rw-r--r-- 1017 bytes
system_keyring.c -rw-r--r-- 10.3 KB

back to top