FWU: check the TLV payload length sanity

The TLV payload length is used without performing checks against a
potential underflow or overflow.

This change checks the payload length sanity.

Change-Id: Ibe16f97cec23234de6d1f74b15ac399bbdd4b8b8
Signed-off-by: Amjad Ouled-Ameur <amjad.ouled-ameur@arm.com>
1 file changed