Fix `Segmentation Fault` when loading very big corpus file
example_pos_ is the cursor to current position when reading the corpus file. When corpus file is very big, the corpus_size_ may bigger than max of int32, then example_pos_ became negative, and cause `corpus_[example_pos_]` to `Segmentation Fault`.
Showing
Please register or sign in to comment