diff options
Diffstat (limited to 'src/tests/userprog/exec-bad-ptr.c')
| -rw-r--r-- | src/tests/userprog/exec-bad-ptr.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/userprog/exec-bad-ptr.c b/src/tests/userprog/exec-bad-ptr.c new file mode 100644 index 0000000..0abadd3 --- /dev/null +++ b/src/tests/userprog/exec-bad-ptr.c @@ -0,0 +1,11 @@ +/* Passes an invalid pointer to the exec system call. + The process must be terminated with -1 exit code. */ + +#include <syscall.h> +#include "tests/main.h" + +void +test_main (void) +{ + exec ((char *) 0x20101234); +} |
