1
0
mirror of https://github.com/securego/gosec.git synced 2025-03-17 20:57:54 +02:00

Fix the WriteSring test by handling the error

This commit is contained in:
Cosmin Cojocar 2018-11-10 16:39:44 +01:00 committed by Cosmin Cojocar
parent adb42220da
commit ae82798b9c

View File

@ -169,7 +169,10 @@ package main
import "strings"
func main() {
var buf strings.Builder
buf.WriteString("test string")
_, err := buf.WriteString("test string")
if err != nil {
panic(err)
}
}`}, 0}}
// SampleCodeG105 - bignum overflow