Bug 460 - ListPositionAllocator bug
: ListPositionAllocator bug
Status: RESOLVED FIXED
: ns-3
mobility models
: ns-3-dev
: PC Linux
: P1 normal
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2009-01-07 12:25 EDT by
Modified: 2009-01-09 02:35 EDT (History)


Attachments
patch from mailing list (433 bytes, patch)
2009-01-09 02:28 EDT, Mathieu Lacage
Details | Diff


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2009-01-07 12:25:55 EDT
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
------- Comment #1 From 2009-01-07 15:44:22 EDT -------
Reassigning to the maintainer for review and application.
------- Comment #2 From 2009-01-09 02:26:43 EDT -------
There is no attachement ?
------- Comment #3 From 2009-01-09 02:28:03 EDT -------
Created an attachment (id=347) [details]
patch from mailing list
------- Comment #4 From 2009-01-09 02:35:20 EDT -------
I checked in a slightly modified version (coding style).

thanks a lot !

changeset: 6f982d5f7b54