diff --git a/tests/fwdata_parser_tests.c b/tests/fwdata_parser_tests.c index 25526a5..8dcddad 100644 --- a/tests/fwdata_parser_tests.c +++ b/tests/fwdata_parser_tests.c @@ -39,6 +39,9 @@ static int group_setup(void **state) goto fail; } + img->buffer = (const uint8_t *)header; + img->buffer_len = IMAGE_SIZE; + img->layout.table[FWU_FPT_ENTRY_FW_DATA_IMAGE].content = (uint8_t *)header; img->layout.table[FWU_FPT_ENTRY_IMAGE_INFO].content = (uint8_t *)metadata; *state = img;