cURL / Mailing Lists / curl-library / Single Mail


Re: Working with curl connections as with sockets.

From: Daniel Stenberg <>
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:
Received on 2008-05-06