Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
-
Win
Description
In the axis2_stub_start_op_... generated code, the error fields are not set when memory allocation fails. The using code will assume the call succeeded because no error is set, while it actually failed (although out-of-mem is hopefully a rare situation).
See example code from the calculator example:
void AXIS2_CALL
axis2_stub_start_op_Calculator_add( axis2_stub_t *stub, const axutil_env_t *env,
:
:
callback_data = (struct axis2_stub_Calculator_add_callback_data*) AXIS2_MALLOC(env->allocator,
sizeof(struct axis2_stub_Calculator_add_callback_data));
if(NULL == callback_data)