Merge pull request #12 from arutk/secure_alloc

Secure alloc/free in env
This commit is contained in:
Adam Rutkowski 2019-04-18 10:07:10 -04:00 committed by GitHub
commit ae475515a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -55,6 +55,16 @@ static inline void env_vfree(const void *ptr)
cas_vfree(ptr);
}
static inline void *env_secure_alloc(size_t size)
{
return env_vmalloc(size);
}
static inline void env_secure_free(const void *ptr, size_t size)
{
env_vfree(ptr);
}
/* *** ALLOCATOR *** */
typedef struct _env_allocator env_allocator;

2
ocf

@ -1 +1 @@
Subproject commit d4e929140efb5c3ca28b587442716162639c0541
Subproject commit 0b098ddb80757b9d4118904fa6bc8f445f991bb1