• 04/09/2016
  • Public Content

Developers should use C++11 attributes inside an enclave with care. The attribute noreturn, in particular, may cause a potencial security risk. For instance, if a trusted function calls a noreturn function any clean-up code placed after the function call will be ignored.
[noreturn]]void foo(parameters…) { ... } int ecall_function(parameters…) { ... foo(...); // Clean-up code below will be ignored ... return 0; }

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.