From: Takashi Iwai Subject: Re: [ALSA patch] [PATCH - maemo fixes 1/1] maemo plugin has two crashes I was able to see in a valgrind log from another user: Date: Sun, 05 May 2019 09:45:16 +0200 Message-ID: References: <20190502212615.11457-1-stian.skjelstad@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 2A891F8071D for ; Sun, 5 May 2019 09:45:17 +0200 (CEST) In-Reply-To: <20190502212615.11457-1-stian.skjelstad@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: stian.skjelstad@gmail.com Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Thu, 02 May 2019 23:26:15 +0200, stian.skjelstad@gmail.com wrote: > > From: Stian Skjelstad > > * maximum write size was calculated in words (16bit), but checked against > byte-size length. This causes memcpy later to overflow the buffer > (normally by up to 12KB). > * remove a double free (by marking free'd data with NULL) > > * mmap returns MMAP_FAILED on error, not NULL > > I suspect that this plugin/driver might have other issues aswell, since I > am unable to find any logic for checking DSP buffer status, and no > implementation for odelay reporting. > > Author: Stian Skjelstad > Signed-off-by: Stian Skjelstad Thanks, applied now. Takashi