Commit 1b3ed63
committed
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 <tom.lierman@psicontrol.com>1 parent 85aecf6 commit 1b3ed63
File tree
2 files changed
+15
-0
lines changed- boot/bootutil/src
- docs/release-notes.d
2 files changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
990 | 990 | | |
991 | 991 | | |
992 | 992 | | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
993 | 1006 | | |
994 | 1007 | | |
995 | 1008 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments