Skip to content

Commit 6a1d53b

Browse files
committed
fix: the program distinguishes padding from app
Signed-off-by: Mohamed Daoudo <mohamed.daoudo@stud.fils.upb.ro>
1 parent 4477a41 commit 6a1d53b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tockloader-lib/src/attributes/app_attributes.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ impl AppAttributes {
117117
// crash the process.
118118
let binary_end_offset = header.get_binary_end();
119119

120+
match &header {
121+
TbfHeader::TbfHeaderV2(_hd) => {}
122+
_ => {
123+
appaddr += total_size as u64;
124+
continue;
125+
}
126+
};
127+
120128
let mut footers: Vec<TbfFooter> = vec![];
121129
let total_footers_size = total_size - binary_end_offset;
122130
let mut footer_offset = binary_end_offset;

0 commit comments

Comments
 (0)