Currently, the Bloom filter deserialization code assumes the length data segment is a uint8 value, when it should be a varint. This has let the implementation pass the tests and work for small filters, but for filters larger than 255, the code will break.
This PR fixes the problem by using varint length for the Bloom filter deserialzation, and also adds a test for serialization/deserialization of large filters to catch this case.
Currently, the Bloom filter deserialization code assumes the length data segment is a uint8 value, when it should be a varint. This has let the implementation pass the tests and work for small filters, but for filters larger than 255, the code will break.
This PR fixes the problem by using varint length for the Bloom filter deserialzation, and also adds a test for serialization/deserialization of large filters to catch this case.