tools: imx8image: fix coverity CID 184234
authorPeng Fan <peng.fan@nxp.com>
Mon, 5 Nov 2018 09:53:25 +0000 (09:53 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 6 Nov 2018 10:23:45 +0000 (11:23 +0100)
commitdf439e938ceb5165297c3e34b6485af0238608ef
treeeca3e3b99f945694622f28b6be40c574aaf321ed
parentfc61cc2ca3bab8fdf38572eb1ccfa6674999c8b8
tools: imx8image: fix coverity CID 184234

Fix:
CID 184234:    (TAINTED_SCALAR)
Using tainted variable "header.num_images - 1" as an index into an array "header.img".

Reported-by: Coverity
Signed-off-by: Peng Fan <peng.fan@nxp.com>
tools/imx8image.c