[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: winemac: Null-terminate an snprintf-ed key name buffer in case of short buffer.
From: Ken Thomases <ken () codeweavers ! com>
Date: 2013-03-28 10:40:58
Message-ID: 6CDE425A-CA7F-45D7-87D2-F0DAE04CE600 () codeweavers ! com
[Download RAW message or body]
On Mar 28, 2013, at 2:26 AM, Per Johansson wrote:
> On Wed, Mar 27, 2013 at 7:22 PM, Ken Thomases <ken@codeweavers.com> wrote:
> > ---
>
> This has probably been discussed before, but shouldn't snprintfW be
> safe against this kind of thing, the way POSIX snprintf is?
I actually checked the man page for snprintf() when I originally wrote that code, \
which is why I assumed snprintfW() would terminate it. So, my vote is for "yes". :)
-Ken
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic