[jira] [Created] (AXIS2C-1666) base64 ignore some whitespaces

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (AXIS2C-1666) base64 ignore some whitespaces

JIRA jira@apache.org
julien soula created AXIS2C-1666:
------------------------------------

             Summary: base64 ignore some whitespaces
                 Key: AXIS2C-1666
                 URL: https://issues.apache.org/jira/browse/AXIS2C-1666
             Project: Axis2-C
          Issue Type: Improvement
          Components: util
    Affects Versions: 1.6.0
            Reporter: julien soula


fonctions axutil_base64_decode_len() and
axutil_base64_decode_binary() in util/src/base64.c stop decoding
at the first invalid character. That leads to incorrect decoding
for e.g. certificats which break line with newline character.

I propose to ignore whitespaces (' \n\t') in counting and
deconding (find patch against git version 3f9608128b1790392e3fad9863432e82cebb706d here :
http://j2s2.geekjide.com/base64_whitespaces.patch)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]