uuid: Fix crashing if a NULL string is passed to bt_string_to_uuid
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 10 Feb 2022 00:03:45 +0000 (16:03 -0800)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commit0887c3646c42c9e71b8b79821e30754b800a6683
tree0d12528f94c0efe90d78996bde458b1a149ac742
parentc7917de15ffee4e99e8bd4d7db55c7db47f6179f
uuid: Fix crashing if a NULL string is passed to bt_string_to_uuid

bt_string_to_uuid shall chack if the string is valid before attempting
to access its contents.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
lib/uuid.c