[reSIProcate] race condition when Data::c_str

palladin p-aladin at yandex.ru
Mon Feb 3 09:24:37 CST 2014


Dear resip devels,
There is small issue with rutil::Data.
Please consider next scenario:
resip::MethodNames from MethodTypes.cxx
SipMessage msg
rutil::Data d( msg.methodStr() );

When you call d.c_str() - original MethodNames will be rewritten in 
Data::c_str() when assigning zero to mBuf[mSize].

Sincerely, tez.



More information about the resiprocate-devel mailing list