This bug may lead to array overflow with bugfix_ts_option (usually used in delay-based protocols such as Vegas).
A patch can fix this problem. The patch is against NS-2.29. Some modification may be necessary for other versions of NS.
in tcp/tcp.cc, TcpAgent::output() function (Line 656
in version 2.29) has a problem in the following code:
//dynamically grow the timestamp array if it's getting full
if (bugfix_ts_ && window() > tss_size_* 0.9) {
...
}
The fix in the patch replaces window() with (t_seqno_-highest_ack_).