Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1522

Enabling curl support triggers build error - Code issue may trigger memory corruption

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0
    • 1.7.0
    • core/transport
    • None
    • openSUSE 11.3
      turn warnings into errors

    Description

      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.

      Attachments

        1. axis2c_initBuffer_curl.patch
          1.0 kB
          Robert Schweikert

        Activity

          People

            samisa Don Samisa Abeysinghe
            rjschwei Robert Schweikert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: