[ros-dev] Re: [ros-diffs] [weiden] 16553: handle memory allocation errors in GetEnvironmentVariable() and ensure the string is always null-terminated

Thomas Weidenmueller w3seek at reactos.com
Wed Jul 13 19:36:51 CEST 2005


Joseph Galbraith wrote:
> If it is, RtlQueryEnvironmentVariable_U() could succeeded even
> if a zero length buffer is passed in.  And then, would we crash
> appending the NUL termination?

That's true, i forgot to handle that case, it should be fixed in r16555.

Best Regards,
Thomas


More information about the Ros-dev mailing list