diff options
author | Michael van der Westhuizen <michael@smart-africa.com> | 2014-05-30 20:59:00 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-05 17:01:23 -0400 |
commit | 1de7bb4f27745336c6d9cd5c2088748fcdaf699d (patch) | |
tree | fdb9041975fb651d4e5f4c54fbe164f4e5914a3f /scripts | |
parent | d835e91d56c15d24b1880ef16837e4919fb76bcf (diff) | |
download | u-boot-imx-1de7bb4f27745336c6d9cd5c2088748fcdaf699d.zip u-boot-imx-1de7bb4f27745336c6d9cd5c2088748fcdaf699d.tar.gz u-boot-imx-1de7bb4f27745336c6d9cd5c2088748fcdaf699d.tar.bz2 |
Prevent a buffer overflow in mkimage when signing with SHA256
Due to the FIT_MAX_HASH_LEN constant not having been updated
to support SHA256 signatures one will always see a buffer
overflow in fit_image_process_hash when signing images that
use this larger hash. This is exposed by vboot_test.sh.
Signed-off-by: Michael van der Westhuizen <michael@smart-africa.com>
Acked-by: Simon Glass <sjg@chromium.org>
[trini: Rework a bit so move the exportable parts of hash.h outside of
!USE_HOSTCC and only need that as a new include to image.h]
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions