-
Notifications
You must be signed in to change notification settings - Fork 784
serial recovery: Add unaligned stack buffer writing #1533
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
Conversation
b42987f
to
46bf7e8
Compare
Fixes a bug when writing to devices which have memory alignment requirements with data being using directly from a zcbor-response whereby the alignment of the buffer data does not meet the requirements of the flash driver. Upstream PR: mcu-tools/mcuboot#1533 Signed-off-by: Jamie McCrae <[email protected]>
Fixes a bug when writing to devices which have memory alignment requirements with data being using directly from a zcbor-response whereby the alignment of the buffer data does not meet the requirements of the flash driver. Upstream PR: mcu-tools/mcuboot#1533 Signed-off-by: Jamie McCrae <[email protected]>
46bf7e8
to
10d7b79
Compare
Fixes a bug when writing to devices which have memory alignment requirements with data being using directly from a zcbor-response whereby the alignment of the buffer data does not meet the requirements of the flash driver. Signed-off-by: Jamie McCrae <[email protected]>
10d7b79
to
0c1c5f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm afraid that the patch doesn't take into account the rem_bytes
and its procedure.
That part of the code is unchanged, rem_bytes is set before this code runs, so if it is set then it will run like usual after the main write loop |
Fixes a bug when writing to devices which have memory alignment requirements with data being using directly from a zcbor-response whereby the alignment of the buffer data does not meet the requirements of the flash driver. Upstream PR: mcu-tools/mcuboot#1533 Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 11c5149)
@nvlsianpu any comments? |
Fixes a bug when writing to devices which have memory alignment requirements with data being using directly from a zcbor-response whereby the alignment of the buffer data does not meet the requirements of the flash driver. Upstream PR: mcu-tools/mcuboot#1533 Signed-off-by: Jamie McCrae <[email protected]> (cherry picked from commit 11c5149)
Fixes a bug when writing to devices which have memory alignment requirements with data being using directly from a zcbor-response whereby the alignment of the buffer data does not meet the requirements of the flash driver.
Fixes #1532