本站源代码
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.

22 satır
361B

  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. }
上海开阖软件有限公司 沪ICP备12045867号-1