Skip to content

Commit

Permalink
Fuzzer finds an NPE due to incorrect URLPrefix (#16249)
Browse files Browse the repository at this point in the history
The Fuzzer is running on a non-repo urlprefix which is incorrect for RenderRaw

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: 6543 <6543@obermui.de>
  • Loading branch information
zeripath and 6543 authored Jun 25, 2021
1 parent 06f483d commit 1a1ce9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (

var (
renderContext = markup.RenderContext{
URLPrefix: "https://example.com",
URLPrefix: "https://example.com/go-gitea/gitea",
Metas: map[string]string{
"user": "go-gitea",
"repo": "gitea",
Expand Down

0 comments on commit 1a1ce9b

Please sign in to comment.