Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootutil: fix swap with move reset issue #1597

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Commits on Feb 9, 2023

  1. bootutil: fix swap with move reset issue

    Fix a swap corruption which occurs on the swap move algorithm when a
    reset happens exactly at the point after the last move up, and its
    status update. On restart the image headers should be read at the 2nd
    sector of the primary slot, but due to lacking initialization it is
    read on the first sector, and then fails. This error was masked on the
    simulator because of the use of a global variable, which retained its
    value on a "reset simulation".
    
    Fixes mcu-tools#1588
    
    Signed-off-by: Fabio Utzig <utzig@apache.org>
    utzig committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    2acc3b6 View commit details
    Browse the repository at this point in the history