TReKiE / msnp-sharp

Automatically exported from code.google.com/p/msnp-sharp
0 stars 0 forks source link

Invalid length for a Base-64 char array. #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Receive an offline im (may take many tries with different messages)

What is the expected output? What do you see instead?
Expect not to crash.
instead received error: Exception has been thrown by the target of an
invocation.

What version of the product are you using? On what operating system?
MSNPSharp_205_stable_src.zip

Please provide any additional information below.
I tracked this down to OIMService.cs
error caused by:
regmsg.Match(e.Result.GetMessageResult).Value.Trim()
this can result in the "=" or "==" being trimmed off the end of a base64
encoded string, which causes the Convert.FromBase64String to throw an
unhandled exception.

Not sure this this same issue will occur in other places.

Original issue reported on code.google.com by duffy.a...@gmail.com on 29 Aug 2008 at 1:52

GoogleCodeExporter commented 9 years ago
Hi, just try the code in
http://msnp-sharp.googlecode.com/svn/trunk/MSNP-Sharp15
It's hard to reproduce the error. I don't know whether I've fixed it.

Original comment by freezing...@gmail.com on 7 Sep 2008 at 1:21

GoogleCodeExporter commented 9 years ago

Original comment by hepha...@gmail.com on 23 Jan 2009 at 5:41