barebox-state: backend_raw: init digest earlier
In backend_format_raw_pack() digest_length is used before it's
initialized in backend_raw_digest_init() which results in a too small
memory allocation for the raw backend. Fix this and prevent a memory
corruption.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent f703b2c commit bfb82d544d6b8000bce57c45c52a4008289da856
@Sascha Hauer Sascha Hauer authored on 24 Apr 2017
Showing 1 changed file
View
src/barebox-state/backend_format_raw.c