jos/user/faultwrite.c

11 lines
138 B
C
Raw Permalink Normal View History

2018-09-25 09:22:51 -07:00
// buggy program - faults with a write to location zero
#include <inc/lib.h>
void
umain(int argc, char **argv)
{
*(unsigned*)0 = 0;
}