Closed
Description
Description
I tried to parse some data with ParseTreeEntries in modules/git, but it crashed instead of returning an error
package main
import "code.gitea.io/gitea/modules/git"
func main() {
git.ParseTreeEntries([]byte("1006440000000000000000000000000000000000000000000000000000000000000000000000\t\n1006440000000000000000000000000000000000000000000000000000000000000000000000\t\n1006440000000000000000000000000000000000000000000000000000000000000000000000\t\n1006440000000000000000000000000000000000000000000000"))
}
Found by go-fuzz
Gitea Version
with git commit as ee769f7
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Ubuntu
How are you running Gitea?
I test the API in Gitea through go-fuzz
Database
No response