commit | 588fb81ab17e59884827877a36cc4d4a7578900b | [log] [tgz] |
---|---|---|
author | hui.liu <hui.liu@amlogic.com> | Tue Nov 12 15:38:27 2024 +0800 |
committer | gerrit autosubmit <gerrit.autosubmit@amlogic.com> | Fri Nov 15 03:40:06 2024 -0800 |
tree | 582addd9a015be3cdec6a3003a58c3ae6d7b0b8f | |
parent | 04811a9c42f990fcca1bd51e71cfda79bb2aa27e [diff] |
audio: Change strtok in audiohal to strtok_r [1/2] PD#SWPL-192409 Problem: 1.strtok is an unsafe function that affects the value of an incoming variable when it is called multiple times in the same thread. Solution: 1.Change strtok to strtok_r. 2.The third parameter of strtok_r stores the remaining contents of the input variable and is a thread-safe function. Verify: yocto Change-Id: If0fc37dffce780bf7f62542a54dd6b45c981751f Signed-off-by: hui.liu <hui.liu@amlogic.com>