]> git.michaelhowe.org Git - packages/o/openafs.git/commit
winnt-avoid-leak-and-memory-corruption-in-afscreds-20030915
authorJeffrey Altman <jaltman@columbia.edu>
Mon, 15 Sep 2003 22:02:25 +0000 (22:02 +0000)
committerDerrick Brashear <shadow@dementia.org>
Mon, 15 Sep 2003 22:02:25 +0000 (22:02 +0000)
commit18d060c68d32807b1c694e58ae524d817d46266c
tree49a04f6be09105bec9043dbd5fc23cdfea614361
parent5aa025d9e46a47811818ae14d371837d5e518f48
winnt-avoid-leak-and-memory-corruption-in-afscreds-20030915

FIXES 2120

WINNT/talocale/TaLocale.h conditionally defines REALLOC() to
TaLocaleReallocFunction().

WINNT/client_creds/afscred.h  conditionally defines REALLOC() to
AfsCredsReallocFunction().

Unfortunately, AfsCredsReallocFunction is never used because REALLOC is
always defined first by an include of Talocale.h within afscreds.h.
This is a problem because it results in memory being allocated within a
DLL and then freed by the EXE.  This results in both a memory leak in
the DLL and memory corruption in the EXE.
src/WINNT/client_creds/afscreds.h