sopheaplao / jasn

Automatically exported from code.google.com/p/jasn
0 stars 0 forks source link

AsnOutputStream.writeLength(int v) bad encoding when v>127 (long length) #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
AsnOutputStream.writeLength(int v):

When encoding length field via writeLength(int v) method (not via 
FinalizeContent()) if length value > 127 (long length style) length is encoded 
with a leading zero byte.
This is correct from syntax point of view but the specification demands coding 
without such leading zero bytes and some SS7 peers reject such requests.

Original issue reported on code.google.com by serg.vet...@gmail.com on 24 Jun 2013 at 9:32

GoogleCodeExporter commented 9 years ago
Fuxed: 

https://code.google.com/p/jasn/source/detail?r=a5d9863b2a21130b3725bb63a79506457
95e0a16

Original comment by serg.vet...@gmail.com on 24 Jun 2013 at 9:54

GoogleCodeExporter commented 9 years ago

Original comment by amit.bha...@gmail.com on 3 Nov 2013 at 12:26