summaryrefslogtreecommitdiffstats
path: root/third_party/libevent
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-02 23:25:22 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-02 23:25:22 +0000
commit2d2eb89d32f2d3b7fe5f9ee26112fd916e6c9064 (patch)
treec3376182ccbb79899ccca9dd693401bdc24868af /third_party/libevent
parent5b3c88dc7ae2feedb87f113913b8004838f20b70 (diff)
downloadchromium_src-2d2eb89d32f2d3b7fe5f9ee26112fd916e6c9064.zip
chromium_src-2d2eb89d32f2d3b7fe5f9ee26112fd916e6c9064.tar.gz
chromium_src-2d2eb89d32f2d3b7fe5f9ee26112fd916e6c9064.tar.bz2
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
Diffstat (limited to 'third_party/libevent')
-rw-r--r--third_party/libevent/epoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/libevent/epoll.c b/third_party/libevent/epoll.c
index e9eacfb..eb52fda 100644
--- a/third_party/libevent/epoll.c
+++ b/third_party/libevent/epoll.c
@@ -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));