From owner-freebsd-current@FreeBSD.ORG Tue Jul 2 20:37:39 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C28A1CD5 for ; Tue, 2 Jul 2013 20:37:39 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) by mx1.freebsd.org (Postfix) with ESMTP id 88F0315CE for ; Tue, 2 Jul 2013 20:37:39 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::dd0d:546b:1fe:6b39] (unknown [IPv6:2001:7b8:3a7:0:dd0d:546b:1fe:6b39]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B70B15C43; Tue, 2 Jul 2013 22:37:36 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: [PATCH] nvmecontrol breaks world From: Dimitry Andric In-Reply-To: Date: Tue, 2 Jul 2013 22:37:35 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <7513EF4A-7808-4DC5-B60E-3AE93ECF85D1@FreeBSD.org> References: <20130702201728.GA68544@troutmask.apl.washington.edu> To: Ed Schouten X-Mailer: Apple Mail (2.1508) Cc: FreeBSD Current , Steve Kargl X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2013 20:37:39 -0000 On Jul 2, 2013, at 22:30, Ed Schouten wrote: > 2013/7/2 Steve Kargl : >> Could someone (this could even be me, but need approval) please >> fix nvmecontrol? >=20 > off_t doesn't need to be intmax_t, right? Maybe add an explicit cast? Yes, that is what Bruce has suggested for off_t many times in the past. = :-) > Also, the call of malloc(sb.st_size) is not really safe... Sure, but that does not break buildworld (for gcc users, I assume? the = tinderboxes are all green). -Dimitry