Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N4l9M-0004nk-Rr for mharc-grub-devel@gnu.org; Sun, 01 Nov 2009 19:52:00 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4l9K-0004mC-Q8 for grub-devel@gnu.org; Sun, 01 Nov 2009 19:51:58 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4l9G-0004hy-3i for grub-devel@gnu.org; Sun, 01 Nov 2009 19:51:58 -0500 Received: from [199.232.76.173] (port=57708 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4l9G-0004hv-0d for grub-devel@gnu.org; Sun, 01 Nov 2009 19:51:54 -0500 Received: from mail-px0-f189.google.com ([209.85.216.189]:48245) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4l9F-0002Dw-I2 for grub-devel@gnu.org; Sun, 01 Nov 2009 19:51:53 -0500 Received: by pxi27 with SMTP id 27so3025707pxi.25 for ; Sun, 01 Nov 2009 16:51:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=E6LAf6JXZ5+g9kz7nxMJW4cxEz4xY5y1cnl5tiXO++w=; b=Kb/J5ZK8e3lFUWx+/ZOEw70qRPCr8oZloAEvMGxYKw12UxwcQZiIysFoBd2yhoWdks gZb2hp8ILKco0LBO6J4cnHCwnxPFttP68LCcHs1Foa0CoFz/RswGbOB5kOm6RmjVyRDb Lwph8xPica3I77v3G1h5rgah8XhvXwjuDkRhI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=JLy45W9Fn3iYpCtoZX4T0Xpa4CoUNkkdC/O6UwLRjm0q2RdY8S5ZosvfvwvNALLgvt jdsQBltqre/IyY0+faDf+RtaFNqWZEfgnY5/82czSvKRTiVmwucelpEenbawYG2Oo+nT oNy59lRny8YOFu4ZEVj+hRyse+rBt8VTioAAY= MIME-Version: 1.0 Received: by 10.143.138.4 with SMTP id q4mr489716wfn.38.1257123112662; Sun, 01 Nov 2009 16:51:52 -0800 (PST) In-Reply-To: <20091101215809.GA10489@thorin> References: <20091101215809.GA10489@thorin> Date: Mon, 2 Nov 2009 06:21:52 +0530 Message-ID: From: BVK To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: On grub_strchr implementation 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, 02 Nov 2009 00:51:59 -0000 On Mon, Nov 2, 2009 at 3:28 AM, Robert Millan wrote: > > But you also added a check for NULL dereference. =A0Is that also required= by > the standard? > Standard doesn't say anything about it, so I guess it means, it is left for implementations. Old grub_strchr implementation has this check, so kept it as it is. I didn't want to break any code if it is assuming this behavior. I just saw that other functions like, grub_strcmp, etc. don't check for NULL dereference, so its better to remove this check. I will send a new patch. --=20 bvk-chaitanya