util: resource: Check validation of resource control id 16/278516/4
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 20 Jul 2022 03:56:22 +0000 (12:56 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Sun, 7 Aug 2022 20:32:13 +0000 (05:32 +0900)
commite7976a043eb67e73b885a3d5a9a8df15bfa447f7
tree8ab16d8a8f70040f027dc2b51b98b9a47edfa12e
parent3e2a6f1dc62fc03d818d9024e129abf82a0dceb6
util: resource: Check validation of resource control id

When uses the wrong resource control id by client, crash happen
because the invalid array index is used. In order to prevent crash
issue, check the validation of resource control id.

Change-Id: I621757bb17b054dafb246ceac57d3eabf419fc31
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/util/resource.c