unknownworlds / decoda

Decoda Lua IDE and debugger
GNU General Public License v3.0
900 stars 264 forks source link

Crash when symbol name length from C stack > 256 #27

Closed littlesome closed 6 years ago

littlesome commented 10 years ago

in DebugBackend.cpp line 3161:

sprintf(stack[i].name, "%s", symbol->Name);

should changed to:

_snprintf(stack[i].name, 256, "%s", symbol->Name);

littlesome commented 10 years ago

_snprintf does not solve the problem because symbol->Name is not null terminated (very strange)