1
0
Fork 0
forked from External/ergo

upgrade dependencies for 2.9 cycle

This commit is contained in:
Shivaram Lingamneni 2021-11-16 18:18:03 -05:00
parent 51fca3cc0b
commit 8218d1caab
342 changed files with 21391 additions and 13867 deletions

View file

@ -232,6 +232,13 @@ func Parse(s string) (t Tag, err error) {
if s == "" {
return Und, ErrSyntax
}
defer func() {
if recover() != nil {
t = Und
err = ErrSyntax
return
}
}()
if len(s) <= maxAltTaglen {
b := [maxAltTaglen]byte{}
for i, c := range s {