Fix ixallocx_prof() to check for size greater than HUGE_MAXCLASS.

This commit is contained in:
Jason Evans
2015-09-15 00:49:09 -07:00
parent 0108b1fd04
commit 8c485b02a6
2 changed files with 6 additions and 3 deletions

View File

@@ -26,8 +26,7 @@ brevity. Much more detail can be found in the git revision history:
with interposed resets (triggered via the "prof.reset" mallctl). This bug
could cause data structure corruption that would most likely result in a
segfault.
- Fix xallocx() bugs related to the 'extra' parameter when specified as
non-zero.
- Fix xallocx() bugs related to size+extra exceeding HUGE_MAXCLASS.
- Fix irealloc_prof() to prof_alloc_rollback() on OOM.
- Make one call to prof_active_get_unlocked() per allocation event, and use
the result throughout the relevant functions that handle an allocation