mnalis / ironseed_fpc

Iron Seed is a science-fiction DOS game from 1994, which was both developed and published by Channel 7. Gameplay is real-time, featuring trading, diplomacy, and strategy. This version has been changed to make it possible to compile it with the freepascal compiler under Linux.
GNU General Public License v3.0
17 stars 0 forks source link

prevent Astrogation / Sector map corruption (old) #47

Closed mnalis closed 4 years ago

mnalis commented 4 years ago

prevent corruption described in https://github.com/mnalis/ironseed_fpc/issues/46

mnalis commented 4 years ago

was fixed in https://github.com/nukebloodaxe/ironseed_fpc/pull/16

Due to pointer usage and nonexistant array bounds checking, the game will sometimes corrupt memory following var screen: screentype, which happens to be var systems: systemarray, leading to crashes later in game.

This pull request: