aboutsummaryrefslogtreecommitdiff
path: root/bl2/include
diff options
context:
space:
mode:
authorTamas Ban <tamas.ban@arm.com>2019-09-16 12:48:32 +0100
committerTamas Ban <tamas.ban@arm.com>2019-10-02 10:21:56 +0200
commit056ed0bd452e959446a2675bc7f8d3b576a9aca6 (patch)
tree6b64311eeea3025bbc50dc9309812d0accebc194 /bl2/include
parent576aaf978f79dfd5ff0d96e847b770f213b8cb33 (diff)
downloadtrusted-firmware-m-056ed0bd452e959446a2675bc7f8d3b576a9aca6.tar.gz
Boot: Check integer overflow
Validate the input parameters from users, which comes in the image header and image metadata (TLV) section, to avoid integer overflow. Change-Id: I1d1a48e8dbda2ced2620aa9fb19fda3bfbd801ab Signed-off-by: Tamas Ban <tamas.ban@arm.com>
Diffstat (limited to 'bl2/include')
-rw-r--r--bl2/include/boot_record.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/bl2/include/boot_record.h b/bl2/include/boot_record.h
index 217a20684c..8ec2e6f0c7 100644
--- a/bl2/include/boot_record.h
+++ b/bl2/include/boot_record.h
@@ -27,6 +27,7 @@ enum shared_memory_err_t {
SHARED_MEMORY_OK = 0,
SHARED_MEMORY_OVERFLOW = 1,
SHARED_MEMORY_OVERWRITE = 2,
+ SHARED_MEMORY_GEN_ERROR = 3,
/* This is used to force the maximum size */
TLV_TYPE_MAX = INT_MAX