aboutsummaryrefslogtreecommitdiff
path: root/src/monkey/bug_bad_memory_access.c
blob: 54e50ade08aab4bd6a91c5a6e92e24ce57db0a43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <string.h>


void badMemoryAccess()
{
	int *p = (int*) 0x4252352;
	printf("Bad memory access now!\n");
	*p = 5;
}

int main(int argc, char *argv[])
{
	badMemoryAccess();
	return 0;
}