[Gc] network data and libgc security/reliability

Boehm, Hans hans.boehm at hp.com
Tue May 8 17:55:02 PDT 2007

Thanks.  I added the comment to gc_cpp.h, and will check that in
If someone wants to submit a patch for the latter ...


> -----Original Message-----
> From: gc-bounces at napali.hpl.hp.com 
> [mailto:gc-bounces at napali.hpl.hp.com] On Behalf Of Christophe Meessen
> Sent: Monday, May 07, 2007 2:50 AM
> To: gc at napali.hpl.hp.com
> Subject: [Gc] network data and libgc security/reliability
> Hello,
> A few weeks ago I asked about the security of libgc when 
> dealing with data comming from the network. I was told that 
> the only risk was a memory leak. In fact this risk can be 
> completely avoided by storing network data into none inspected blocks.
> In C++ one would allocate such blocks in this way
>   short* data = new (PointerFreeGC) short[64*1024];
> Adding this example and possible use case in the comment at 
> the top of the gc_cpp.h file could help users like me.
> Adding C++ support for the following allocation calls could 
> also be very usefull.
> In fact I would need the later one for my buffers holding the 
> PDUs and the former for most classes I use. A gc base class 
> variant would do the job I guess.
> _______________________________________________
> Gc mailing list
> Gc at linux.hpl.hp.com
> https://www.hpl.hp.com/hosted/linux/mail-archives/gc/

More information about the Gc mailing list