fix crash getting pop3 mail when body filter runs on quoted printable message, sr=mscott 242677

This commit is contained in:
bienvenu%nventure.com 2004-05-06 13:15:53 +00:00
Родитель 15b0b24ff1
Коммит 5bdc54204c
1 изменённых файлов: 15 добавлений и 13 удалений

Просмотреть файл

@ -77,8 +77,8 @@
typedef struct
{
nsMsgSearchAttribValue attrib;
const char *attribName;
nsMsgSearchAttribValue attrib;
const char *attribName;
} nsMsgSearchAttribEntry;
nsMsgSearchAttribEntry SearchAttribEntryTable[] =
@ -197,19 +197,19 @@ typedef struct
nsMsgSearchOperatorEntry SearchOperatorEntryTable[] =
{
{nsMsgSearchOp::Contains, "contains"},
{nsMsgSearchOp::Contains, "contains"},
{nsMsgSearchOp::DoesntContain,"doesn't contain"},
{nsMsgSearchOp::Is, "is"},
{nsMsgSearchOp::Isnt, "isn't"},
{nsMsgSearchOp::IsEmpty, "is empty"},
{nsMsgSearchOp::IsBefore, "is before"},
{nsMsgSearchOp::IsAfter, "is after"},
{nsMsgSearchOp::Is,"is"},
{nsMsgSearchOp::Isnt, "isn't"},
{nsMsgSearchOp::IsEmpty, "is empty"},
{nsMsgSearchOp::IsBefore, "is before"},
{nsMsgSearchOp::IsAfter, "is after"},
{nsMsgSearchOp::IsHigherThan, "is higher than"},
{nsMsgSearchOp::IsLowerThan, "is lower than"},
{nsMsgSearchOp::BeginsWith, "begins with"},
{nsMsgSearchOp::EndsWith, "ends with"},
{nsMsgSearchOp::IsInAB, "is in ab"},
{nsMsgSearchOp::IsntInAB, "isn't in ab"},
{nsMsgSearchOp::IsLowerThan, "is lower than"},
{nsMsgSearchOp::BeginsWith, "begins with"},
{nsMsgSearchOp::EndsWith, "ends with"},
{nsMsgSearchOp::IsInAB, "is in ab"},
{nsMsgSearchOp::IsntInAB, "isn't in ab"},
{nsMsgSearchOp::IsGreaterThan, "is greater than"},
{nsMsgSearchOp::IsLessThan, "is less than"}
};
@ -637,6 +637,8 @@ void nsMsgSearchTerm::StripQuotedPrintable (unsigned char *src)
{
// decode quoted printable text in place
if (!*src)
return;
unsigned char *dest = src;
int srcIdx = 0, destIdx = 0;