From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KFz2l-0002MY-IJ for mharc-grub-devel@gnu.org; Mon, 07 Jul 2008 18:18:47 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFz2i-0002KQ-G4 for grub-devel@gnu.org; Mon, 07 Jul 2008 18:18:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFz2h-0002J3-Cn for grub-devel@gnu.org; Mon, 07 Jul 2008 18:18:44 -0400 Received: from [199.232.76.173] (port=52924 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFz2h-0002It-8O for grub-devel@gnu.org; Mon, 07 Jul 2008 18:18:43 -0400 Received: from ns39764.ovh.net ([91.121.25.85]:55960 helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KFz2g-0000Bn-O8 for grub-devel@gnu.org; Mon, 07 Jul 2008 18:18:42 -0400 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id 57E013DC69 for ; Tue, 8 Jul 2008 00:23:43 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Tue, 8 Jul 2008 00:18:34 +0200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200807080018.35215.okuji@enbug.org> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: a bug in read X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2008 22:18:45 -0000 Hello, I have noticed that read.c has a bug. In this line: while ((line[i - 1] != '\n') && (line[i - 1] != '\r')) LINE is not initialized yet at the first time, so this refers to a uninitialized location. Regards, Okuji