mirror of https://github.com/pwndbg/pwndbg.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
365 B
C
21 lines
365 B
C
#include <stdlib.h>
|
|
#include <jemalloc/jemalloc.h>
|
|
|
|
void break_here(void) {}
|
|
|
|
int main(void)
|
|
{
|
|
|
|
// Allocate a small memory
|
|
char *ptr = (char *)malloc(2 * sizeof(char));
|
|
ptr[0] = 'A';
|
|
ptr[1] = 'B';
|
|
|
|
// allocate non small class size memory
|
|
char *ptr2 = (char *)malloc(30 * 1024);
|
|
ptr2[0] = 'A';
|
|
ptr2[1] = 'B';
|
|
|
|
break_here();
|
|
|
|
} |