imximage: check dcd_len as entries added
authorTroy Kisky <troy.kisky@boundarydevices.com>
Wed, 3 Oct 2012 15:47:03 +0000 (15:47 +0000)
committerStefano Babic <sbabic@denx.de>
Sat, 20 Oct 2012 15:13:01 +0000 (17:13 +0200)
commit4d5fa985361f320c2c9830828bb52979927a4c0e
treecc4bbc33fd21c171e11830e0e3194e65bd6a7042
parentc2cfe57e7ce8ea8550cb9b8cc1f35053abe7815f
imximage: check dcd_len as entries added

Before the len was checked after the entire file
was processed, so it could have already overflowed.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
tools/imximage.c