[odamex-bug-reporter] [Bug 1021] Crash during wad loading

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Mon, 30 Sep 2013 16:57:56 +0000

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

Dr. Sean <grandpachuck187@xxxxxxxxx> changed:

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

--- Comment #1 from Dr. Sean <grandpachuck187@xxxxxxxxx> ---
Line 2302 of client/src/g_game.cpp refers to the call to Z_Free() in the
following code snippet:


//
// G_CleanupDemo
//
void G_CleanupDemo()
{
    if (demoplayback)
    {
        Z_Free(demobuffer);

        demoplayback = false;
        netgame = false;
        multiplayer = false;
        serverside = false;

        cvar_t::C_RestoreCVars();
    }
. . .


So it appears that either demobuffer was already freed but demoplayback was not
set to false code or there is memory corruption going on in unrelated code that
happened to overlap the area of memory that demobuffer is stored in.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Other related posts: