[ros-dev] Re: [ros-diffs] [gvg] 18410: Terminate the new environment with a NULL pointer

Gunnar Dalsnes hardon at online.no
Wed Oct 12 15:22:42 CEST 2005


There are probably dozens of bugs like that lurking around in crt, 
exposed by malloc not zeroing memory anymore...

gvg at 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;
>  }
> 


More information about the Ros-dev mailing list