fuzzing: create structured tar bytes in archive fuzzer
Signed-off-by: AdamKorcz <adam@adalogics.com>
This commit is contained in:
parent
bb45abaa2c
commit
011fca6ed8
@ -67,7 +67,7 @@ func FuzzApply(data []byte) int {
|
||||
// that targets archive.ImportIndex()
|
||||
func FuzzImportIndex(data []byte) int {
|
||||
f := fuzz.NewConsumer(data)
|
||||
tarBytes, err := f.GetBytes()
|
||||
tarBytes, err := f.TarBytes()
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user