Revert "Harden agains network packet overruns"
This reverts commit 6c1ea557b5.
This commit is contained in:
@@ -511,29 +511,21 @@ BOOL LLTemplateMessageReader::decodeTemplate(
|
||||
|
||||
void LLTemplateMessageReader::logRanOffEndOfPacket( const LLHost& host, const S32 where, const S32 wanted )
|
||||
{
|
||||
// <FS:ND> Handle invalid packets by throwing an exception and a graceful continue
|
||||
|
||||
// we've run off the end of the packet!
|
||||
std::stringstream strm;
|
||||
// llwarns << "Ran off end of packet " << mCurrentRMessageTemplate->mName
|
||||
strm << "Ran off end of packet " << mCurrentRMessageTemplate->mName
|
||||
llwarns << "Ran off end of packet " << mCurrentRMessageTemplate->mName
|
||||
// << " with id " << mCurrentRecvPacketID
|
||||
<< " from " << host
|
||||
<< " trying to read " << wanted
|
||||
<< " bytes at position " << where
|
||||
<< " going past packet end at " << mReceiveSize
|
||||
// << llendl;
|
||||
<< std::endl;
|
||||
<< llendl;
|
||||
if(gMessageSystem->mVerboseLog)
|
||||
{
|
||||
// llinfos << "MSG: -> " << host << "\tREAD PAST END:\t"
|
||||
strm << "MSG: -> " << host << "\tREAD PAST END:\t"
|
||||
llinfos << "MSG: -> " << host << "\tREAD PAST END:\t"
|
||||
// << mCurrentRecvPacketID << " "
|
||||
// << getMessageName() << llendl;
|
||||
<< getMessageName() << std::endl;
|
||||
<< getMessageName() << llendl;
|
||||
}
|
||||
gMessageSystem->callExceptionFunc(MX_RAN_OFF_END_OF_PACKET);
|
||||
throw std::string( strm.str() );
|
||||
}
|
||||
|
||||
static LLFastTimer::DeclareTimer FTM_PROCESS_MESSAGES("Process Messages");
|
||||
|
||||
Reference in New Issue
Block a user