cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-1847501 ] memcpy() in convert_lineends() should be memmove()

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 09 Dec 2007 13:41:19 -0800

Bugs item #1847501, was opened at 2007-12-09 16:41
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1847501&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: portability problem
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: chops_at_demiurgestudios.com (andrewmoise)
Assigned to: Daniel Stenberg (bagder)
Summary: memcpy() in convert_lineends() should be memmove()

Initial Comment:
  The libcurl in CVS has this line in convert_lineends() in lib/sendf.c:

     memcpy(startPtr, startPtr+1, size-1);

  This should obviously be memmove(), since startPtr and startPtr+1 are going to overlap.
  Cheers.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1847501&group_id=976
Received on 2007-12-09

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET