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

fix debug frames for uninitialized variables #117

Merged
merged 11 commits into from
Jan 13, 2024
Merged

Conversation

DanielSchiavini
Copy link
Collaborator

@DanielSchiavini DanielSchiavini commented Jan 12, 2024

What I did

I experienced issues when boa tried to print debug frames before a specific dyn array is initialized.
The memory might contain a very large length, which causes boa to loop forever.

How I did it

I created a minimal reproduction in unit test and fixed it by handling unexpected array lengths.

How to verify it

Tests included

Description for the changelog

Fix endless loops when debugging uninitialized variables

Cute Animal Picture

image

@charles-cooper charles-cooper changed the title Fix debug frames before array initialization fix debug frames for uninitialized variables Jan 13, 2024
@charles-cooper charles-cooper merged commit 47f91a2 into master Jan 13, 2024
6 of 10 checks passed
@charles-cooper charles-cooper deleted the debug-frames branch January 13, 2024 14:21
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.

2 participants