fleur icon indicating copy to clipboard operation
fleur copied to clipboard

Fleur implements a Bloom Filter library in C that is fully compatible with DCSO's Go and python implementations.

Results 7 fleur issues
Sort by recently updated
recently updated
newest added

fleur segfauts on insertion with the following corrupted (gzipped) bloomfilter files: [crash0_insert.bin.gz](https://github.com/hashlookup/fleur/files/9207722/crash0_insert.bin.gz) [crash1_insert.bin.gz](https://github.com/hashlookup/fleur/files/9207723/crash1_insert.bin.gz) The command used to reproduce the crashes is ```echo bla | ./fleurcli -c insert crash0_insert.bin``` Valgind output:...

fleur allocates large amounts of memory when using corrupted bloomfilter files on insertion. Cfr attached gzipped files: [hang0_insert.bin.gz](https://github.com/hashlookup/fleur/files/9207520/hang0_insert.bin.gz) [hang1_insert.bin.gz](https://github.com/hashlookup/fleur/files/9207521/hang1_insert.bin.gz) [hang2_insert.bin.gz](https://github.com/hashlookup/fleur/files/9207522/hang2_insert.bin.gz) This can be tested using the following command: ```echo bla...

> Could be faster still if it didn't calloc/free a "Fingerprint" buffer each time you add or query an entry. Since its individual BloomFilters are not thread-safe anyway, it could...

enhancement

> using good prefix, or even suffix for C library is a must, and come up with something unique (and "fleur" is kind of cool), probably good idea to prefix...

bug

> There is also strange code like this loop [https://github.com/hashlookup/fleur/blob/4ee2644a850381d928a...](https://github.com/hashlookup/fleur/blob/4ee2644a850381d928ad86fce8b2357f21102eee/fleurcli/fleurcli.c#L102) that jumped into my eye. > > Oh and btw I believe bloom_path can cause memory safety issues because it...

bug

- allocate only once, - no static > The usage of `static` variables makes the BloomFilter code unnecessarily dangerous to use when multiple threads are used even if every thread...

bug

- get back the number of matches, - get back the number of inserts.

enhancement