Skip to content

embed: improve stack top estimation #13653

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

Merged
merged 1 commit into from
Feb 14, 2024
Merged

Conversation

yamt
Copy link
Contributor

@yamt yamt commented Feb 13, 2024

Fixes: #11781

Copy link

codecov bot commented Feb 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (be8d660) 98.36% compared to head (d2a3cd7) 98.36%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #13653   +/-   ##
=======================================
  Coverage   98.36%   98.36%           
=======================================
  Files         159      159           
  Lines       21069    21069           
=======================================
  Hits        20724    20724           
  Misses        345      345           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dpgeorge
Copy link
Member

Thanks for the patch, this looks like a good solution to that issue. It forces the user to think about the stack top pointer.

Obtaining the stack-top via a few function calls may yield a pointer which
is too deep within the stack.  So require the user to obtain it from a
higher level (or via some other means).

Fixes issue micropython#11781.

Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
@dpgeorge dpgeorge merged commit d2a3cd7 into micropython:master Feb 14, 2024
@cwalther
Copy link
Contributor

Thanks! I will integrate this into #11430 when I get the time.

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.

ports/embed: segfault in mp_compile()
3 participants