From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 26 12:49:43 2012 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 932EF106564A for ; Wed, 26 Sep 2012 12:49:43 +0000 (UTC) (envelope-from erik@cederstrand.dk) Received: from csmtp2.one.com (csmtp2.one.com [91.198.169.22]) by mx1.freebsd.org (Postfix) with ESMTP id 521138FC16 for ; Wed, 26 Sep 2012 12:49:42 +0000 (UTC) Received: from [172.20.10.3] (109.56.124.226.mobile.3.dk [109.56.124.226]) by csmtp2.one.com (Postfix) with ESMTPA id 6DC0C3077E5C for ; Wed, 26 Sep 2012 12:49:35 +0000 (UTC) From: Erik Cederstrand Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: <1C0A3745-9C1D-488B-99DE-CA85D1F59EB9@cederstrand.dk> Date: Wed, 26 Sep 2012 14:49:33 +0200 To: FreeBSD Hackers Mime-Version: 1.0 (Mac OS X Mail 6.0 \(1486\)) X-Mailer: Apple Mail (2.1486) Cc: Subject: Allocator sizeof operand mismatch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2012 12:49:43 -0000 Clang Analyzer reports about 100 cases of "Allocator sizeof operand = mismatch", for example: = http://scan.freebsd.your.org/freebsd-head/sbin.umount/2012-09-23-amd64/rep= ort-k4ThD9.html#EndPath The reports seem to be valid, but I'm no export. I can work out that the = above should probably be fixed by changing "sizeof(int)" to = "sizeof(char)" and that it incidentally works anyway since both types = have the same size in most cases. But I probably won't detect if the = error is somewhere else than the arguments to malloc/calloc. Is someone willing to help me fix these, or should I start filing PR's = with patches? Thanks, Erik=