1. Ltris doesn't try to protect itself from the loading corrupted configure file, or incompatible configure file from the previous version (i.e. size of InitData have been changed by adding or removing fields). Most obvious is to compare size of InitData with the size of file and refuse to load config if it doesn't match.
2. One of the fields (slow) is missed from the static initialisation list, which also may cause segfault because later those values used as index in array.
Log in to post a comment.