[ 
https://issues.apache.org/jira/browse/AXIS2C-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12803329#action_12803329
 ] 

Olivier Mengué commented on AXIS2C-1439:
----------------------------------------

The consequence of this bug is that UUID are not so uniques:

Here some code and its output:

#include <axis2_util.h>
int main(int argc, char *argv[])
{
        const axutil_env_t *env = NULL;
        axis2_char_t *uuid;
        int count = 1;

        env = axutil_env_create_all("./uuid.log", AXIS2_LOG_LEVEL_TRACE);
        if (argc == 2)
                count = atoi(argv[1]);
        while (count--) {
                uuid = axutil_uuid_gen(env);
                printf("%d %s\n", argc, uuid);
                AXIS2_FREE(env->allocator, uuid);
        }
        axutil_env_free((axutil_env_t *) env);
        return 0;
}


Output :
1 62bc66d8-06a1-1df1-3165-000000000000

(the last part is only zeroes)

> AIX: axutil_uuid_get_mac_addr() returns NULL => uuid with zeroes
> ----------------------------------------------------------------
>
>                 Key: AXIS2C-1439
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1439
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: platforms/unix
>    Affects Versions: 1.6.0, 1.7.0, Current (Nightly)
>         Environment: AIX 5.3
>            Reporter: Olivier Mengué
>
> axutil_uuid_get_mac_addr() return NULL on AIX 5.3.
> The axutil_uuid_get_mac_addr() implementation is the default one (neither 
> HAVE_LINUX_IF_H or HAVE_GETIFADDRS defined).
> Note that the case of axutil_uuid_get_mac_addr() returning NULL is not 
> handled in axutil_uuid_gen_v1(), so invalid memory access occurs.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to