prevent CNAME/PTR parsing from reading data past the response end
[musl] / src / unistd / read.c
index 87ff1f1..f3589c0 100644 (file)
@@ -1,12 +1,7 @@
 #include <unistd.h>
 #include "syscall.h"
-#include "libc.h"
 
 ssize_t read(int fd, void *buf, size_t count)
 {
-       ssize_t r;
-       CANCELPT_BEGIN;
-       r = __syscall_read(fd, buf, count);
-       CANCELPT_END;
-       return r;
+       return syscall_cp(SYS_read, fd, buf, count);
 }