summaryrefslogtreecommitdiff
path: root/tools/zynqimage.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/zynqimage.c')
-rw-r--r--tools/zynqimage.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/zynqimage.c b/tools/zynqimage.c
index 021d2d3fc9..aa003a7543 100644
--- a/tools/zynqimage.c
+++ b/tools/zynqimage.c
@@ -147,6 +147,12 @@ static int zynqimage_verify_header(unsigned char *ptr, int image_size,
if (image_size < sizeof(struct zynq_header))
return -1;
+ if (zynqhdr->__reserved1 != 0)
+ return -1;
+
+ if (zynqhdr->__reserved2 != 0)
+ return -1;
+
if (zynqhdr->width_detection != HEADER_WIDTHDETECTION)
return -1;
if (zynqhdr->image_identifier != HEADER_IMAGEIDENTIFIER)