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

Avoid broken stack at few places #7353

Merged
merged 3 commits into from
Aug 26, 2024

Conversation

catap
Copy link
Contributor

@catap catap commented Aug 25, 2024

Here a similar fixes which I had discovered in the codebase. All of them follow the pattern: an object is allocated on the stack, but stored as pointer. As result an access to it may lead to crash, or write into it brokes the stack.

@catap catap changed the title Avoid broken stack by degree_lit_num_lt Avoid broken stack at few places Aug 26, 2024
@catap
Copy link
Contributor Author

catap commented Aug 26, 2024

@microsoft-github-policy-service agree

@catap catap force-pushed the nlsat-solver-stack branch 5 times, most recently from 13319ec to 3656a26 Compare August 26, 2024 16:14
NikolajBjorner added a commit that referenced this pull request Aug 26, 2024
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
@NikolajBjorner NikolajBjorner merged commit cff1e92 into Z3Prover:master Aug 26, 2024
7 of 20 checks passed
Copy link
Contributor

@levnach levnach left a comment

Choose a reason for hiding this comment

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

It is a good change.

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.

3 participants