Date: Mon, 20 Nov 2017 20:34:25 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r454577 - in head/audio/sox: . files Message-ID: <201711202034.vAKKYPgB055407@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tobik Date: Mon Nov 20 20:34:24 2017 New Revision: 454577 URL: https://svnweb.freebsd.org/changeset/ports/454577 Log: audio/sox: Fix segfault in the OSS backend sox currently crashes when it finishes playing a file. PR: 213262 Approved by: Dan Nelson <dnelson@allantgroup.com> (maintainer) Reported by: Alexandros Perdikomatis <alexandrosperdikomatis@gmail.com> Obtained from: Pkgsrc MFH: 2017Q4 Added: head/audio/sox/files/ head/audio/sox/files/patch-src_oss.c (contents, props changed) Modified: head/audio/sox/Makefile Modified: head/audio/sox/Makefile ============================================================================== --- head/audio/sox/Makefile Mon Nov 20 20:34:08 2017 (r454576) +++ head/audio/sox/Makefile Mon Nov 20 20:34:24 2017 (r454577) @@ -3,7 +3,7 @@ PORTNAME= sox PORTVERSION= 14.4.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= audio MASTER_SITES= SF Added: head/audio/sox/files/patch-src_oss.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/audio/sox/files/patch-src_oss.c Mon Nov 20 20:34:24 2017 (r454577) @@ -0,0 +1,17 @@ +$NetBSD: patch-src_oss.c,v 1.1 2015/05/25 19:06:24 bsiegert Exp $ + +Fix segfault when playing (PR pkg/49929). + +http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=49929 + +--- src/oss.c.orig 2014-10-06 02:02:30 UTC ++++ 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; + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711202034.vAKKYPgB055407>