When parsing boxscore event files in box.c:cw_box_process_boxscore_file(), range checking should be done that team numbers (0 or 1) or batting order slot numbers or positions are in the valid range. It would be acceptable to terminate the program on an error, as these should not happen.