Re: winemac: Null-terminate an snprintf-ed key name buffer in case of short buffer.
28 Mar
2013
28 Mar
'13
2:26 a.m.
On Wed, Mar 27, 2013 at 7:22 PM, Ken Thomases <ken(a)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? Regards, -- Per Johansson
28 Mar
28 Mar
5:40 a.m.
New subject: winemac: Null-terminate an snprintf-ed key name buffer in case of short buffer.
On Mar 28, 2013, at 2:26 AM, Per Johansson wrote:
On Wed, Mar 27, 2013 at 7:22 PM, Ken Thomases <ken(a)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
4641
Age (days ago)
4641
Last active (days ago)
1 comments
2 participants
participants (2)
-
Ken Thomases -
Per Johansson