jos/user/buggyhello2.c

14 lines
258 B
C
Raw Normal View History

2018-09-25 09:22:51 -07:00
// 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);
}