Skip to content

Commit

Permalink
Updated __poll_chk implementation to be not so strict
Browse files Browse the repository at this point in the history
  • Loading branch information
mxaddict committed Jul 1, 2019
1 parent ab51282 commit 1f948a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/compat/glibc_compat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ extern "C" int __wrap_glob64(const char * pattern, int flags, int (*errfunc) (co

extern "C" int __poll_chk(struct pollfd *fds, nfds_t nfds, int timeout, size_t fdslen)
{
assert((fdslen / sizeof(*fds)) < nfds);
if(fdslen / sizeof(*fds) < nfds)
__chk_fail();
return poll(fds, nfds, timeout);
}

Expand Down

0 comments on commit 1f948a7

Please sign in to comment.