cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: bitmap buffer (c++)

From: Jeff Pohlmeyer <yetanothergeek_at_gmail.com>
Date: Thu, 13 Nov 2008 12:18:57 -0600

On Nov 13, 2008, <iamsal_at_interfree.it> wrote:

> memcpy(temp->imageData,buffer,temp->imageSize);<----HERE THERE IS A CRASH

 I am not familiar with cvCreateImage() but it sure looks like
 you need some check that memcpy does not read past the end of
 the buffer, or even if the buffer contains any data at all.

Also, your friends are:
  CURLOPT_VERBOSE, CURLINFO_RESPONSE_CODE, CURLINFO_SIZE_DOWNLOAD

 - Jeff
Received on 2008-11-13