[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: LOCALE: Don't copy value if buffer is too small
From:       Fabian Cenedese <Cenedese () indel ! ch>
Date:       2004-02-26 7:27:41
Message-ID: 5.2.0.9.1.20040226082046.01be2068 () NT_SERVER
[Download RAW message or body]


>> Ok, I saw that you fixed the WCHAR/byte mess. But there is still a possibility that
>> the function can copy a string longer than buffer if it already has an appended null.
>
>That shouldn't happen, NtQueryValue should have signaled an overflow
>in that case. Do you have a test case showing the problem?

Hmm.. not anymore. My program that failed works fine now. I started this
patch when I assumed that the length argument is in bytes. But as you
now changed all calls to WCHAR it doesn't even get to the copying
anymore. So I'm sorry, forget that patch.

Thanks

bye   Fabi



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic