[Ns-bugs] [Bug 38] ns3::Buffer::Iterator::GetIndex assertion triggered

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Mon Jun 18 07:38:03 PDT 2007


http://www.nsnam.org/bugzilla/show_bug.cgi?id=38





------- Comment #5 from gjcarneiro at gmail.com  2007-06-18 10:38 -------
519     uint32_t
520     Buffer::Iterator::GetIndex (uint32_t n)
521     {
522       NS_ASSERT ( 
523           (m_current + n <= m_dataEnd) &&
524           ((m_current + n <= m_zeroStart) ||
525            (m_current >= m_zeroEnd) ||
526            m_zeroStart == m_zeroEnd)
(gdb) p m_current
$1 = 0
(gdb) p n
$2 = 2
(gdb) p m_dataEnd
$3 = 0

I wonder if this could be my bug this time, due to not allocating enough space
in the buffer... I have to check...


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list