Skip to content

Commit 5a3990f

Browse files
committed
MACOSXPPC: Fetch a Debian patch for the libvorbis release we use
1 parent 40a242c commit 5a3990f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
From: Daniel Exner <dex@dragonslave.de>
2+
Date: Mon, 18 Jun 2012 22:05:48 +0200
3+
Subject: Avoid SIGFPE when bytespersample is zero
4+
5+
Forwarded: https://github.com/xiph/vorbis/pull/66
6+
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635906#15
7+
Reviewed-By: Petter Reinholdtsen <pere@hungry.com>
8+
Last-Update: 2020-08-24
9+
---
10+
lib/vorbisfile.c | 3 ++-
11+
1 file changed, 2 insertions(+), 1 deletion(-)
12+
13+
Index: libvorbis/lib/vorbisfile.c
14+
===================================================================
15+
--- libvorbis.orig/lib/vorbisfile.c
16+
+++ libvorbis/lib/vorbisfile.c
17+
@@ -1992,7 +1992,8 @@ long ov_read_filter(OggVorbis_File *vf,c
18+
vorbis_fpu_control fpu;
19+
20+
if(channels<1||channels>255)return(OV_EINVAL);
21+
- if(samples>length/bytespersample)samples=length/bytespersample;
22+
+ if(bytespersample && samples>length/bytespersample)
23+
+ samples=length/bytespersample;
24+
25+
if(samples <= 0)
26+
return OV_EINVAL;

0 commit comments

Comments
 (0)