Skip to content

lumenthi/malloc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published