Menu

#3 Access violation in msvcr...dll while posting file

open-fixed
nobody
None
5
2009-12-22
2009-12-22
No

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

Discussion

  • Eric de Lange

    Eric de Lange - 2009-12-22

    Cleared the Curl_HttpPost

     
  • Eric de Lange

    Eric de Lange - 2009-12-22

    Added soem fields to the records

     
  • Eric de Lange

    Eric de Lange - 2009-12-22
    • status: open --> open-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.