#595 avoid buffer overflow on missionname (corrupted config file)

SVN
closed-fixed
Klauss++
Crashes (68)
5
2011-09-30
2011-07-23
Anonymous
No

Use strncpy() to avoid buffer overflow when reading default mission name from corrupted config file.
Tested: with big (5kB) value in config file VS was segfaulting, it now aborts properly with the patch.

Discussion

  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2011-07-23
     
  • Klauss++

    Klauss++ - 2011-07-25

    Committed revision 13198.

     
  • Klauss++

    Klauss++ - 2011-07-25
    • labels: --> Crashes
    • milestone: --> SVN
    • assigned_to: nobody --> klaussfreire
    • status: open --> closed-accepted
     
  • Pheonix Rising

    Pheonix Rising - 2011-09-30
    • status: closed-accepted --> closed-fixed
     


Anonymous

Cancel  Add attachments