]> git.dujemihanovic.xyz Git - u-boot.git/commit
hash: Ensure verification hex pairs are terminated
authorSimon Glass <sjg@chromium.org>
Sat, 24 Jul 2021 15:03:28 +0000 (09:03 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 2 Aug 2021 17:31:32 +0000 (13:31 -0400)
commit031725f8cdf33e836d19f35d3fe82c5baa5a2976
tree011d6f7d748bdc87fd5efcac5c8df758505cbc37
parent73994c452fc5a960114360a651201ac48b135e81
hash: Ensure verification hex pairs are terminated

This function seems to assume that the chr[] variable contains zeros at
the start, which is not always true. Use strlcpy() to be safe.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/hash.c