1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #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;
- }
|