mirror of https://github.com/gogs/gogs.git
Merge 1796ed4333
into 4acaaac85a
commit
03f2787c29
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue