You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Robert Lazarski (Jira)" <ji...@apache.org> on 2026/01/10 17:25:00 UTC

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

     [ https://issues.apache.org/jira/browse/AXIS2C-1666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Lazarski resolved AXIS2C-1666.
-------------------------------------
    Resolution: Fixed

The attached patch has an HTTP 404 now but anyways RFC 2045 mandates Base64 skipping white space, so the fix was clear. 

A unit test was added to confirm the fix.  

> 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
>            Assignee: Robert Lazarski
>            Priority: Major
>              Labels: patch
>             Fix For: 2.0.0
>
>
> 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
(v8.20.10#820010)

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