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

Missing canary check #7

Open
Liberalsin opened this issue May 4, 2024 · 0 comments
Open

Missing canary check #7

Liberalsin opened this issue May 4, 2024 · 0 comments

Comments

@Liberalsin
Copy link

The check to see if the stack was smashed also needs to be at the end of coru_resume(). It's not enough to put it only in coru_yield().

// check canary, if this fails a stack overflow occured
CORU_ASSERT(!coru_active->canary ||
        *coru_active->canary == (uintptr_t)0x636f7275);
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

No branches or pull requests

1 participant