fix binc imap infinite loop on multipart with null boundary
This commit is contained in:
parent
9cedfbf10e
commit
1384276a3f
@ -641,6 +641,10 @@ static void parseSinglePart(const string &toboundary,
|
|||||||
mimeSource->ungetChar();
|
mimeSource->ungetChar();
|
||||||
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
|
// make sure bodylength doesn't overflow
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user