Issue information

Issue ID
#1886
Status
Fixed
Severity
Medium
Started
Hercules Elf Bot
Jul 21, 2008 7:02
Last Post
Hercules Elf Bot
Jul 21, 2008 7:02
Confirmation
N/A

Hercules Elf Bot - Jul 21, 2008 7:02

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

I am a firm believer that no in-game commands should crash the server. Today, we discovered that a GM issuing @heal -10000000000000 (or some other ridiculously low number) causes a map server crash.

Yeah, it's silly, but I still think it's a bug.

Here's the trace:


#0 0x080890bf in status_damage (src=0x0, target=0xc785e68, hp=-2147483648, sp=0, walkdelay=0, flag=1)
at status.c:598
598 status_heal(target, -hp, 0, 1);
(gdb) bt full
#0 0x080890bf in status_damage (src=0x0, target=0xc785e68, hp=-2147483648, sp=0, walkdelay=0, flag=1)
at status.c:598
sd2 = Variable "sd2" is not available.