Fix: poll compat layer reallocation new size
authorDavid Goulet <dgoulet@efficios.com>
Thu, 6 Jun 2013 19:30:14 +0000 (15:30 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 6 Jun 2013 19:43:25 +0000 (15:43 -0400)
commitcfa9a5a2b4a96e0d6a9eeddd2622a6d7c173b7ac
treec7f3e9dcc6c2d3ea2ccef858f0ebd0eacd1a9ec5
parent12d1308838f30af13dc917323a4bcc70b5d97e81
Fix: poll compat layer reallocation new size

The size was doubled but in fact it should have been checked for the
maximum between the number of fd doubled and the alloc size doubled
(divised by two when shrinking the buffer).

Same goes for the shrink process. For that, get_count_order_u32() is
added to utils.c/.h.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/compat/compat-epoll.c
src/common/compat/compat-poll.c
src/common/utils.c
src/common/utils.h
This page took 0.02675 seconds and 4 git commands to generate.