Issue information

Issue ID
#8082
Status
Fixed
Severity
Low
Started
evilpuncker
Mar 13, 2014 6:29
Last Post
evilpuncker
Mar 13, 2014 19:01
Confirmation
Yes (2)
No (0)

evilpuncker - Mar 13, 2014 6:29

[code=auto:0] itemheal rand(2000000,3000000),rand(2000000,3000000); [/code]
use this and your character will be killed, I don't know if it is intended, but I really want it to work instead of killing the character :P

AnnieRuru - Mar 13, 2014 6:47

use heal instead of itemheal ?[code=auto:0]heal rand(2000000,3000000),rand(2000000,3000000);[/code]but its still a bug ...
click 'Yes'

pan - Mar 13, 2014 18:50

@AnnieRuru heal is quite different from itemheal, see my last commit

@evilpuncker
I couldn't reproduce this issue without trying to overflow, but even so I coded an overflow check... It's not a good idea to input values that are so near INT_MAX

Fixed in [url="https://github.com/HerculesWS/Hercules/commit/1849d357210bc3d01be99e1a7cd5e8c19e5d53f4"]https://github.com/HerculesWS/Hercules/commit/1849d357210bc3d01be99e1a7cd5e8c19e5d53f4[/url]

evilpuncker - Mar 13, 2014 19:01

thanks pan