mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
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.
This commit is contained in:
parent
5aa025d9e4
commit
18d060c68d
@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <WINNT/TaLocale.h>
|
#include <WINNT/TaLocale.h>
|
||||||
|
#undef REALLOC /* RT ticket 2120; So we can redefine it later */
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <commctrl.h>
|
#include <commctrl.h>
|
||||||
#include <regstr.h>
|
#include <regstr.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user