dynamic-partitions: testlib: Fix overflow coverity issue 03/308403/1
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 25 Mar 2024 02:07:58 +0000 (11:07 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 25 Mar 2024 02:11:31 +0000 (11:11 +0900)
commit60ebd6d7bb4fdeb69f8c1b9f647a3c88eeb99d2b
tree95b2ea8b2f9c84dfcf253e7e8bf6dd5884ad742b
parent1aa13f82eed8be03f50d7e54e8782ad0403a15a2
dynamic-partitions: testlib: Fix overflow coverity issue

It should be overflow according to multiply number_of_parts by
PART_SIZE_B. The  type of  number_of_parts is 'int'. To prevent
incorrect operation, cast a proper type.

Change-Id: I8fd44cc7622b25631f49f7df670a7a5bf435997e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
src/dynamic-partitions/testlib/metadataio.cpp