jos/user/buggyhello2.c
Anish Athalye a9d7717cc4 Lab 3
2018-09-25 12:22:51 -04:00

14 lines
258 B
C

// buggy hello world 2 -- pointed-to region extends into unmapped memory
// kernel should destroy user environment in response
#include <inc/lib.h>
const char *hello = "hello, world\n";
void
umain(int argc, char **argv)
{
sys_cputs(hello, 1024*1024);
}