[17246] in Kerberos_V5_Development
Re: GSS memory allocation initial cut for review
daemon@ATHENA.MIT.EDU (Kevin Wasserman)
Tue Oct 4 06:34:17 2011
Message-ID: <SNT101-DS16AC10DCD815C563AFAA65B5FB0@phx.gbl>
From: "Kevin Wasserman" <krwasserman@hotmail.com>
To: "Nico Williams" <nico@cryptonector.com>,
"Sam Hartman" <hartmans@painless-security.com>
In-Reply-To: <CAK3OfOgxX-2x23+hAjX4ygQ=DSoPZ-aJb4b6YxDE8MouQWvVnA@mail.gmail.com>
Date: Tue, 4 Oct 2011 06:34:13 -0400
MIME-Version: 1.0
Cc: kevin.wasserman@painless-security.com, krbdev@mit.edu
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: krbdev-bounces@mit.edu
We could pick a registry key that, if present, specifies the
dll and malloc/free functions to use and only fall back to
HeapAlloc if it's not set. Then the question becomes,
when do we check the registry key? On every alloc/free?
On process init?
-----Original Message-----
From: Nico Williams
Sent: Monday, October 03, 2011 2:54 PM
To: Sam Hartman
Cc: kevin.wasserman@painless-security.com ; krbdev@mit.edu
Subject: Re: GSS memory allocation initial cut for review
Sam, Kevin,
I've been meaning to comment on this...
I'm perfectly fine with a mechglue requiring that it's providers do
something in particular for memory allocation. The mechglue specifies
its own SPI, since no standard SPI exists, and memory allocation can
be part of the SPI.
Can we require *all* mechglues and providers in a process to do the
same? Well, on Unix it'd certainly work. Jeff explains that on
Windows this means losing the ability to use advanced memory debugging
libraries, which, to me, seems like a big deal.
At first glance I'm tempted to conclude that the problem is that one
mechglue cannot impose these sorts of requirements on other mechglues.
It seems like a matter of principle.
However, I wonder if we couldn't have an agreed convention that on
Windows mechglues must use a memory allocator provided by a specific
DLL, and let that DLL select an actual allocator via configuration.
Would this solve Jeff's issue? I think it should, but then, I'm not a
Windows expert.
Nico
--
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev
_______________________________________________
krbdev mailing list krbdev@mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev