Commit 9ac7296
boot: bootutil: loader: Fix bootstrap copying in swap move mode
Previously, the copy size was calculated using the primary region size,
which could be larger than the secondary region. This fix ensures that
the size of the secondary region (excluding the swap sector) is used,
preventing over-copying and related issues during image upgrade or
bootstrap operations.
Signed-off-by: LIERMAN Tom <[email protected]>
Signed-off-by: David Brown <[email protected]>
Signed-off-by: Jamie McCrae <[email protected]>1 parent 3f69203 commit 9ac7296
File tree
2 files changed
+23
-0
lines changed- boot/bootutil/src
- docs/release-notes.d
2 files changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
991 | 991 | | |
992 | 992 | | |
993 | 993 | | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
994 | 1015 | | |
995 | 1016 | | |
996 | 1017 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments