guard against a truncated file