ChCore-exercise/lab5/user/lab3/faultwrite.c

8 lines
140 B
C
Raw Normal View History

2021-05-23 22:24:02 +08:00
// buggy program - faults with a write to location zero
int main(int argc, char *argv[], char *envp[])
{
*(unsigned *)1 = 0;
return 0;
}