caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Oliver Bandel <oliver@first.in-berlin.de>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Safe marshall?
Date: Wed, 16 Feb 2005 23:55:34 +0100	[thread overview]
Message-ID: <20050216225534.GA556@first.in-berlin.de> (raw)
In-Reply-To: <059442cb47f5e19bca230316a6ae6261@fas.harvard.edu>

On Wed, Feb 16, 2005 at 05:07:55PM -0500, Mike Hamburg wrote:
> Is there any way to call Marshall in a type-safe way?  I need to use 
> marshaling for a networking program, and I'd rather not leave Marshal 
> as an arbitrary code execution vulnerability (which it is as far as I 
> can tell: switching on a Marshaled value should produce a computed 
> jump, which can be set by an attacker to point to an arbitrary place).  
> Am I stuck writing my own marshal function?

Is it possible to say a C-function *anything* about a datastructure's structure?
Via the C-interface of OCaml?!

If so.... at least under Mac OS-X it should be possible to solve that task
with Objective-C. It can dump objects completely.

So this -  at least on this platform - would be possible then.

But IMHO this may not be possible with all Objective-C implementations.

Ciao,
  Oliver


  reply	other threads:[~2005-02-16 22:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-16 22:07 Mike Hamburg
2005-02-16 22:55 ` Oliver Bandel [this message]
2005-02-17  0:11   ` [Caml-list] " Mike Hamburg
2005-02-18  5:26     ` Oliver Bandel
2005-02-17  9:39 ` Gerd Stolpmann
2005-02-17 23:14   ` Eric Stokes
2005-02-18  5:29     ` Oliver Bandel
2005-02-18  9:41       ` Gerd Stolpmann
2005-02-18 10:10         ` Gerd Stolpmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050216225534.GA556@first.in-berlin.de \
    --to=oliver@first.in-berlin.de \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).