You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
361 B

  1. // +build gofuzz
  2. package roaring
  3. import "bytes"
  4. func FuzzSerializationStream(data []byte) int {
  5. newrb := NewBitmap()
  6. if _, err := newrb.ReadFrom(bytes.NewReader(data)); err != nil {
  7. return 0
  8. }
  9. return 1
  10. }
  11. func FuzzSerializationBuffer(data []byte) int {
  12. newrb := NewBitmap()
  13. if _, err := newrb.FromBuffer(data); err != nil {
  14. return 0
  15. }
  16. return 1
  17. }