projects
/
pintos-anon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add more tests.
[pintos-anon]
/
grading
/
userprog
/
exec-bad-ptr.c
diff --git a/grading/userprog/exec-bad-ptr.c
b/grading/userprog/exec-bad-ptr.c
new file mode 100644
(file)
index 0000000..
28dcc9b
--- /dev/null
+++ b/
grading/userprog/exec-bad-ptr.c
@@ -0,0
+1,11
@@
+#include <stdio.h>
+#include <syscall.h>
+
+int
+main (void)
+{
+ printf ("(exec-bad-ptr) begin\n");
+ exec ((char *) 0xc0101234);
+ printf ("(exec-bad-ptr) end\n");
+ return 0;
+}