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

[BUG] Process hang #2216

Closed
secsys-go opened this issue Sep 27, 2023 · 1 comment
Closed

[BUG] Process hang #2216

secsys-go opened this issue Sep 27, 2023 · 1 comment
Assignees

Comments

@secsys-go
Copy link
Contributor

Describe the bug
We used the Fuzz engine to modify some Test(TestUseRouterParentDisallow) data, and then we encountered process hang. We hope to get the help of the developer to confirm whether it is a real bug.

To Reproduce

app := iris.New()
app.PartyFunc("{0h0", func(p iris.Party) {
	p.UseRouter(func(ctx iris.Context) {
		ctx.WriteString("0")
		ctx.Next()
	})

	p.Get("(o}\x10\x00}", func(ctx iris.Context) {
		ctx.WriteString("0")
	})
})

Expected behavior
Process hang should not happen.

Desktop (please complete the following information):

  • OS: Windows 10

iris.Version

@fubuki8087
Copy link
Contributor

I try to fix this bug. I debugged it and found the root cause of this bug was derived from readIdentifierFuncArgument function in macro/interpreter/lexer/lexer.go where reading input will not end because of lacking end check of string. I will submit PR later.

fubuki8087 added a commit to fubuki8087/iris that referenced this issue Sep 27, 2023
@fubuki8087 fubuki8087 mentioned this issue Sep 27, 2023
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

3 participants