Skip to content
New issue

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

MimeKit.InternetAddress.TryParse throws instead of returning false #847

Closed
theolivenbaum opened this issue Oct 21, 2022 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@theolivenbaum
Copy link

Describe the bug
Just saw this on our logs, unfortunately I don't have more data to reproduce

Platform:

  • OS: macOS
  • .NET Runtime: net6.0
  • MimeKit Version: 3.4.1

To Reproduce
n/a

Expected behavior
The TryParse method should always return false in case it fails

Code Snippets
n/a

Additional context
The TryParse method is throwing the following exception:

Message: Specified argument was out of the range of valid values. (Parameter 'minimumLength')
System.Buffers.TlsOverPerCoreLockedStacksArrayPool`1.Rent(Int32 minimumLength)
MimeKit.Utils.MimeUtils.Unquote(Byte[] text, Int32 startIndex, Int32 length, Boolean convertTabsToSpaces)
MimeKit.InternetAddress.TryParse(AddressParserFlags flags, ParserOptions options, Byte[] text, Int32& index, Int32 endIndex, Int32 groupDepth, InternetAddress& address)
MimeKit.InternetAddressList.TryParse(AddressParserFlags flags, ParserOptions options, Byte[] text, Int32& index, Int32 endIndex, Boolean isGroup, Int32 groupDepth, List`1& addresses)
MimeKit.InternetAddressList.TryParse(ParserOptions options, String text, InternetAddressList& addresses):53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants