cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Working with curl connections as with sockets.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 6 May 2008 10:21:31 +0200 (CEST)

On Tue, 6 May 2008, tetetest tetetest wrote:

>> Hypothetically, what is the worst that could happen if we just do the cast
>> and one of the krb libs *does* touch the buffer?
>
> A SIGSEGV. :) Compiler can place const data into read-only memory page, so
> any attempt to modify it will result in access violation.

Right, but that would require us to use constant data in the first place and I
don't see this happening. We pass in a buffer in memory that we fill with data
in an earlier function.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-05-06

These mail archives are generated by hypermail.

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

File upload with ASP.NET