securecall

From Warcraft Wiki
Jump to navigation Jump to search
Wowprogramming.png  BTNTemp.png securecall TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.pngWrath-Logo-Small.pngWoW Icon update.png + 2.0.1 / 1.13.2
BTNTemp.png securecallfunction TheWarWithin-Icon-Inline.pngDragonflight-Icon-Inline.pngCata-Logo-Small.pngWrath-Logo-Small.pngWoW Icon update.png + 9.1.5 / 1.15.0

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.