fix(MailMessage): read hangs on missing final multipart boundary #2401

This commit is contained in:
Alex Fabijanic
2022-06-22 04:33:31 +02:00
parent 1e3bc35717
commit 47f2c3573c
4 changed files with 56 additions and 1 deletions

View File

@@ -105,6 +105,7 @@ int MultipartStreamBuf::readFromDevice(char* buffer, std::streamsize length)
*buffer++ = (char) buf.sbumpc(); ++n;
ch = buf.sgetc();
}
if (ch == eof) _lastPart = true;
return n;
}