mirror of https://github.com/F-Stack/f-stack.git
Merge pull request #189 from chadwill/master
Nginx: fixbug, hijack `__recv_chk`.
This commit is contained in:
commit
205092b25b
|
@ -325,6 +325,16 @@ recv(int sockfd, void *buf, size_t len, int flags)
|
||||||
return SYSCALL(recv)(sockfd, buf, len, flags);
|
return SYSCALL(recv)(sockfd, buf, len, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ssize_t
|
||||||
|
__recv_chk (int fd, void *buf, size_t n, size_t buflen, int flags)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
if (n > buflen)
|
||||||
|
__chk_fail ();
|
||||||
|
*/
|
||||||
|
return recv (fd, buf, n, flags);
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
listen(int sockfd, int backlog)
|
listen(int sockfd, int backlog)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue