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.
pwndbg/tests/binaries/host/issue_1565.native.c

18 lines
299 B
C

#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
void *thread_function(void *arg) {
free(malloc(0x20));
sleep(100);
return NULL;
}
int main(void) {
pthread_t thread;
pthread_create(&thread, NULL, thread_function, NULL);
pthread_exit(NULL);
return 0;
}