Debugging malloc (now appears to be a realloc error) in the KDF