Merge pull request #7477 from AdamKorcz/fuzz1
fuzzing: create structured tar bytes in archive fuzzer
This commit is contained in:
commit
31f9d13f0c
@ -67,7 +67,7 @@ func FuzzApply(data []byte) int {
|
|||||||
// that targets archive.ImportIndex()
|
// that targets archive.ImportIndex()
|
||||||
func FuzzImportIndex(data []byte) int {
|
func FuzzImportIndex(data []byte) int {
|
||||||
f := fuzz.NewConsumer(data)
|
f := fuzz.NewConsumer(data)
|
||||||
tarBytes, err := f.GetBytes()
|
tarBytes, err := f.TarBytes()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user