Fix a clang signed / unsigned conversion warning.
Don't read past the end of the chunk array: wait until we know there are enough chunks before reading.
Fix a tiny leak in Bloom filter creation, found by valgrind.  We could allocate space for the config string twice.