You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We used the Fuzz engine to modify some Test(TestUseRouterParentDisallow) data, and then the following crash appeared. We hope to get the help of the developer to confirm whether it is a real bug.
To Reproduce
constexpectedResponse="no_userouter_allowed"app:=iris.New()
app.UseRouter(func(ctx iris.Context) {
ctx.WriteString("always")
ctx.Next()
})
app.Get("/index", func(ctx iris.Context) {
ctx.WriteString(expectedResponse)
})
app.SetPartyMatcher(func(ctx iris.Context, p iris.Party) bool {
// modifies the PartyMatcher to not match any UseRouter,// tests should receive the handlers response alone.returnfalse
})
var1:="\\"app.PartyFunc(var1, func(p iris.Party) { // it's the same instance of app.p.UseRouter(func(ctx iris.Context) {
ctx.WriteString("_2")
ctx.Next()
})
p.Get("/", func(ctx iris.Context) {
ctx.WriteString(expectedResponse)
})
})
var2:="*\\*\\*"app.PartyFunc(var2, func(p iris.Party) {
p.UseRouter(func(ctx iris.Context) {
ctx.WriteString("_3")
ctx.Next()
})
p.Get("/", func(ctx iris.Context) {
ctx.WriteString(expectedResponse)
})
})
e:=httptest.New(t, app)
var3:=3052361222786394716var4:="\\*\\*\\*\\*\\*\\*\\*\\*\\*\\*"e.GET("/user").Expect().Status(var3).Body().Equal(var4) //crash in Expect()
Describe the bug
We used the Fuzz engine to modify some Test(TestUseRouterParentDisallow) data, and then the following crash appeared. We hope to get the help of the developer to confirm whether it is a real bug.
To Reproduce
Crash log
Desktop:
iris.Version
The text was updated successfully, but these errors were encountered: