Giter Site home page Giter Site logo

bloomfilter's Issues

runtime issue with garbage bloomfilter values

this library will crash and fail if one creates a garbage bloomfilter value

this is the byte array i used: [1,1]

and this is the error i see

panic: runtime error: index out of range [3] with length 0
goroutine 223 [running]:
encoding/binary.bigEndian.Uint32(...)
/usr/local/go/src/encoding/binary/binary.go:112
github.com/OldPanda/bloomfilter.FromBytes(0xc000132170, 0x2, 0x8, 0x1, 0x1, 0x10)
/Users/odria/go/pkg/mod/github.com/!old!panda/[email protected]/bloomfilter.go:83 +0x613
main.isAcctAffiliated(0xc00081e0c0, 0x20, 0xc0006d41f8, 0x11, 0xc000430058, 0x8, 0x0)
/Users/odria/dev/github/SAFE-ya-query-engine.v2/src/qe_succ_acct.go:65 +0x545
main.SummarizePage(0xc00025c000, 0x400a125, 0xc000803e00, 0x4, 0x4895bd0)
/Users/odria/dev/github/SAFE-ya-query-engine.v2/src/qe_page_summary.go:293 +0x709
main.FetchHourlyFeatures(0xc00025c000, 0x4044316, 0x480e9f0, 0xc00009d620)
/Users/odria/dev/github/SAFE-ya-query-engine.v2/src/qe_main.go:275 +0x45
main.FetchFeatures.func1(0xc0004300c0, 0xc00025c000, 0xc0005ae020, 0xc000314080, 0xc0005ae040)
/Users/odria/dev/github/SAFE-ya-query-engine.v2/src/qe_main.go:195 +0x57
created by main.FetchFeatures
/Users/odria/dev/github/SAFE-ya-query-engine.v2/src/qe_main.go:191 +0x16

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.