Menu

#279 Deficiency: no error reporting on dictionary loading faliures

v1.0 (example)
open
nobody
None
5
2015-06-25
2015-06-25
No

There is currently no error reporting in the Hunspell class when a dictionary or affix file fails to load. This means users of the library have no way of telling whether or not the Hunspell object is in a bad state or whether its function calls will lead to undefined behavior.

For example, if a dictionary fails to load, calling Hunspell::add will try to divide by zero when you get down into the HashMgr::hash method because tablesize is 0.

Discussion