Access violation in msvcr...dll while posting file
Status: Beta
Brought to you by:
tgeek
Had an access violation in strlen called from inside libcurl which was called by Curl.Perform. I tried to post a file wich was added with Curl.FormData.Add.
Found that showfilename was not initialized in Curl_HttpPost record allocated in tMultiPartFormData.Add. In curl-7.19.7\lib\formdata.c line 1242 post->showfilename is passed, which in some deeper level will be passed to strlen. There memory pointed to by showfilename is accessed which causes an access violation.
Fixed it by clearing the newly allocated record in curlpas-2005-11-05\src\ocurlcll.inc procedure tMultiPartFormData.Add.
Also added some new fields in the records in curl_h.pas to make them the same as curl-7.19.7\include\curl\curl.h
Cleared the Curl_HttpPost
Added soem fields to the records