sound: Replace insecure string comparison macro to strncmp 30/320630/3 accepted/tizen/9.0/unified/20241125.071518
authorYunhee Seo <yuni.seo@samsung.com>
Mon, 18 Nov 2024 04:13:57 +0000 (13:13 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Thu, 21 Nov 2024 10:44:12 +0000 (19:44 +0900)
commit2f4ca4f1a5a0a36d33c8f2d56aff48ce9796fe1a
tree68305b4f2793a11f7797554250cf4f5d42e26ce1
parent7153775f8a308de229a519d73780037fc4c23de4
sound: Replace insecure string comparison macro to strncmp

The MATCH macro from the libsyscommon was omitted secure string length comparison.
When comparing strings with the strncmp function,
it is safer to use a parameter length of strlen + 1.
For clear comparison, strings are compared by the length of the literal string.

Change-Id: I014c7a2d97a97584ba7f1f0c4a4b7b6681a69048
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/sound-parser.c