fix reversed memset arguments in iterate_checksums