[Ns-developers] ListPositionAllocator bug

Tortonesi Mauro mauro.tortonesi at unife.it
Wed Jan 7 09:40:32 PST 2009


Dear NS3 developers,

my colleague Stefano Formaggi (in CC) 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

--
Mauro Tortonesi, Ph.D.

Research Assistant
Distributed Systems Research Group
Engineering Department
University of Ferrara
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ns3-la-fix.diff
Type: text/x-patch
Size: 432 bytes
Desc: not available
Url : http://mailman.isi.edu/pipermail/ns-developers/attachments/20090107/0a9078d1/ns3-la-fix.bin


More information about the Ns-developers mailing list