]> source.dussan.org Git - gitea.git/commitdiff
Fuzzer finds an NPE due to incorrect URLPrefix (#16249)
authorzeripath <art27@cantab.net>
Fri, 25 Jun 2021 18:14:49 +0000 (19:14 +0100)
committerGitHub <noreply@github.com>
Fri, 25 Jun 2021 18:14:49 +0000 (14:14 -0400)
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>
tools/fuzz.go

index 4b5b72d1d0d52a865a80be0f99c8a95b6c95176f..b48ae0add94417a96afd05a9ccd1582112ee7919 100644 (file)
@@ -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",