mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-13 03:24:26 +00:00
fix warning and fix bug #18036, r=bienvenu, a=chofmann.
prevent the infinite loop when applying filters to mail if a filter rule uses an arbitrary header.
This commit is contained in:
parent
f535f208dc
commit
e297d950f4
@ -161,6 +161,9 @@ PRInt32 nsMsgBodyHandler::GetNextFilterLine(char * buf, PRUint32 bufSize)
|
||||
return (PRInt32) numBytesCopied;
|
||||
}
|
||||
}
|
||||
else if (m_headersSize == 0) {
|
||||
buf[0] = '\0';
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -169,7 +172,6 @@ PRInt32 nsMsgBodyHandler::GetNextFilterLine(char * buf, PRUint32 bufSize)
|
||||
PRInt32 nsMsgBodyHandler::GetNextLocalLine(char * buf, int bufSize)
|
||||
// returns number of bytes copied
|
||||
{
|
||||
char * line = NULL;
|
||||
if (m_numLocalLines)
|
||||
{
|
||||
if (m_passedHeaders)
|
||||
|
Loading…
x
Reference in New Issue
Block a user