Wowpedia
Advertisement
Shadowlands-Icon-Inline.png
Bc icon.gif
WoW Icon update.png
securecall
+ 2.0.1 / 1.13.2   Wowprogramming.png   #193 (207)
Shadowlands-Icon-Inline.png
Bc icon.gif
WoW Icon update.png
securecallfunction
+ 9.1.5 / 2.5.3  

Calls the specified function without propagating taint to the caller.

... = securecall(func or functionName, ...)
... = securecallfunction(func, ...)

Arguments

func
function|string - A direct reference of the function to be called, or for securecall a string name of a function to be resolved through a global lookup.
...
Additional arguments to supply to the function.

Returns

...
The return values of the called function.

Details

  • If securecall is called from a secure execution path, the execution path will remain secure when securecall returns, even if the called function is tainted, or accesses tainted variables.
  • Errors that occur within the called function are not propagated to the caller; if an error occurs, securecall triggers the default error handler, and then returns control to the caller with no return values.
  • For securecallfunction, no attempt is made to perform a global lookup based on the supplied function argument.

Patch changes

Shadowlands Patch 9.1.5 (2021-11-02): Added securecallfunction.
Bc icon.gif Patch 2.0.1 (2006-12-05): Added securecall.

Advertisement