Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.1.0
-
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.