#1 Ltris may segfault if wrong or no ~/.ltris.cfg exists

closed-fixed
nobody
None
5
2001-03-10
2000-12-21
No

Discussion

  • Maksym Sobolyev

    Maksym Sobolyev - 2000-12-21

    None

     
  • Maksym Sobolyev

    Maksym Sobolyev - 2000-12-21

    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.

     
  • Michael Speck

    Michael Speck - 2001-03-10
    • status: open --> closed-fixed
     

Log in to post a comment.