OpenVPN
Functions
allocate_module_test.c File Reference
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
Include dependency graph for allocate_module_test.c:

Go to the source code of this file.

Functions

void leak_memory ()
 
void buffer_overflow ()
 
void buffer_underflow ()
 
static void leak_memory_test (void **state)
 
static void buffer_overflow_test (void **state)
 
static void buffer_underflow_test (void **state)
 
int main (void)
 

Function Documentation

◆ buffer_overflow()

void buffer_overflow ( )

Definition at line 45 of file allocate_module.c.

References free, and malloc.

Referenced by buffer_overflow_test().

◆ buffer_overflow_test()

static void buffer_overflow_test ( void **  state)
static

Definition at line 33 of file allocate_module_test.c.

References buffer_overflow().

Referenced by main().

◆ buffer_underflow()

void buffer_underflow ( )

Definition at line 51 of file allocate_module.c.

References free, and malloc.

Referenced by buffer_underflow_test().

◆ buffer_underflow_test()

static void buffer_underflow_test ( void **  state)
static

Definition at line 40 of file allocate_module_test.c.

References buffer_underflow().

Referenced by main().

◆ leak_memory()

void leak_memory ( )

Definition at line 40 of file allocate_module.c.

References malloc.

Referenced by leak_memory_test().

◆ leak_memory_test()

static void leak_memory_test ( void **  state)
static

Definition at line 26 of file allocate_module_test.c.

References leak_memory().

Referenced by main().

◆ main()

int main ( void  )