github.com/fraugster/parquet-go@v0.12.0/deltabp_fuzz.go (about) 1 //go:build gofuzz 2 // +build gofuzz 3 4 package goparquet 5 6 import ( 7 "bytes" 8 ) 9 10 func FuzzDelta(data []byte) int { 11 d := deltaBitPackDecoder32{} 12 if err := d.init(bytes.NewReader(data)); err != nil { 13 return 0 14 } 15 16 for i := 0; i < len(data)/4; i++ { 17 _, err := d.next() 18 if err != nil { 19 return 0 20 } 21 } 22 23 return 1 24 }