4 #include <sys/syscall.h>
12 char* self_path
= "../../tests/freebsd/realpath.c";
13 realpath(self_path
, buf
);
16 int * bad_int1
= malloc(sizeof(char));
17 int * bad_int2
= malloc(sizeof(char));
18 size_t * bad_sz
= malloc(sizeof(char));
22 syscall(SYS___realpathat
, *bad_int1
, self_path
, buf
, *bad_sz
, *bad_int2
);
27 char * bad_buf
= malloc(100);
28 char* bad_buf2
= strdup(self_path
);
32 realpath(bad_buf2
, bad_buf
);