Issue information

Issue ID
#2067
Status
Fixed
Severity
None
Started
Hercules Elf Bot
Aug 15, 2008 18:27
Last Post
Hercules Elf Bot
Nov 23, 2012 2:57
Confirmation
N/A

Hercules Elf Bot - Aug 15, 2008 18:27

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

The mapreg code assumes variable names are 32 characters in length (+1 for terminator).
The database assumes the same (IIRC `varname` varchar(32) supports 32 chars).

The base reg structure in mmo.h says otherwise:
CODE
struct global_reg {
    char str[32];
    char value[256];
};
so at worst a long variable name would cause varname truncation or buffer overflow.

Hercules Elf Bot - Nov 23, 2012 2:57

Originally posted by [b]mkbu95[/b]
Hopefully fixed in [rev=14614].