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)
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>

No differences found
This page took 0.035011 seconds and 5 git commands to generate.