Wireshark-bugs: [Wireshark-bugs] [Bug 3733] Problem in packet-per.c for ASN.1 PER Encoding
Date: Wed, 15 Jul 2009 04:54:15 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3733


Tomasz Kasowicz <Tomasz.Kasowicz@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #3338 is|0                           |1
           obsolete|                            |




--- Comment #4 from Tomasz Kasowicz <Tomasz.Kasowicz@xxxxxxxxx>  2009-07-15 04:54:10 PDT ---
Created an attachment (id=3344)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=3344)
Decoding Bit String for unalligned case

I think the solution needs a little more logic here.
We need to know whether we have to cross to boundaries of byte and based on BIT
STRING length we need to know if we should read either 1 or 2 bytes.

Also we need to make sure that when we are reading the bit string with even
bytes (particularly 8 Bits stored in unaligned 2 bytes), we need to make sure
that we are cutting unnecessary bits correctly.
Probably additional array is needed for that.

Thanks
Tomasz


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.