Thread Tools Display Modes
02-02-22, 03:46 AM   #1
glupikreten
A Theradrim Guardian
Join Date: Apr 2009
Posts: 60
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?

Last edited by glupikreten : 02-02-22 at 03:52 AM.
  Reply With Quote
02-02-22, 10:38 AM   #2
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,359
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.

Last edited by Dridzt : 02-02-22 at 11:41 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Taint Global Vars

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off