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

Use after free when printing heap objects #1014

Open
styrix560 opened this issue Apr 13, 2024 · 0 comments
Open

Use after free when printing heap objects #1014

styrix560 opened this issue Apr 13, 2024 · 0 comments
Labels
P: Compiler: VM Package: The VM executing Candy byte code (LIR)

Comments

@styrix560
Copy link
Collaborator

When trying to print objects on the heap in Heap::drop as described in #947, a use after free occurs.

To reproduce, add println!("{:?}", self.objects); in Heap::drop, before self.clear() and execute the following command: cargo r --release -- run packages/Examples/fibonacci.candy -- 10

@styrix560 styrix560 added the P: Compiler: VM Package: The VM executing Candy byte code (LIR) label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: Compiler: VM Package: The VM executing Candy byte code (LIR)
Projects
Status: No status
Development

No branches or pull requests

1 participant