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

Possible seg fault looking for transport http prefix if specified URL omits :

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.2.0
    • core/clientapi
    • None
    • Windows XP, Visual Studio 2005

    Description

      In op_client.c, the function axis2_get_transport_from_url() is used to analyze the prefix to the URL. If the URL is malformed and does not contain a colon, the scan runs off the end of the url string.

      The loop that reads:
      start = url;
      end = url;
      while (end && (*end) != ':')
      end++;
      should read:
      start = url;
      end = url;
      while ((*end) && (*end) != ':')
      end++;

      I'll admit to coming across this by inspection while tracking another problem. I have not actually forced the seg fault, as the loop will usually find a colon somewhere in memory and return a very large transport string.

      Attachments

        1. diff.txt
          0.7 kB
          Senaka Fernando

        Activity

          People

            xydinesh Dinesh Weerapurage
            wtmitchell3 Bill Mitchell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: