Closed piher closed 12 years ago
I was afraid of that. I just pushed a small change to report the value it's trying to parse as part of the exception.
Let me know what it is. Thanks!
-----Original Message----- From: piher [mailto:reply@reply.github.com] Sent: Thursday, March 15, 2012 11:28 AM To: Andy Edinborough Subject: [aenetmail] DecodeQuotedPrintable throws StackOverFlow (#51)
Hi,
There's a msg in my mailbox that causes the line int ascii = int.Parse(match.Value.Replace("=",string.Empty), System.Globalization.NumberStyles.HexNumber);
in the decodeQuotedPrintable method to throw a StackOverFlow Exception claiming that the value was to big or to small to be an integer.
The previous
int ascii = int.Parse(match.Value.Substring(1), System.Globalization.NumberStyles.HexNumber);
works fine on the same message.
I don't know what would help you to find out what's wrong so just tell me...
Reply to this email directly or view it on GitHub: https://github.com/andyedinborough/aenetmail/issues/51
Failed parsing "=0D=0A=0D=0A=0D=0A" as an integer
Hi,
There's a msg in my mailbox that causes the line
int ascii = int.Parse(match.Value.Replace("=",string.Empty), System.Globalization.NumberStyles.HexNumber);
in the decodeQuotedPrintable method to throw a StackOverFlow Exception claiming that the value was to big or to small to be an integer.The previous
int ascii = int.Parse(match.Value.Substring(1), System.Globalization.NumberStyles.HexNumber);
works fine on the same message.I don't know what would help you to find out what's wrong so just tell me...