From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 22 22:04:19 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6A8DDAD8; Thu, 22 Jan 2015 22:04:19 +0000 (UTC) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 01EA4C14; Thu, 22 Jan 2015 22:04:19 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id fb4so5992430wid.2; Thu, 22 Jan 2015 14:04:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=6s52bRFpqr2oN/6xRCWAre/MrgIETuk+Hf1JKiFpvrg=; b=icYH7tKa/VX96oy+hE1fhk1fgbH/Qmbl5PU4nV+hHponJtX/9EbpKAA2iM0tSmyHSm m/wq/11Xhi2uOpRzeCn1JtKRhj4KMLcvHZ/jdAwN9pSrcYzs7CbIpwcHy0SS9WwHEY9r 5l8L71ECS5X8fChdalDfQG3rRUmUDLaQFisnZBO8AavA+8CowaS/p0OAT3FPkkUNA15N a0IYO4E8oClQ9lsdFfTGXQqDTSVYLsyA+puwZLDA2wveOba3OaN6twRMb8tOLDxwFrVC rN2yhAzEHgrXyWqhmiSEQ5tH0+6suP+gC/RlRfZriq7Uq0IbfsAs1AUfRyNMLDu2E8s8 rY6w== MIME-Version: 1.0 X-Received: by 10.194.60.70 with SMTP id f6mr7315568wjr.109.1421964257475; Thu, 22 Jan 2015 14:04:17 -0800 (PST) Sender: asomers@gmail.com Received: by 10.194.17.129 with HTTP; Thu, 22 Jan 2015 14:04:17 -0800 (PST) In-Reply-To: <54C17215.8060700@FreeBSD.org> References: <54C17215.8060700@FreeBSD.org> Date: Thu, 22 Jan 2015 15:04:17 -0700 X-Google-Sender-Auth: u3_tLcNv5S2Id9g7GmxOjVD5Fdg Message-ID: Subject: Re: zero size memset From: Alan Somers To: Pedro Giffuni Content-Type: text/plain; charset=UTF-8 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:04:19 -0000 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?