Issue Information
-
#004577
-
5 - Critical
-
Fixed
Issue Confirmations
-
Yes (0)No (0)
Originally posted by Ai4rei
http://www.eathena.w...er&showbug=4577
There is a dangling pointer issue present in the map-server, due to an attempt to free already free'd script state from clif_parse_LoadEndAck -> npc_event_dequeue.
Test script:
Steps to reproduce:
This post has been edited by Ai4rei: Nov 27 2010, 09:36 AM
http://www.eathena.w...er&showbug=4577
There is a dangling pointer issue present in the map-server, due to an attempt to free already free'd script state from clif_parse_LoadEndAck -> npc_event_dequeue.
Test script:
CODE
prontera,160,150,0 script Crasher 123,{
set .@rid,getcharid(3);
sleep 1000;
attachrid(.@rid);
next;
end;
}
set .@rid,getcharid(3);
sleep 1000;
attachrid(.@rid);
next;
end;
}
Steps to reproduce:
- Place some teleport command on a shortcut, such as @go.
- Talk to the NPC and wait until the dialog box appears.
- Press 'next', the map-server should print an error about npc id mismatch.
- Use shortcut to teleport, the map-server crashes upon spawning.
This post has been edited by Ai4rei: Nov 27 2010, 09:36 AM