Check the potential integer overflows in MCUboot code base, where arithmetic operation are done with input parameters. Image header and TLV area is considered to be input parameters.
Introduce generic checker function and use those one where necessary.