Date: Wed, 25 May 2016 08:51:40 -0700 (PDT) From: Don Lewis <truckman@FreeBSD.org> To: src-committers@freebsd.org Cc: svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r300685 - head/sbin/camcontrol Message-ID: <201605251551.u4PFpewg006305@gw.catspoiler.org> In-Reply-To: <201605251543.u4PFh146077085@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 25 May, To: src-committers@freebsd.org wrote: > Author: truckman > Date: Wed May 25 15:43:01 2016 > New Revision: 300685 > URL: https://svnweb.freebsd.org/changeset/base/300685 > > Log: > Fix a couple of new instances of a false positive Coverity buffer > overflow defect. Use the new CCB_CLEAR_ALL_EXCEPT_HDR() macro > instead of the calling bzero() on the pointer to the header used > as an array and indexed by 1. > > Don't leak a buffer after executing "goto restart_report" by > overwriting its pointer with the results of another calloc(). > Be sure to clear the buffer before reusing it. (CID 1356042) > > Reported by: Coverity > CID: 1356022, 1356034, 1356023, 1356035, 1356042 > Reviewed by: ken Differential Revision: https://reviews.freebsd.org/D6558
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605251551.u4PFpewg006305>