Bugzilla – Bug 460
ListPositionAllocator bug
Last modified: 2009-01-09 02:35:20 UTC
Dear NS3 developers, my colleague Stefano Formaggi and I have found a bug in the ListPositionAllocator code. When the ListPositionAllocator::GetNext method is called after the list of positions provided by the user is finished, it returns uninitialized values. The patch in attachment fixes the problem by reinitializing the m_current iterator when it reaches the end of m_position. It applies on both ns-3.3 and current ns-3-dev trunk. Mauro Tortonesi
Reassigning to the maintainer for review and application.
There is no attachement ?
Created attachment 347 [details] patch from mailing list
I checked in a slightly modified version (coding style). thanks a lot ! changeset: 6f982d5f7b54