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 "Chris Darroch (JIRA)" <ji...@apache.org> on 2006/10/03 23:48:19 UTC

[jira] Created: (AXIS2C-322) calls to NULL pointers in wsdl10/msg_ref.c

calls to NULL pointers in wsdl10/msg_ref.c
------------------------------------------

                 Key: AXIS2C-322
                 URL: http://issues.apache.org/jira/browse/AXIS2C-322
             Project: Axis2-C
          Issue Type: Bug
          Components: woden
    Affects Versions: Current (Nightly), 0.94
            Reporter: Chris Darroch
            Priority: Minor


In woden/src/wsdl10/msg_ref.c the following code is repeated often:

    if (!msg_ref)
    {
        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
    }
    else
        msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;

    woden_wsdl10_msg_ref_free_ops(msg_ref, env);

This won't actually work if msg_ref is NULL, because although create() runs OK, the
call to woden_wsdl10_msg_ref_free_ops() then fails with a segfault.

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Assigned: (AXIS2C-322) calls to NULL pointers in wsdl10/msg_ref.c

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-322?page=all ]

Dinesh Premalal reassigned AXIS2C-322:
--------------------------------------

    Assignee: Dinesh Premalal

> calls to NULL pointers in wsdl10/msg_ref.c
> ------------------------------------------
>
>                 Key: AXIS2C-322
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-322
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: woden
>    Affects Versions: Current (Nightly), 0.94
>            Reporter: Chris Darroch
>         Assigned To: Dinesh Premalal
>            Priority: Minor
>
> In woden/src/wsdl10/msg_ref.c the following code is repeated often:
>     if (!msg_ref)
>     {
>         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
>     }
>     else
>         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
>     woden_wsdl10_msg_ref_free_ops(msg_ref, env);
> This won't actually work if msg_ref is NULL, because although create() runs OK, the
> call to woden_wsdl10_msg_ref_free_ops() then fails with a segfault.

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Commented: (AXIS2C-322) calls to NULL pointers in wsdl10/msg_ref.c

Posted by "Chris Darroch (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2C-322?page=comments#action_12447079 ] 
            
Chris Darroch commented on AXIS2C-322:
--------------------------------------

I'm not sure this is completely fixed.  First, see AXIS2C-384 about similar
problems elsewhere in woden.  Second, if I read the new code right, it
will return NULL in the case where msg_ref is NULL on input, because
it never assigns the value of msg_ref_impl that's created by create(env)
back to msg_ref ... but then it returns msg_ref, which will just be NULL.

Maybe I'm wrong; I haven't tested it.

> calls to NULL pointers in wsdl10/msg_ref.c
> ------------------------------------------
>
>                 Key: AXIS2C-322
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-322
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: woden
>    Affects Versions: Current (Nightly), 0.94
>            Reporter: Chris Darroch
>         Assigned To: Dinesh Premalal
>            Priority: Minor
>             Fix For: 0.95
>
>
> In woden/src/wsdl10/msg_ref.c the following code is repeated often:
>     if (!msg_ref)
>     {
>         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
>     }
>     else
>         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
>     woden_wsdl10_msg_ref_free_ops(msg_ref, env);
> This won't actually work if msg_ref is NULL, because although create() runs OK, the
> call to woden_wsdl10_msg_ref_free_ops() then fails with a segfault.

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


[jira] Resolved: (AXIS2C-322) calls to NULL pointers in wsdl10/msg_ref.c

Posted by "Dinesh Premalal (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-322?page=all ]

Dinesh Premalal resolved AXIS2C-322.
------------------------------------

    Fix Version/s: 0.95
       Resolution: Fixed

> calls to NULL pointers in wsdl10/msg_ref.c
> ------------------------------------------
>
>                 Key: AXIS2C-322
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-322
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: woden
>    Affects Versions: Current (Nightly), 0.94
>            Reporter: Chris Darroch
>         Assigned To: Dinesh Premalal
>            Priority: Minor
>             Fix For: 0.95
>
>
> In woden/src/wsdl10/msg_ref.c the following code is repeated often:
>     if (!msg_ref)
>     {
>         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) create(env);
>     }
>     else
>         msg_ref_impl = (woden_wsdl10_msg_ref_impl_t *) msg_ref;
>     woden_wsdl10_msg_ref_free_ops(msg_ref, env);
> This won't actually work if msg_ref is NULL, because although create() runs OK, the
> call to woden_wsdl10_msg_ref_free_ops() then fails with a segfault.

-- 
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org