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

Fix _stack_end usage and doc #577

Merged

Conversation

tlevora
Copy link
Contributor

@tlevora tlevora commented Feb 8, 2025

  1. paint-stack feature used __sheap as a lower boundary. It is not an error
    until the _stack_end is overrided by cortex-m-rt user. If overrided, it
    can potentially cause writting over memory between __sheap and
    _stack_end addresses.

  2. _stack_end is checked for being less or equal to _stack_start, but
    documentation declared _stack_end is not used internally.

1) `paint-stack` feature used `__sheap` as a lower boundary. It is not an error
  until the `_stack_end` is overrided by `cortex-m-rt` user. If overrided, it
  can potentially cause writting over memory between `__sheap` and
  `_stack_end` addresses.

2) `_stack_end` was checked for being less or equal to `_stack_start`, but
  documentation declared `_stack_end` is not used internally.
@tlevora tlevora requested a review from a team as a code owner February 8, 2025 23:36
Copy link
Member

@adamgreig adamgreig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good!

@adamgreig adamgreig added this pull request to the merge queue Feb 9, 2025
Merged via the queue into rust-embedded:master with commit f97bfe8 Feb 9, 2025
11 checks passed
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