fuzzing: create structured tar bytes in archive fuzzer

Signed-off-by: AdamKorcz <adam@adalogics.com>
This commit is contained in:
AdamKorcz 2022-10-04 21:26:25 +01:00
parent bb45abaa2c
commit 011fca6ed8

View File

@ -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
}