Backport fix that prevents crashers when playing MP3

OK aja@
This commit is contained in:
sebastia 2015-07-30 20:24:58 +00:00
parent c2d5a6c782
commit 79587ecc16
2 changed files with 18 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.5 2015/07/28 10:17:14 sebastia Exp $
# $OpenBSD: Makefile,v 1.6 2015/07/30 20:24:58 sebastia Exp $
COMMENT = audio player for GNUstep
DISTNAME = Cynthiune-1.0.0
REVISION = 3
REVISION = 4
CATEGORIES += audio
HOMEPAGE = http://gap.nongnu.org/cynthiune/

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-Bundles_MP3_MP3_m,v 1.1 2015/07/30 20:24:58 sebastia Exp $
Fix from upstream, prevent crasher on playing MP3,
svn rev 3064
--- Bundles/MP3/MP3.m.orig Thu Jul 30 19:47:29 2015
+++ Bundles/MP3/MP3.m Thu Jul 30 19:47:41 2015
@@ -118,7 +118,7 @@ calcInputRemain (MadStream *stream, unsigned char *iBu
inputRemain = 0;
}
else
- memcpy (iBuffer, stream->next_frame, inputRemain);
+ memmove (iBuffer, stream->next_frame, inputRemain);
}
else
inputRemain = 0;