axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes Munsil (JIRA)" <>
Subject [jira] [Created] (AXIS2C-1628) axiom_node_create_from_buffer modifies the buffer.
Date Tue, 05 Mar 2013 23:00:12 GMT
Wes Munsil created AXIS2C-1628:

             Summary: axiom_node_create_from_buffer modifies the buffer.
                 Key: AXIS2C-1628
             Project: Axis2-C
          Issue Type: Bug
            Reporter: Wes Munsil
            Priority: Blocker

axiom_node_create_from_buffer modifies the buffer. Running this code

    char * xml =  strdup("<foo>T1 &amp; T2</foo>");

    AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "before: %s", xml);
    axiom_node_create_from_buffer(env, xml);
    AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "after:  %s", xml);

produces this output:

    before: <foo>T1 &amp; T2</foo>
    after:  <foo>T1 & T2; T2</foo>

In some environments, if the strdup is omitted, a SEGV results, presumably on attempting to
modify the string literal.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message