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 ec01cbc commit e6cc84d8b751c76571c26e935261fd6f8cac67b7
@Sascha Hauer Sascha Hauer authored on 24 Apr 2017
Showing 1 changed file
View
common/state/backend_format_raw.c