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

Robert Schweikert updated AXIS2C-1522:
--------------------------------------

    Attachment: axis2c_initBuffer_curl.patch

The attached patch fixes both problems by 
a.) initializing the 'content_type' pointer
b.) remove the & operator

> Enabling curl support triggers build error - Code issue may trigger memory 
> corruption
> -------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1522
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1522
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: core/transport
>    Affects Versions: 1.6.0
>         Environment: openSUSE 11.3
> turn warnings into errors
>            Reporter: Robert Schweikert
>         Attachments: axis2c_initBuffer_curl.patch
>
>
> Using configure --enable-libcurl triggers the following compile errors when 
> warnings are turned into errors at compile time:
> libcurl/axis2_libcurl.c: In function 'axis2_libcurl_send':
> libcurl/axis2_libcurl.c:114:19: error: 'content_type' may be used 
> uninitialized in this function
> libcurl/axis2_libcurl.c: In function 'axis2_libcurl_send':
> libcurl/axis2_libcurl.c:143:5: error: call to 
> '_curl_easy_setopt_err_error_buffer' declared with attribute warning: 
> curl_easy_setopt expects a char buffer of CURL_ERROR_SIZE as argument for 
> this option
> While the first error is harmless as 'content_type' is not used in an 
> uninitialized fashion, the second error has the potential to trigger memory 
> corruption if an error occurs. 

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to