Received: by mail.netbsd.org (Postfix, from userid 605) id 0AE1D14A31A; Sat, 19 May 2012 17:03:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 335A814A319 for ; Sat, 19 May 2012 17:03:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id FWWdLskti2CT for ; Sat, 19 May 2012 17:03:06 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id EFCE814A312 for ; Sat, 19 May 2012 17:03:05 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 4EAE3175DD; Sat, 19 May 2012 17:03:45 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Sat, 19 May 2012 17:03:45 +0000 From: "Jeff Rizzo" Subject: CVS commit: [netbsd-5-0] src/sys/netsmb To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20120519170345.4EAE3175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Jeff Rizzo" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: riz Date: Sat May 19 17:03:45 UTC 2012 Modified Files: src/sys/netsmb [netbsd-5-0]: subr_mchain.c Log Message: Pull up following revision(s) (requested by nakayama in ticket #1758): sys/netsmb/subr_mchain.c: revision 1.21 Since "len" has changed to (unsinged) size_t, the while loop condition (len > 0) became less able to detect its underflow. So check the subtrahend to avoid the underflow. Should fix PR kern/44092. To generate a diff of this commit: cvs rdiff -u -r1.15.12.1 -r1.15.12.2 src/sys/netsmb/subr_mchain.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.