Skip to content

fix: Break when configured max MBR/EBR partitions are found #83

Merged
kstribrnAmzn merged 2 commits into
FreeRTOS:mainfrom
kstribrnAmzn:mbrWriteLimit
Jun 24, 2026
Merged

fix: Break when configured max MBR/EBR partitions are found #83
kstribrnAmzn merged 2 commits into
FreeRTOS:mainfrom
kstribrnAmzn:mbrWriteLimit

Conversation

@kstribrnAmzn

@kstribrnAmzn kstribrnAmzn commented Jun 23, 2026

Copy link
Copy Markdown
Member

Description

Previously the code would break from the inner loop but reenter
due to the outer while loop in FF_ParseExtended. This could result
in writing outside of the configured storage area.

Thanks @Eun0us for help in identifying this miss.

Test Steps

Added unit test coverage for modified API. The unit tests are now run during the Github CI workflow.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Previously the code would break from the inner loop but reenter
due to the outer while loop in `FF_ParseExtended`. This could result
in writing outside of the configured storage area.
@archigup

Copy link
Copy Markdown
Member

Adding unit testing infra and adding the fix+test should be separate commits

@kstribrnAmzn

kstribrnAmzn commented Jun 24, 2026

Copy link
Copy Markdown
Member Author

I'm going to merge this in as two commits. 1 for the fix and 1 for the test + infra. I realize the tests one is big but I don't see the point in having a standalone testing infra. In this case the infra is being created because we have introduced a test.

I'll fold the formatting changes into their respective commits.

@kstribrnAmzn

Copy link
Copy Markdown
Member Author

Rebased the formatting changes into the test commit since that was all it touched. Had to force push.

@kstribrnAmzn kstribrnAmzn merged commit 6608ffe into FreeRTOS:main Jun 24, 2026
6 checks passed
@kstribrnAmzn kstribrnAmzn deleted the mbrWriteLimit branch June 24, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants