commit | 47e57f9bdadfaf999c9dea5d126edf3a4f1b2995 | [log] [tgz] |
---|---|---|
author | Jason Evans <jasone@canonware.com> | Tue Mar 22 09:00:56 2011 -0700 |
committer | Jason Evans <jasone@canonware.com> | Tue Mar 22 09:00:56 2011 -0700 |
tree | f87b3e6aa154788b872bd585ab88f8e602c14369 | |
parent | 1dcb4f86b23a5760f5a717ace716360b63b33fad [diff] |
Avoid overflow in arena_run_regind(). Fix a regression due to: Remove an arena_bin_run_size_calc() constraint. 2a6f2af6e446a98a635caadd281a23ca09a491cb The removed constraint required that small run headers fit in one page, which indirectly limited runs such that they would not cause overflow in arena_run_regind(). Add an explicit constraint to arena_bin_run_size_calc() based on the largest number of regions that arena_run_regind() can handle (2^11 as currently configured).