directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <>
Subject [jira] Updated: (DIRSNICKERS-108) Wrong int encoding in Value
Date Fri, 23 Sep 2005 07:24:29 GMT
     [ ]

Emmanuel Lecharny updated DIRSNICKERS-108:

    Priority: Blocker  (was: Major)

I rised the issue as blocker again, because the problem we have occurs in Snickers and Twix.

The encoding of a positive value which high bit is 1 should be totally differnet than the
one we obtain :

128 should be encoded as : 0x00 0x80, not 0x80. (ASN.1 BER Encoding)

The encoding of negative value is totally wrong, it seems.

The patch does not resolve those issue, thus it was not applied, except that the idea of substituing
textual constant is a really good one and will be applied.

Investigation and tests are still going on.

Thanks Jérôme, for this accurate report !

> 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