chokkan/crfsuite — pull request #24 by kmike (2014-04-26 18:16:50+00:00)
Title: Better error handling for model files loading

There are two improvements in this PR:

* fixed memory access past allocated size;
* function returns early if the model file doesn't start with FILEMAGIC, to prevent incorrect interpretation of data.