You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Henri Yandell (JIRA)" <ji...@apache.org> on 2006/07/14 07:27:30 UTC

[jira] Updated: (CODEC-5) [codec] Hex converts illegal characters to 255

     [ http://issues.apache.org/jira/browse/CODEC-5?page=all ]

Henri Yandell updated CODEC-5:
------------------------------

    Bugzilla Id:   (was: 28455)
    Fix Version: 1.3

> [codec] Hex converts illegal characters to 255
> ----------------------------------------------
>
>          Key: CODEC-5
>          URL: http://issues.apache.org/jira/browse/CODEC-5
>      Project: Commons Codec
>         Type: Bug

>     Versions: 1.2
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Gary Gregory
>      Fix For: 1.3

>
> List:       jakarta-commons-dev
> Subject:    [codec] Proposal for improvement Hex codec
> From:       Tom van den Berge <tom.vandenberge () bibit ! com>
> Date:       2004-04-15 8:49:31
> Message-ID: <407E4C9B.5070701 () bibit ! com>
> [Download message RAW]
> I'm using the Hex codec to decode e.g. the string "qq". What surprises 
> me is that this obviously illegal hex value is decoded into one byte 
> value 255. In fact all non-hex 'character-pairs' are decoded to value 255.
> Wouldn't it be better to throw a DecoderException if illegal characters 
> are passed in?
> The current implementation decodes values that is is actually not able 
> to decode, which is wrong.
> Cheers,
> Tom

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org