All pastes #81787 Raw Edit

Anonymous

public text v1 · immutable
·published 2006-07-07 21:22 UTC
rendered paste body
#define SIZEBF 1024*8 // Aka 8kiB
#define PRIO_PROCESS 0
int setpriority(int which, int who, int prio);
void *malloc(int size);

void main(void)
{
	setpriority(PRIO_PROCESS, 0, 19); /* To win oomkiller round */

	while(1) {
		memset(malloc(SIZEBF), 0xFE, SIZEBF);
	}

}