On Sat, 13 Oct 2007, Nigel Liang wrote:
Hi,
InternectCrackUrlW calls strchrW which assumes a NULL-terminated string. Will crash without NULL termination if you upload/download for long period of time.
The MSDN has this to say about InternetCrackUrlW():
dwUrlLength Size of the lpszUrl string, in TCHARs, or zero if lpszUrl is an ASCIIZ string.
So if InternetCrackUrlW() assumes that lpwszUrl is zero-terminated then it is buggy. So the fix belong in InternetCrackUrlW(), not in InternetCrackUrlA().