Commit 0f51a06 ("Separate common and format-dependent functions") performed a substantial amount of refactoring. Within the CFFOLDER header construction loop in cab_add_header(), the line
tmp = GET_UINT32_LE(indata + i);
seems to have been accidentally deleted, instead of being refactored to become
tmp = GET_UINT32_LE(ctx->options->indata + i);
with the result that adding a signature to a .cab file will currently produce an invalid .cab file.
Commit 0f51a06 ("Separate common and format-dependent functions") performed a substantial amount of refactoring. Within the CFFOLDER header construction loop in cab_add_header(), the line
tmp = GET_UINT32_LE(indata + i);
seems to have been accidentally deleted, instead of being refactored to become
tmp = GET_UINT32_LE(ctx->options->indata + i);
with the result that adding a signature to a .cab file will currently produce an invalid .cab file.
Fix by adding back in the missing line of code.
Fixes: #289