View Single Post
09/06/18, 08:20 AM   #3
SDPhantom
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 47
Originally Posted by Phuein View Post
Will the game not save any one string at over 2,000 chars? Without error?
Technically, that is the error. It doesn't show up in a dialog because currently, savedvars are only written when you logout or reload the UI. Both of which, the game is in the process of unloading the "Ingame" UI and associated Lua environment.

Originally Posted by Phuein View Post
Why 2,000? Seems arbitrary.
It is completely arbitrary, but "Why 2000?" isn't really the right question to ask. More importantly is, "Why does this limit exist?" There can be many reasons for that ranging from keeping performance in check to how the C code handles writing to the files. Long story short, buffer overflows can be quite destructive.

Originally Posted by Phuein View Post
I couldn't find info on this issue anywhere. Is this new?
The length of time an issue has been in effect is not the only factor for its exposure. Very few addons have a need to write 2000+ characters into a string, so this is a very niche problem.