Fix crash issue 17/266917/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 22 Nov 2021 09:23:07 +0000 (18:23 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 22 Nov 2021 09:27:25 +0000 (18:27 +0900)
commit91c8a50b1948653765bccdf51166b8a0b88eaf7e
treec0f81e5cdc6784f1f6d4d61356888439322fbb4d
parent06fae5ef570b9e0da4f81227f04b211af341688d
Fix crash issue

If the s1 argument of the strcmp() is nullptr, the caller process
will have crashed. To prevent crash issues, this patch adds the
exception handling to check whether the variable is nullptr or not.

Change-Id: I8d81844466aa5056f08528afe23ec25810dfd6d2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/modules/share/src/amd_share.c