Back to index

lightning-sunbird  0.9+nobinonly
Functions
LibPreload.cpp File Reference
#include "TestPreload.h"
#include "config.h"
#include <malloc.h>

Go to the source code of this file.

Functions

voidmalloc (size_t aSize)

Function Documentation

void* malloc ( size_t  aSize)

Definition at line 46 of file LibPreload.cpp.

{
  if (aSize == LD_PRELOAD_TEST_MALLOC_SIZE) {
    return (void*) LD_PRELOAD_TEST_VALUE;
  }
  else {
    return REAL_MALLOC(aSize);
  }
}