mirror of
https://github.com/FiloSottile/age.git
synced 2026-09-09 01:26:12 +00:00
armor: add FuzzMalleability test
This commit is contained in:
@@ -54,6 +54,10 @@ func FuzzMalleability(f *testing.F) {
|
||||
if err != nil {
|
||||
f.Fatal(err)
|
||||
}
|
||||
_, contents, ok := bytes.Cut(contents, []byte("\n\n"))
|
||||
if !ok {
|
||||
f.Fatal("testkit file without header")
|
||||
}
|
||||
f.Add(contents)
|
||||
}
|
||||
f.Fuzz(func(t *testing.T, data []byte) {
|
||||
|
||||
Reference in New Issue
Block a user