12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #include <stdlib.h>
- #include <new>
- #include "sgx_defs.h"
- #include "sgx_trts.h"
- #include "internal/util.h"
- SGX_WEAK void* SGXAPI operator new[] (size_t dwBytes, void* ptr) throw()
- {
- if( !sgx_is_within_enclave(ptr, dwBytes) ){
-
- return NULL;
- }
- return ptr;
- }
|