Skip to content

Latest commit

 

History

History
36 lines (33 loc) · 617 Bytes

README.md

File metadata and controls

36 lines (33 loc) · 617 Bytes

GNU C library's (glibc's) malloc library implementation

void  *malloc(size_t size);
void  free(void *ptr);
void  *realloc(void *ptr, size_t size);
void  *calloc(size_t nelem, size_t size);
void  show_alloc_mem();
void  show_free_mem();

Injection

The project comes with an injector (LD_PRELOAD hooking)

  • Running a binary using the inject script will make the program use my malloc library instead of the glibc's one
./inject [BINARY]

Make

Given Makefile contains all standard rules

  • all
  • clean
  • fclean
  • re

Demo

malloc demo