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

Stack overflow in debug mode #312

Open
Ketasaja opened this issue Jul 31, 2024 · 0 comments
Open

Stack overflow in debug mode #312

Ketasaja opened this issue Jul 31, 2024 · 0 comments

Comments

@Ketasaja
Copy link

Ketasaja commented Jul 31, 2024

Overflows on 1.0.0-rc.5 and 0.19.0 with stacker, with no errors in release mode on either.

function f()
	local x = true

	do
		if x then
			x = false
		end
	end
end

And the same for:

function f()
	for k, v in t do
		if v then
			
		end
	end
end

If it's helpful context, this variant doesn't overflow on 1.0.0-rc.5, or 0.19.0 with stacker, but does overflow on 0.19.0 without stacker.

function f()
	local x = {}

	if x then
		x = {}
	end
end

Full code:

use full_moon;

fn main() {
    full_moon::parse("function f()
	local x = true

	do
		if x then
			x = false
		end
	end
end");
}
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