!1 delete useless patch

Merge pull request !1 from BruceGW/master
This commit is contained in:
openeuler-ci-bot 2020-01-13 14:45:08 +08:00 committed by Gitee
commit 14e68023fe
2 changed files with 5 additions and 44 deletions

View File

@ -2,7 +2,7 @@
Name: libvorbis
Version: 1.3.6
Release: 4
Release: 5
Summary: The Vorbis General Audio Compression Codec
Epoch: 1
License: BSD
@ -13,8 +13,6 @@ BuildRequires: gcc, pkgconfig(ogg) >= 1.0
# patch from Fedora, fix compile error on arm64 and CVE-2018-10392/10393 CVE-2017-14160
Patch0: libvorbis-1.3.6-git.patch
Patch6000: libvorbis_CVE-2017-14160.patch
%description
Ogg Vorbis is a fully open, non-proprietary, patent- and royalty-free,
general-purpose compressed audio format for audio and music at fixed
@ -74,5 +72,8 @@ make check
%ldconfig_scriptlets
%changelog
* Wed Sep 4 2019 openEuler Buildteam <buildteam@openeuler.org> -1.3.6-4
* Sat Jan 11 2020 BruceGW <gyl93216@163.com> - 1.3.6-5
- Remove useless patch
* Wed Sep 4 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.6-4
- Package init

View File

@ -1,40 +0,0 @@
diff --git a/lib/psy.c b/lib/psy.c
index 1310123..98f9bd2 100644
--- a/lib/psy.c
+++ b/lib/psy.c
@@ -599,7 +599,7 @@ static void bark_noise_hybridmp(int n,const long *b,
XY[i] = tXY;
}
- for (i = 0, x = 0.f;; i++, x += 1.f) {
+ for (i = 0, x = 0.f; i < n; i++, x += 1.f) {
lo = b[i] >> 16;
hi = b[i] & 0xffff;
@@ -622,7 +622,7 @@ static void bark_noise_hybridmp(int n,const long *b,
noise[i] = R - offset;
}
- for ( ;; i++, x += 1.f) {
+ for ( ; i < n; i++, x += 1.f) {
lo = b[i] >> 16;
hi = b[i] & 0xffff;
@@ -652,7 +652,7 @@ static void bark_noise_hybridmp(int n,const long *b,
if (fixed <= 0) return;
- for (i = 0, x = 0.f;; i++, x += 1.f) {
+ for (i = 0, x = 0.f; i < n; i++, x += 1.f) {
hi = i + fixed / 2;
lo = hi - fixed;
if(lo>=0)break;
@@ -671,7 +671,7 @@ static void bark_noise_hybridmp(int n,const long *b,
if (R - offset < noise[i]) noise[i] = R - offset;
}
- for ( ;; i++, x += 1.f) {
+ for ( ; i < n; i++, x += 1.f) {
hi = i + fixed / 2;
lo = hi - fixed;