We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An invalid header, similar to the one below, throw System.IndexOutOfRangeException in message parser. Example: Reply-To: "Name" <
Reply-To: "Name" <
System.IndexOutOfRangeException: Index was outside the bounds of the array. at MimeKit.InternetAddress.TryParseMailbox(ParserOptions options, Byte[] text, Int32 startIndex, Int32& index, Int32 endIndex, String name, Int32 codepage, Boolean throwOnError, InternetAddress& address) at MimeKit.InternetAddress.TryParse(ParserOptions options, Byte[] text, Int32& index, Int32 endIndex, AddressParserFlags flags, InternetAddress& address) at MimeKit.InternetAddressList.TryParse(ParserOptions options, Byte[] text, Int32& index, Int32 endIndex, Boolean isGroup, Boolean throwOnError, List`1& addresses) at MimeKit.MimeMessage.AddAddresses(Header header, InternetAddressList list) at MimeKit.MimeMessage.HeadersChanged(Object o, HeaderListChangedEventArgs e) at MimeKit.HeaderList.OnChanged(Header header, HeaderListChangedAction action) at MimeKit.HeaderList.Add(Header header) at MimeKit.MimeMessage..ctor(ParserOptions options, IEnumerable`1 headers, RfcComplianceMode mode) at MimeKit.MimeParser.ParseMessage(Byte* inbuf) at MimeKit.MimeParser.ParseMessage(CancellationToken cancellationToken) at MailKit.Net.Imap.ImapEngine.ParseMessage(Stream stream, Boolean persistent, CancellationToken cancellationToken) at MailKit.Net.Imap.ImapFolder.ParseMessage(Stream stream, CancellationToken cancellationToken) at MailKit.Net.Imap.ImapFolder.GetMessage(UniqueId uid, CancellationToken cancellationToken, ITransferProgress progress)
The text was updated successfully, but these errors were encountered:
Add more bounds checking for TryParseMailbox()
4044269
Fixes issue #421
No branches or pull requests
An invalid header, similar to the one below, throw System.IndexOutOfRangeException in message parser.
Example:
Reply-To: "Name" <
The text was updated successfully, but these errors were encountered: