Wargus / stratagus

The Stratagus strategy game engine
GNU General Public License v2.0
619 stars 119 forks source link

Pathfinder: Fix out-of-bounds read/write at load/store of games #611

Closed zzam closed 6 months ago

zzam commented 6 months ago

Fix memory issues at save and load. Saving a too long path stores no path at all (=an empty path). Loading a too long path also sets it to empty (to be compatible to old saved files). I hope this is good.

It also fixes the value of Length at runtime.

Resolves https://github.com/Wargus/stratagus/issues/610 It might resolve some of the open crash-issues.