add fuzz tests (#234)

This commit is contained in:
Alessandro Ros
2023-04-09 18:02:36 +02:00
committed by GitHub
parent 5859c9cb29
commit b6727c07ef
31 changed files with 112 additions and 277 deletions

View File

@@ -49,7 +49,6 @@ func (h *Header) unmarshal(br *bufio.Reader) error {
if err != nil {
return err
}
break
}
@@ -62,6 +61,7 @@ func (h *Header) unmarshal(br *bufio.Reader) error {
if err != nil {
return fmt.Errorf("value is missing")
}
key += string(byts[:len(byts)-1])
key = headerKeyNormalize(key)