From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6130 216.105.38.0/24 X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS,SPF_PASS,T_DKIM_INVALID shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 98DBD1F424 for ; Thu, 26 Apr 2018 21:10:55 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1fBoAC-0003T0-SF; Thu, 26 Apr 2018 21:10:48 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1fBoAB-0003Ss-A0 for sox-devel@lists.sourceforge.net; Thu, 26 Apr 2018 21:10:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=References:In-Reply-To:Message-Id:Date:Subject:To: From:Sender:Reply-To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BYNWTBcjvCexFVH9CMuOhfVtoFT1gY3DZEq3OPmYb/U=; b=WrK3jFH2emJwzkHCqE0k6JnkiU SSVfLpDofmuMgXl39pU2RoKTzJ4Svy3ltvBdaqxN1z5i/skZdFajrh6ZkAMnm2J6cAiRhmZ0yGWIJ gd82cezCZcK6JMX3xbEspqg6Ck1eLOeBMOav6q4+HnarQvCWg/IqQME6BgVAwNnjZm40=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc :MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BYNWTBcjvCexFVH9CMuOhfVtoFT1gY3DZEq3OPmYb/U=; b=f0Pl0M20YCX5aTTlp54XtMt3C4 nGo0tDTS83iLef3MndF4NR/ZolsGC14xNMgRU6W2/u3cDBarQ8dd/cG1aZD+t9GPaJLKweNkZ1RCO pp+dRmi6fm9+8OFaQfmKO9J3AYbfeIqNNmiUceMrxKv7HsuhpczUToyMMrklLgP31cN0=; Received: from unicorn.mansr.com ([81.2.72.234]) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1fBoA9-00DG0g-5E for sox-devel@lists.sourceforge.net; Thu, 26 Apr 2018 21:10:47 +0000 Received: by unicorn.mansr.com (Postfix, from userid 51770) id 4306916405; Thu, 26 Apr 2018 22:10:38 +0100 (BST) From: Mans Rullgard To: sox-devel@lists.sourceforge.net Date: Thu, 26 Apr 2018 22:10:34 +0100 Message-Id: <20180426211036.5735-4-mans@mansr.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180426211036.5735-1-mans@mansr.com> References: <20180426211036.5735-1-mans@mansr.com> X-Headers-End: 1fBoA9-00DG0g-5E Subject: [PATCH 3/5] oss: fix input buffer overrun X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-devel@lists.sourceforge.net MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: sox-devel-bounces@lists.sourceforge.net --- src/oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oss.c b/src/oss.c index 8292b584eb4f..9b13dc2f9a1a 100644 --- a/src/oss.c +++ b/src/oss.c @@ -369,7 +369,7 @@ static size_t osswrite( size_t cbStride; int cbWritten; - cStride = cInput; + cStride = cInputRemaining; if (cStride > pPriv->cOutput) { cStride = pPriv->cOutput; } -- 2.17.0 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel