Re: snprintf, overlapping destination and source

2015-12-16 Thread Rasmus Villemoes
On Mon, Dec 07 2015, Kees Cook wrote: > On Sat, Dec 5, 2015 at 12:38 PM, Rasmus Villemoes > wrote: >> I did a search for code doing >> >> s[n]printf(buf, "...", ..., buf, ...) >> >> and found a few instances. They all do it with the format string >> beginning with "%s" and buf being passed as

Re: snprintf, overlapping destination and source

2015-12-07 Thread Kees Cook
On Sat, Dec 5, 2015 at 12:38 PM, Rasmus Villemoes wrote: > I did a search for code doing > > s[n]printf(buf, "...", ..., buf, ...) > > and found a few instances. They all do it with the format string > beginning with "%s" and buf being passed as the corresponding parameter > (obviously to append

Re: snprintf, overlapping destination and source

2015-12-05 Thread Julia Lawall
On Sat, 5 Dec 2015, Rasmus Villemoes wrote: > I did a search for code doing > > s[n]printf(buf, "...", ..., buf, ...) > > and found a few instances. They all do it with the format string > beginning with "%s" and buf being passed as the corresponding parameter > (obviously to append to the exi