Subject: Re: install/34206: segmentation fault in sysinst
To: None <install-manager@netbsd.org, gnats-admin@netbsd.org,>
From: =?ISO-8859-1?Q?St=E9phane_Witzmann?= <stephane.witzmann@gmail.com>
List: netbsd-bugs
Date: 09/05/2006 00:25:02
The following reply was made to PR install/34206; it has been noted by GNATS.

From: "=?ISO-8859-1?Q?St=E9phane_Witzmann?=" <stephane.witzmann@gmail.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: install/34206: segmentation fault in sysinst
Date: Tue, 5 Sep 2006 02:21:24 +0200

 Fixed by the following patch (to apply in src/distrib/utils/sysinst).
 NULL destination buffer with length 1 caused the crash later in
 strlcpy.
 
 
 --- ../sysinst.bak/mbr.c        2006-06-10 16:48:46.000000000 +0200
 +++ mbr.c       2006-09-05 02:12:29.000000000 +0200
 @@ -315,7 +315,7 @@ err_msg_win(const char *errmsg)
                 l = l1;
 
         msg_prompt_win("%s.\n%s", -1, 18, l + 5, 4,
 -                       NULL, NULL, 1, errmsg, cont);
 +                       NULL, NULL, 0, errmsg, cont);
         return 0;
  }