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

List:       wine-devel
Subject:    Re: Resent^2 : Zero out return string in GetMenuStr
From:       Alexandre Julliard <julliard () winehq ! org>
Date:       2005-03-29 19:20:23
Message-ID: 87is3ants8.fsf () wine ! dyndns ! org
[Download RAW message or body]

Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> writes:

> Alexandre,
> 
> also before, there was a NULL written to position Zero of the
> string. However there where some checks and function calls that could
> return Zero but didn't touch the string. Now there is only a check 
> that the argument is a pointer before the Null is written. What should be
> done in another way?

The existing code checks nMaxSiz before writing, you should do the
same.

-- 
Alexandre Julliard
julliard@winehq.org

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

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