Malformed file processing