ntdll: Fix RtlIntegerToUnicodeString so it won't overflow

James Hawkins truiken at gmail.com
Thu May 8 14:56:03 CDT 2008


On Thu, May 8, 2008 at 1:41 PM, Dan Kegel <dank at kegel.com> wrote:
> James wrote:
>> > It copies str->Length + sizeof(WCHAR) to the destination buffer
>> > according to james' testcases.
>>
>> No, the length is indeterminate.
>
> Oh, is that the test that checks whether not double-null terminating
> works?  I think that test needs rewriting to be determinate...
> e.g. by putting in a list that has known bad (but properly terminated)
> elements after the nominal end, and making sure the bad part
> doesn't get processed... or something...
>

No, this is a different test.

-- 
James Hawkins



More information about the wine-devel mailing list