#366 ICMPClientTest::testPing crashes

closed
nobody
Net (141)
5
2012-09-14
2010-07-23
Anonymous
No

ICMPClientTest::testPing crashes with debug assertion "vector iterator not dereferencable". POCO 1.3.6p2-all (2010-01-15), built on Windows XP Pro SP2, Visual Studio 2005.

Specifically, it happens in ICMPEventArgs::maxRTT() because the _rtt vector is empty. It turns out that the said _rtt variable is incorrectly initialized (see Net/src/ICMPEventArgs.cpp, line 60). The type has been changed from std::valarray to std::vector, and so it should be _rtt(repetitions, 0) instead of _rtt(0, repetitions).

Discussion

  • this has already been fixed in 1.3.7