projects
/
pintos-anon
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
950642769e4d40a205c54940033f5dc4a9e9f71e
[pintos-anon]
/
src
/
tests
/
userprog
/
read-bad-ptr.c
1
#include <syscall.h>
2
#include "tests/lib.h"
3
#include "tests/main.h"
4
5
void
6
test_main (void)
7
{
8
int handle;
9
CHECK ((handle = open ("sample.txt")) > 1, "open \"sample.txt\"");
10
11
read (handle, (char *) 0xc0100000, 123);
12
fail ("should not have survived read()");
13
}