SmartAudio/package/avs/libsensory/files/wrapper/chk/recv_chk.c

8 lines
192 B
C
Raw Normal View History

2018-07-13 01:31:50 +00:00
#include <sys/socket.h>
#include "fortify.h"
ssize_t __recv_chk(int fd, void *buf, size_t len, size_t buflen, int flags)
{
if(buflen < len) __chk_fail();
return recv(fd, buf, len, flags);
}