stevegt / librabinpoly

Rabin fingerprinting and deduplication library in C
GNU General Public License v2.0
26 stars 12 forks source link

Fingerprints when using rp_from_buffer are always zero. #2

Open alshalan opened 7 years ago

alshalan commented 7 years ago

I compiled the code and tried the benchmark example and it worked. I'm getting different fingerprints for different input. I created my own program and tried rp_from_buffer instead of rp_from_stream but unfortunately the fingerprints are always 0. I used a bunch of printf's for debugging and found that slide8 always call append8 with p=0 and m=0.

Have you tested rp_from_buffer? Any reason why it doesn't work?

Thank you!