Skip to content

embed: improve stack top estimation - #13653

Merged
dpgeorge merged 1 commit into
micropython:masterfrom
yamt:embed-stcak-top
Feb 14, 2024
Merged

dpgeorge merged 1 commit into
micropython:masterfrom
yamt:embed-stcak-top

Conversation

@yamt

@yamt yamt commented Feb 13, 2024

Copy link
Copy Markdown
Contributor

Fixes: #11781

@codecov

codecov Bot commented Feb 13, 2024 •

Copy link
Copy Markdown

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
Copy Markdown
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 <[email protected]>
@dpgeorge
dpgeorge merged commit d2a3cd7 into micropython:master Feb 14, 2024
@cwalther

Copy link
Copy Markdown
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