Skip to content

Commit

Permalink
lpc55-rot-startup: clear unused Handoff area when storing
Browse files Browse the repository at this point in the history
Fixes #1429
  • Loading branch information
mx-shift authored and cbiffle committed Jun 22, 2023
1 parent 39da7c7 commit ac346bc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/lpc55-rot-startup/src/handoff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ impl<'a> Handoff<'a> {
.expect("handoff store header");

// Serialize the data
n + hubpack::serialize(&mut dst[n..], t).expect("handoff store value")
let n = n + hubpack::serialize(&mut dst[n..], t)
.expect("handoff store value");

dst[n..].fill(0);

n
}
}

0 comments on commit ac346bc

Please sign in to comment.