API securecall

From Wowpedia
Jump to: navigation, search

Calls the specified function without propagating taint to the caller.

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

Arguments

func / functionName 
Function / String - function to call, either a direct reference or a string used as a key into _G.
... 
Any - any number of arguments to pass the function.

Returns

... 
Any - the function's return values.

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 propagates to the caller; if an error occurs, securecall triggers the default error handler, and then returns control to the caller with no return values.