[odamex-bug-reporter] [Bug 866] Crash on startup with specific ACS

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Wed, 25 Jul 2012 06:09:45 +0000

http://odamex.net/bugs/show_bug.cgi?id=866

Amateur Spammer <ijgjgr@xxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |grandpachuck187@xxxxxxxxx

--- Comment #3 from Amateur Spammer <ijgjgr@xxxxxxx> 2012-07-25 06:09:45 UTC ---
BTW, this patch probably breaks savegames if this matters.

So here's what happens, at least in my build. The script has too many local
variables; in common/p_acs.h LOCAL_SIZE is #define'd as 10. It's the size of
DLevelScript::localvars array. At some point, the value 4 is written to
localvars[11], which happens to be DLevelScript::state. 4 is SCRIPT_PolyWait,
and then script tries to wait on polyobject with tag (?) zero, PO_Busy is
called, and Odamex crashes there on line 1450:
                if (!poly->specialdata)
but poly is NULL, as this level has no polyobjects, AFAICT.

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts: