Issue information

Issue ID
#7439
Status
Fixed
Severity
None
Started
Wend
Jun 26, 2013 18:03
Last Post
Ind
Jun 28, 2013 0:15
Confirmation
N/A

Wend - Jun 26, 2013 18:03

[code=auto:0].qid = queue(); queueadd(.qid, getcharid(3)); .@it = queueiterator(.qid);[/code]

causes map server crash:[code=auto:0]_mrealloc (memblock=0xcdcdcdcd, size=4, file=0x8231be4 "script.c", line=17216, func=0x82357ca "buildin_queueiterator") at malloc.c:350 350 old_size = ((struct unit_head *)((char *)memblock - sizeof(struct unit_head) + sizeof(long)))->size;[/code]

line 17216 of script.c:
[code=auto:0]RECREATE(script->hqi[ idx ].item, int, queue->items);[/code]

This post has been edited by Wend on Jun 26, 2013 18:59

Ind - Jun 28, 2013 0:05

Will be commit in a second

Ind - Jun 28, 2013 0:15

[url="https://github.com/HerculesWS/Hercules/commit/2154c0fa9cee582a36f9a8d7923a646a6d47adf0"]https://github.com/HerculesWS/Hercules/commit/2154c0fa9cee582a36f9a8d7923a646a6d47adf0[/url]
Thank you