aboutsummaryrefslogtreecommitdiffstats
path: root/audio/openal
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2009-04-08 06:17:39 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2009-04-08 06:17:39 +0800
commitcf908b1aea6f30c55d2f7641ecad0fb708b54cbe (patch)
tree79c0dbc8afb39656ee3a05bfe390d78b8c352ec9 /audio/openal
parentd8f415115e4a39cfc7dc5af1900e74b0e33e7d88 (diff)
downloadfreebsd-ports-gnome-cf908b1aea6f30c55d2f7641ecad0fb708b54cbe.tar.gz
freebsd-ports-gnome-cf908b1aea6f30c55d2f7641ecad0fb708b54cbe.tar.zst
freebsd-ports-gnome-cf908b1aea6f30c55d2f7641ecad0fb708b54cbe.zip
- Fix segfault under certain conditions
PR: 133354 Submitted by: myself Approved by: pav@
Diffstat (limited to 'audio/openal')
-rw-r--r--audio/openal/Makefile2
-rw-r--r--audio/openal/files/patch-src-arch-i386-x86_floatmul.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/audio/openal/Makefile b/audio/openal/Makefile
index eea322d8e50c..863f2e84a37c 100644
--- a/audio/openal/Makefile
+++ b/audio/openal/Makefile
@@ -7,7 +7,7 @@
PORTNAME= openal
PORTVERSION= 20060211
-PORTREVISION= 8
+PORTREVISION= 9
CATEGORIES= audio
MASTER_SITES= http://openal.org/openal_webstf/downloads/
DISTVERSION= 0.0.8
diff --git a/audio/openal/files/patch-src-arch-i386-x86_floatmul.c b/audio/openal/files/patch-src-arch-i386-x86_floatmul.c
new file mode 100644
index 000000000000..7bc3a81c262a
--- /dev/null
+++ b/audio/openal/files/patch-src-arch-i386-x86_floatmul.c
@@ -0,0 +1,11 @@
+--- src/arch/i386/x86_floatmul.c.orig 2005-12-21 22:06:35.000000000 +0300
++++ src/arch/i386/x86_floatmul.c 2009-04-04 04:53:56.000000000 +0400
+@@ -46,7 +46,7 @@
+ v4hi temp;
+
+
+- samples_pre = MMX_ALIGN - (aint)bpt % MMX_ALIGN;
++ samples_pre = (MMX_ALIGN - (aint)bpt % MMX_ALIGN) % MMX_ALIGN;
+ samples_pre /= sizeof(ALshort);
+ samples_main = len - samples_pre;
+ samples_post = samples_main % 8;