directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <>
Subject [jira] Resolved: (DIRSNICKERS-108) Wrong int encoding in Value
Date Sat, 24 Sep 2005 15:47:27 GMT
     [ ]
Emmanuel Lecharny resolved DIRSNICKERS-108:

    Resolution: Fixed

Ok, with huge modifications, this problem has been fixed !

Basically, using previous BER code wrote for Snickers was much easier than trying to bringing
back from university all this binary theory I have forgotten ...

It drove me to modify the encoding and decoding of Integer, and had a side effect on Boolean

Everything should be on track again...

Thanks Jérôme for the sharp reports, and for the time you dedicated on this f****g problem

btw, using BigInteger is not an option : it's 24x slower than doing it the way Snickers does

WARNING : This is NOT compliant with ASN.1 BER, as the biggest ASN.1 BER integer is supposed
to be 256^126 - 1

> Wrong int encoding in Value
> ---------------------------
>          Key: DIRSNICKERS-108
>          URL:
>      Project: Directory ASN1
>         Type: Bug
>   Components: BER Runtime
>     Reporter: Jérôme Baumgarten
>     Assignee: Emmanuel Lecharny
>     Priority: Blocker
>  Attachments: Value.patch
> Hi,
> Encoding is buggy for int value in the org.apache.asn1new.ber.tlv.Value class. The affected
methods are :
> * public static int getNbBytes( int value )
> * public static byte[] getBytes( int value )
> Regards,
> Jérôme

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message