Files
MIT6.828_OS/lab/user/buggyhello2.c
2019-07-06 10:39:40 +08: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);
}