snnagar / apns-sharp

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

Crashes for bad Device Token #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Intentionally give bad device token
2. Crashes at this line in Notification.cs
buffer[start + b] = Convert.ToByte(DeviceToken.Substring(i, 2), 16);

Probably need to add a Try Catch Exception so that it doesn't complely
crash the service

Original issue reported on code.google.com by mtun...@gmail.com on 29 Jan 2010 at 10:19

GoogleCodeExporter commented 9 years ago
I will add some additional checking to ensure that an invalid devicetoken 
doesn't cause 
this.  Obviously in the meantime, do your own validation.

Original comment by jond...@gmail.com on 25 Feb 2010 at 4:26

GoogleCodeExporter commented 9 years ago
I think you have some old code. Please check out the latest svn

Original comment by jond...@gmail.com on 28 Feb 2010 at 11:43