Bug fix. insecure strncmp 15/316815/2 accepted/tizen/9.0/unified/20241219.155920
authorJiyong <jiyong.min@samsung.com>
Wed, 18 Dec 2024 06:45:43 +0000 (15:45 +0900)
committerJiyong Min <jiyong.min@samsung.com>
Wed, 18 Dec 2024 07:16:30 +0000 (07:16 +0000)
commitb7b8cd3d42d5793aa1b5840b70f72a9dbe0ddb4b
tree8c23cc3e308c137660e1c9019c87d2506623a58f
parentc3722f639182ef6b8ac42721fd5276be2e979f8e
Bug fix. insecure strncmp

 - fix svace issue (LIB.INSECURE_STRNCMP)

The problem that such using checks only prefix of string because null-terminator is not checked.
It may be source of vulnarability when using for compariso passwords.
Correct pattern should use strlen(arg) + 1.

Change-Id: Ic9ac12468a6c81901e1c169097109e47a4c496fa
packaging/capi-media-controller.spec
svc/media_controller_db_util.c