Commit c0d0928
committed
Handle no dictionary words during pass 1 word recognition (issue #4448)
Previously if page_res_it.word()->best_choice == nullptr,
dereferencing it in page_res_it.word()->best_choice->permuter()
caused a segmentation fault.
By checking best_choice != nullptr, i.e. there is a dictionary word,
before dereferencing it, the crash is avoided.
Signed-off-by: Sebastian Rasmussen <sebras@gmail.com>1 parent d3e50cf commit c0d0928
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
0 commit comments