MCPcopy Create free account
hub / github.com/Mbed-TLS/mbedtls / check_pointer

Function check_pointer

library/memory_buffer_alloc.c:617–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615
616#if defined(MBEDTLS_SELF_TEST)
617static int check_pointer( void *p )
618{
619 if( p == NULL )
620 return( -1 );
621
622 if( (size_t) p % MBEDTLS_MEMORY_ALIGN_MULTIPLE != 0 )
623 return( -1 );
624
625 return( 0 );
626}
627
628static int check_all_free( )
629{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected