On Feb 2, 2007, at 15:56 , Joerg Schilling wrote:
If you copy the return data to door_arg->data_ptr, you may free it
before
you call door_return().
Unfortunately I don't know the size of the event, so that won't work.
If you like to return it via the door_return(char *data_ptr,
you could first copy it to an autromatic variable and then
free the original. And you could just use alloca() to get
the data space.
Excellent. I'll give this a try.
On Feb 2, 2007, at 16:00 , [EMAIL PROTECTED] wrote:
How much data is it? Can you copy it on the stack, free it and
return the
stack buffer?
It should be enough to fit on the stack, so using alloca() seems to
be the best solution.
Thanks!
cheers,
/Martin
--
Martin Englund, Java Security Engineer, Java SE, Sun Microsystems Inc.
Email: [EMAIL PROTECTED] Time Zone: GMT+2 PGP: 1024D/AA514677
"The question is not if you are paranoid, it is if you are paranoid
enough."
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code