#174 Trimming chunk list in SmallObj can lead to invalid pointers

closed-fixed
None
5
2010-09-08
2010-09-08
Richard Sposato
No

If a program calls FixedAllocator::TrimChunkList when the chunk list has been cleared, but not trimmed, the allocChunk_ and deallocChunk pointers can end up pointing to invalid Chunks instead of pointing to nullptr.

Discussion

  • Fixed in revision 1073.

    Added if statement to check if chunk list is empty and then assign pointers accordingly.

     
    • status: open --> open-fixed
     
  • Bug is now dead.

     
    • status: open-fixed --> closed-fixed