[Snort-devel] Commentary and patch for snort 1.8.3

Fyodor fygrave at ...1...
Mon Jan 14 12:38:09 EST 2002


On Mon, Jan 14, 2002 at 02:16:48PM -0500, Martin Roesch wrote:
> > 
> > It is only referenced once in the subroutine:
> > 
> >   snprintf(pv.pid_path, STD_BUF, "%s/", log_dir);
> > 
> > I don't think it has been initialized by the time the  above code is
> > executed.
> 
> Isn't snprintf() supposed to auto-terminate the string?
> 

no, the issue is different, I think log_dir is actually meant to be
pv.log_dir.

-- 
http://www.notlsd.net
PGP fingerprint = 56DD 1511 DDDA 56D7 99C7  B288 5CE5 A713 0969 A4D1




More information about the Snort-devel mailing list