fix binc imap infinite loop on multipart with null boundary

This commit is contained in:
dockes 2006-11-05 21:10:22 +00:00
parent 9cedfbf10e
commit 1384276a3f

View File

@ -641,6 +641,10 @@ static void parseSinglePart(const string &toboundary,
mimeSource->ungetChar();
mimeSource->ungetChar();
}
} else {
// Recoll: in the case of a null boundary (probably illegal but wtf), eof
// was not set and multipart went into a loop until bad alloc.
*eof = true;
}
// make sure bodylength doesn't overflow