s_forbiddenSignalGuard
global · ui
- Address
0xb4e3e4· 4 bytes, up to0xb4e3e7- Type
uint32_t- Meaning
- Holds 1 while 0x494a50 signals a forbidden action
- Confidence
- verified, proof two
- Finding
- ui/luastate#the-context-word
Finding: The context word in ui: the Lua state, its library and C functions
Each Lua value is 16 bytes: a type tag, a context word at +0x4 (padding in stock Lua 5.0) and the
value at +0x8. A new value takes the current context 0xceeac0. Copying a value with a nonzero
word makes that word current while the nesting count 0xceeac4 is above 0; copying one with a zero
word gives it the current context. The per-frame update zeroes the count. A script slot runs under
its word, RunScript under [0x83de24], an add-on's files under its name or 0. Context 0 is the
client's own code: RegisterForSave raises otherwise, and the action gate 0x494a50 refuses a
nonzero context for some kinds (ui/protected#protected-action-gate), signalling
MACRO_ACTION_FORBIDDEN for RunScript's word and ADDON_ACTION_FORBIDDEN with the word's text.
The derivation is in the doc.