There are probably dozens of bugs like that lurking around in crt,
exposed by malloc not zeroing memory anymore...
gvg(a)svn.reactos.com wrote:
Terminate the new environment with a NULL pointer
Modified: trunk/reactos/lib/crt/misc/environ.c
------------------------------------------------------------------------
*Modified: trunk/reactos/lib/crt/misc/environ.c*
--- trunk/reactos/lib/crt/misc/environ.c 2005-10-12 08:38:45 UTC (rev 18409)
+++ trunk/reactos/lib/crt/misc/environ.c 2005-10-12 13:00:34 UTC (rev 18410)
@@ -178,6 +178,7 @@
return original_environment;
}
}
+ *newenvptr = NULL;
return newenv;
}