[Mono-list] RE: Mono-list digest, Vol 1 #71 - 5 msgs

Michael Lambert michaellambert@email.com
Fri, 24 Aug 2001 12:58:40 -0400


> From: "Martin Coxall" <martin.coxall@itouch.co.uk>
> Subject: Re: [Mono-list] System.Drawing.Drawing2D
> Date: Fri, 24 Aug 2001 10:51:49 +0100
>
> > why not something like
> > public unsafe override int GetHashCode()
> > {
> > fixed(float * fp = m) {
> > int * ip = (int *) fp;
> > return ip[0] ^ ip[1] ^ ip[2] ^ ip[3];
> > }
> > }
>
> I think we should avoid unsafe code blocks in the Mono libraries. All
> Microsoft's libraries pass the verifier's tests, and if we want Mono's
> codebase to be trusted, I think we should attempt to do the same.
>
> Martin
>

I don't think that is going to be possible to avoid unsafe code block.  We will
be wrapping some API layers and need to store pointers to the unmanaged space to
do this.  MS own libraries use unsafe blocks in the core library.

What we can do is digitially sign builds of the assembly.  John Doe Third Party
could build Mono and sign it using their own signature.  This is a value add
service a distributor can provide to the public.

Michael Lambert