Opened 5 years ago

#13389 new Bugs

rbtree_best_fit.hpp:grow() if condition error

Reported by: jakciehan <hanchengxi0423@…> Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: interprocess
Version: Boost 1.66.0 Severity: Problem
Keywords: grow Cc:

Description

in file boost/interprocess/mem_algo/rbtree_best_fit.hpp:480 func:

void rbtree_best_fit<MutexFamily, VoidPointer, MemAlignment>::grow(size_type extra_size)
{
  ...
   if((m_header.m_size - old_border_offset) < MinBlockUnits){
      return;
   }
...
}

condition error. the if condition should be :

  if((m_header.m_size - old_border_offset) < MinBlockUnits*Alignment) {
    return;
  }

Change History (0)

Note: See TracTickets for help on using tickets.