Issue information

Issue ID
#5022
Status
Unable to Fix
Severity
None
Started
Hercules Elf Bot
Aug 11, 2011 6:59
Last Post
Hercules Elf Bot
Aug 11, 2011 6:59
Confirmation
Yes (1)
No (0)

Hercules Elf Bot - Aug 11, 2011 6:59

Originally posted by [b]Nikee[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=5022

Coredump:

QUOTE
  Program terminated with signal 11, Segmentation fault.
#0 0x00000000004b54da in get_com (
script=0x832c42b60f0a74d2 <Address 0x832c42b60f0a74d2 out of bounds>,
pos=0x7f20c4fa0cec) at script.c:2787


QUOTE
c_op get_com(unsigned char *script,int *pos)
{
int i = 0, j = 0;

if(script[*pos]>=0x80){
return C_INT;
}
while(script[*pos]>=0x40){ <<<<<<<<<<<<<<< CRASH HERE: "out of bounds"
i=script[(*pos)++]<<j;
j+=6;
}
return (c_op)(i+(script[(*pos)++]<<j));
}