pull/6495/merge
AdamKorcz 2025-03-16 20:24:34 +01:00 committed by GitHub
commit 03f2787c29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 0 deletions

14
internal/db/fuzzer.go Normal file
View File

@ -0,0 +1,14 @@
// Copyright 2021 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// +build gofuzz
package db
func Fuzz(data []byte) int {
_, err := CheckPublicKeyString(string(data))
if err != nil {
return 0
}
return 1
}