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

varalloc: system calls do modify the stack pointer #892

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Conversation

vbgl
Copy link
Member

@vbgl vbgl commented Sep 5, 2024

Fixes #870.

@vbgl vbgl added bug stack-allocation The compiler pass that handles stack & pointers labels Sep 5, 2024
@vbgl vbgl added this to the 2024.07.1 milestone Sep 5, 2024
@vbgl vbgl requested a review from eponier September 9, 2024 07:48
Copy link
Contributor

@eponier eponier left a comment

Choose a reason for hiding this comment

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

I understand why you add a new condition, but not why you remove ra_on_stack. Can you explain why it is not there anymore?

@vbgl
Copy link
Member Author

vbgl commented Sep 9, 2024

You’re right. This change is unrelated, sorry. I’ve removed the condition because it is redundant with the previous one: ra_on_stack implies the stack size being non-zero.

Copy link
Contributor

@eponier eponier left a comment

Choose a reason for hiding this comment

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

Indeed, thanks!

@eponier
Copy link
Contributor

eponier commented Sep 9, 2024

(I have no problem shipping the cleaning in this PR, it was just not clear to me that it was correct or on purpose)

@eponier eponier merged commit c41ad80 into main Sep 9, 2024
1 check passed
@eponier eponier deleted the fix-870 branch September 9, 2024 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stack-allocation The compiler pass that handles stack & pointers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot use #randombytes if there is no stack
2 participants