From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 22 22:34:49 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C204F452 for ; Thu, 22 Jan 2015 22:34:49 +0000 (UTC) Received: from nm34-vm2.bullet.mail.bf1.yahoo.com (nm34-vm2.bullet.mail.bf1.yahoo.com [72.30.239.74]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 75D27EF6 for ; Thu, 22 Jan 2015 22:34:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1421965713; bh=/R/lcF8pMWILjvzog929FL+ANUknPhloS9rJAABTT1s=; h=Date:From:To:CC:Subject:References:In-Reply-To:From:Subject; b=ZE7b1aPKeBmvJKsXa3LMSx2OLAKYnzr/zO7cU1zzzlZObL2WlURKjlYjuyipQ/BSxqQyUMBTNREGrJjg8/JdMxexkjJgaHl6i1hrvBP7bt7sgc+jDf4Wzbu6wGlM4TMABpXzPQZfe14sNsmfBEN1wXE0vHykKHa/EWitNIyDLeUKrbFoG2HufUZiSxbNKFkh/8H3z1rwsJJuvEy28O5ToZYSaZD65+P5JbpoNARGz6DJlesO4uvQ+vwILDfAI7oRk/Biz1b9m+d8h92v3s+Tr5rNw8fUA+NotqUHaOp1Z2s0EizIIYcpa0gp/WSIRLGFNEqKynvDJ8fR0/HjT8FUEQ== Received: from [66.196.81.170] by nm34.bullet.mail.bf1.yahoo.com with NNFMP; 22 Jan 2015 22:28:33 -0000 Received: from [68.142.230.69] by tm16.bullet.mail.bf1.yahoo.com with NNFMP; 22 Jan 2015 22:28:33 -0000 Received: from [127.0.0.1] by smtp226.mail.bf1.yahoo.com with NNFMP; 22 Jan 2015 22:28:33 -0000 X-Yahoo-Newman-Id: 529817.89239.bm@smtp226.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 77rPpeMVM1li9jHu2en_tl7hy26M.p.XSc6ADHZ83DuQuEq _wYN7uFWNw2W0TRQLpU4iVCKhVzTD6Qg1Fp8lc.UpNCXNCjl4MuK7yv.7Sb. ez3qH_IbhveS_iMDkNT9zkhoFy4T29l0CBOxBO.6d2JbyKVXFmWlNZKXRX4i fovnEUCym3mg9186GURMGRauTf_0XcO0dKSHhwjW_kxanMz1rmb9B_i9N9c3 W00qD5DD1HMZ7MqZUb8Euy1ggfsOOUi1eyfIUPUroaJPShsrL7xCdpO0gC8E 9REKsrCvcrEcclYvockD..a2tsqtLBYJdne9S2LC73NnI3ZoAMDPNCOAVtVh wNi3OYy_T1MBZZH09kY9p2OhJAI19_eUXoHSGDzrUlsKIaAYWtqdXTZNwJBV fb8rCkZhuKqGZM.aevmIztohKOSK.2Qj.BP2KmxnQ3e92vg5RQVe_thsDDWC bmXfrVffihXKkVwTnD4Z8go_sHOl9ie.ied6Z3Vzjqw2kRjWPnxD1x27VxHF ijK0VwjoP5sTOwfL2QMbO7aBoNUVCLLGx X-Yahoo-SMTP: xcjD0guswBAZaPPIbxpWwLcp9Unf Message-ID: <54C17999.1050201@FreeBSD.org> Date: Thu, 22 Jan 2015 17:28:41 -0500 From: Pedro Giffuni Organization: FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Alan Somers Subject: Re: zero size memset References: <54C17215.8060700@FreeBSD.org> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD Hackers , Dirk Engling X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2015 22:34:49 -0000 On 22/01/2015 05:04 p.m., Alan Somers wrote: > On Thu, Jan 22, 2015 at 2:56 PM, Pedro Giffuni wrote: >> Hi Dirk; >> >> AFAICT, gdb is unmaintained and will be replaced by LLDB. >> >> About realloc, those are rather difficult to catch. Perhaps >> the clang static analyzer can give you some hints on >> what to look at: >> >> http://scan.freebsd.org/ >> >> And FWIW, we also have reallocf(). >> >> Regards, >> >> Pedro. >> > Both of these errors sound like things that Coverity ought to be able > to detect. Have you looked in the Coverity reports yet? CID 604160, 604163, 604161, 604162 correspond to the issues Dirk grepped. Pedro.