Merge pull request #12 from arutk/secure_alloc
Secure alloc/free in env
This commit is contained in:
commit
ae475515a9
@ -55,6 +55,16 @@ static inline void env_vfree(const void *ptr)
|
|||||||
cas_vfree(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 *** */
|
/* *** ALLOCATOR *** */
|
||||||
|
|
||||||
typedef struct _env_allocator env_allocator;
|
typedef struct _env_allocator env_allocator;
|
||||||
|
2
ocf
2
ocf
@ -1 +1 @@
|
|||||||
Subproject commit d4e929140efb5c3ca28b587442716162639c0541
|
Subproject commit 0b098ddb80757b9d4118904fa6bc8f445f991bb1
|
Loading…
Reference in New Issue
Block a user