From nobody@FreeBSD.org  Tue Aug  2 20:35:54 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 945B5106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Aug 2011 20:35:54 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 69D648FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  2 Aug 2011 20:35:54 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p72KZrfL043140
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 2 Aug 2011 20:35:53 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p72KZrED043139;
	Tue, 2 Aug 2011 20:35:53 GMT
	(envelope-from nobody)
Message-Id: <201108022035.p72KZrED043139@red.freebsd.org>
Date: Tue, 2 Aug 2011 20:35:53 GMT
From: Andrey Russev <ruan@mail.univ.kiev.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Incorrect implementation of strncmp in boot code
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159395
>Category:       misc
>Synopsis:       [boot] Incorrect implementation of strncmp in boot code
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 02 20:40:09 UTC 2011
>Closed-Date:    
>Last-Modified:  Fri Aug 05 01:35:17 UTC 2011
>Originator:     Andrey Russev
>Release:        8.2-RELEASE
>Organization:
>Environment:
>Description:
Implementation of strncmp function in sys/boot/common/util.c differs
from libc version. You have to use strncmp(str1, str2, len - 1) instead
of strncmp(str1, str2, len) to archieve similar effect. For example,
strncmp(str1, str2, 0) returns zero if libc version is used and
difference of first characters if util.c version is used. 
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
