WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Taint Global Vars (https://www.wowinterface.com/forums/showthread.php?t=59033)

glupikreten 02-02-22 03:46 AM

Taint Global Vars
 
Hi,

In taint.log i see "Global variable CHAT_FLAG_AFK tainted by ..."

_G.CHAT_FLAG_AFK = "[AFK] "

How can i do this without tainting anything... is that possible?

Also i see that

SLASH_RELOAD1 = "/rl"
SlashCmdList["RELOAD"] = function(msg)
ReloadUI()
end

also causes
Global variable SLASH_RELOAD1 tainted by ....


Is there a way to avoit taint or some tainting are unavoidable?

My taint.log sometimes gets to 200mb... All addons are causing taint.. questie, tsm, custom frame addons, dbm etc....
Is tainting something that you just ignore? I mean.. how sometimes my bugsack catches taint error and usually not all the while taint log is filled with millions of taints?

Dridzt 02-02-22 10:38 AM

You shouldn't have your taint log running constantly.

Code:

/dump GetCVar("taintLog")
should return "0" in your normal everyday playing.

You only set taintLog to higher logging states temporarily to try solve a specific taint-related issue or to get logs to submit to an addon author to help them, then you turn it back off.

Taint is "normal", all user code is tainted, the problem comes when taint spreads to code paths for protected actions (parts of the default UI related to actions addons are prohibited from automating, like targeting / moving / casting and some others)

https://www.townlong-yak.com/taint.log/about.html gives a good overview.


All times are GMT -6. The time now is 07:16 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI