Subject: Re: lib/24318
To: None <riz@netbsd.org>
From: Christian Biere <christianbiere@gmx.de>
List: netbsd-bugs
Date: 05/14/2005 00:17:06
Christian Biere wrote:
> riz@netbsd.org wrote:
> > Synopsis: Parser bugs in getttyent(), getttynam()
  
> > State-Changed-Why:
> > christos fixed this as PR#28183.

> tty.ty_class is still not initialized. As tty is declared static
> it is NULL the first time used but it's then never reset to NULL.

It's actually a little worse because "line" is freed in this version,
so tty.ty_class might point to a deallocated memory chunk.

-- 
Christian