|
a/src/bincimapmime/mime-parsefull.cc |
|
b/src/bincimapmime/mime-parsefull.cc |
|
... |
|
... |
639 |
*boundarysize += 2;
|
639 |
*boundarysize += 2;
|
640 |
} else {
|
640 |
} else {
|
641 |
mimeSource->ungetChar();
|
641 |
mimeSource->ungetChar();
|
642 |
mimeSource->ungetChar();
|
642 |
mimeSource->ungetChar();
|
643 |
}
|
643 |
}
|
|
|
644 |
} else {
|
|
|
645 |
// Recoll: in the case of a null boundary (probably illegal but wtf), eof
|
|
|
646 |
// was not set and multipart went into a loop until bad alloc.
|
|
|
647 |
*eof = true;
|
644 |
}
|
648 |
}
|
645 |
|
649 |
|
646 |
// make sure bodylength doesn't overflow
|
650 |
// make sure bodylength doesn't overflow
|
647 |
*bodylength = mimeSource->getOffset();
|
651 |
*bodylength = mimeSource->getOffset();
|
648 |
if (*bodylength >= bodystartoffsetcrlf) {
|
652 |
if (*bodylength >= bodystartoffsetcrlf) {
|