We're now a non-profit! Support open source packet analysis by making a donation.

Wireshark-dev: Re: [Wireshark-dev] ASN.1 bit string alignment

From: Anders Broman <[email protected]>
Date: Fri, 26 Mar 2010 21:52:51 +0100
Looks like a bug, please make a bug report and attach a sample trace.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Neil Piercy
Sent: den 22 mars 2010 19:31
To: Developer support list for Wireshark
Subject: [Wireshark-dev] ASN.1 bit string alignment

In 1.0.x PER ASN.1 bit strings used to be padded in the MSBs, (e.g.
extract from an RRC message):

dl-HFN: 00000004 [bit length 25]

Since 1.2.x they appear to be padded in the LSBs (e.g. the same

dl-HFN: 00000200 [bit length 25]

The value carried in both cases above is meant to be 4.

Is this a deliberate change?

I know bit strings are of arbitrary length, therefore a "natural"
representation is challenging, but I find the above counter-intuitive.


This message contains confidential information and may be privileged. If you are not the intended recipient, please notify the sender and delete the message immediately.

ip.access Ltd, registration number 3400157, Building 2020, Cambourne Business Park, Cambourne, Cambridge CB23 6DW, United Kingdom ___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <[email protected]>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:[email protected]?subject=unsubscribe