Skip to content

Commit

Permalink
[FL-3543] Check the filetype of the update manifest (#3025)
Browse files Browse the repository at this point in the history
Co-authored-by: あく <[email protected]>
  • Loading branch information
Astrrra and skotopes authored Sep 1, 2023
1 parent 809418b commit 7aa55eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/update_util/update_manifest.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ static bool

FuriString* filetype;

// TODO FL-3543: compare filetype?
filetype = furi_string_alloc();
update_manifest->valid =
flipper_format_read_header(flipper_file, filetype, &update_manifest->manifest_version) &&
furi_string_cmp_str(filetype, "Flipper firmware upgrade configuration") == 0 &&
flipper_format_read_string(flipper_file, MANIFEST_KEY_INFO, update_manifest->version) &&
flipper_format_read_uint32(
flipper_file, MANIFEST_KEY_TARGET, &update_manifest->target, 1) &&
Expand Down

0 comments on commit 7aa55eb

Please sign in to comment.