Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(script_translator): correction can cause segfault (#863)
* fix(script_translator): correction can cause segfault When finding the candidates for the last page, ScriptTranslation::PrepareCandidate can return nullptr, leading to segfault. ++correction_count_ > max_corrections_ it is the correct logic to discard more correction candidates after the top N; if inverted, all correction candidates except the top N are displayed. correctly update member variables for the no more candidates to display case. --------- Co-authored-by: 居戎氏 <[email protected]>
- Loading branch information