Linux: fix libevent bug.
r17436 exposed a libevent bug where an array is not resized to a large enough size when it's one element too short. This bug will be upstreamed to libevent. http://codereview.chromium.org/112089 BUG=11999 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17449 0039d316-1c4b-4281-b951-d872f2087c98
Esse commit está contido em:
externo
+1
-1
@@ -161,7 +161,7 @@ epoll_recalc(struct event_base *base, void *arg, int max)
|
||||
int nfds;
|
||||
|
||||
nfds = epollop->nfds;
|
||||
while (nfds < max)
|
||||
while (nfds <= max)
|
||||
nfds <<= 1;
|
||||
|
||||
fds = realloc(epollop->fds, nfds * sizeof(struct evepoll));
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário