]> git.sur5r.net Git - u-boot/commit
image: Protect against overflow in unknown_msg()
authorSimon Glass <sjg@chromium.org>
Mon, 31 Oct 2016 16:21:09 +0000 (10:21 -0600)
committerTom Rini <trini@konsulko.com>
Sat, 5 Nov 2016 11:27:43 +0000 (07:27 -0400)
commitae3de0d8caf1822da076b2cc947ea89a0b560e05
tree8348f8a2ccd74d8b9767bbdb0444053efa8a2959
parenteb9e699ff14436c3417c949120c226531e81f614
image: Protect against overflow in unknown_msg()

Coverity complains that this can overflow. If we later increase the size
of one of the strings in the table, it could happen.

Adjust the code to protect against this.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reported-by: Coverity (CID: 150964)
common/image.c