[vorbis-tools/f18] fix an off-by-one error in the vcut utility (#1003607)
Kamil Dudka
kdudka at fedoraproject.org
Mon Sep 9 13:34:20 UTC 2013
commit 4b4a4df55f6a98b944da30e1fd56f2af1efc72fc
Author: Kamil Dudka <kdudka at redhat.com>
Date: Tue Sep 3 12:42:37 2013 +0200
fix an off-by-one error in the vcut utility (#1003607)
vorbis-tools-1.4.0-bz1003607.patch | 26 ++++++++++++++++++++++++++
vorbis-tools.spec | 5 +++++
2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/vorbis-tools-1.4.0-bz1003607.patch b/vorbis-tools-1.4.0-bz1003607.patch
new file mode 100644
index 0000000..9620759
--- /dev/null
+++ b/vorbis-tools-1.4.0-bz1003607.patch
@@ -0,0 +1,26 @@
+From 1fbd20941836aa4df17d0f6b44fef4d655ff5fc2 Mon Sep 17 00:00:00 2001
+From: Kamil Dudka <kdudka at redhat.com>
+Date: Tue, 3 Sep 2013 12:28:32 +0200
+Subject: [PATCH] vcut: fix an off-by-one error in submit_headers_to_stream()
+
+Bug: https://bugzilla.redhat.com/1003607
+---
+ vcut/vcut.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/vcut/vcut.c b/vcut/vcut.c
+index d7ba699..17426b9 100644
+--- a/vcut/vcut.c
++++ b/vcut/vcut.c
+@@ -178,7 +178,7 @@ static int submit_headers_to_stream(vcut_state *s)
+ for(i=0;i<4;i++)
+ {
+ ogg_packet p;
+- if(i < 4) /* a header packet */
++ if(i < 3) /* a header packet */
+ {
+ p.bytes = vs->headers[i].length;
+ p.packet = vs->headers[i].packet;
+--
+1.7.1
+
diff --git a/vorbis-tools.spec b/vorbis-tools.spec
index 3db123c..fe85744 100644
--- a/vorbis-tools.spec
+++ b/vorbis-tools.spec
@@ -12,6 +12,9 @@ Patch0: vorbis-tools-1.4.0-bz887540.patch
# http://thread.gmane.org/gmane.comp.multimedia.ogg.vorbis.devel/5729
Patch1: vorbis-tools-1.4.0-man-page.patch
+# http://thread.gmane.org/gmane.comp.multimedia.ogg.vorbis.devel/5738
+Patch2: vorbis-tools-1.4.0-bz1003607.patch
+
BuildRequires: flac-devel
BuildRequires: libao-devel
BuildRequires: libcurl-devel
@@ -33,6 +36,7 @@ comment editor.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
@@ -53,6 +57,7 @@ make DESTDIR=$RPM_BUILD_ROOT install
%changelog
* Tue Sep 03 2013 Kamil Dudka <kdudka at redhat.com> - 1:1.4.0-8
+- fix an off-by-one error in the vcut utility (#1003607)
- fix various man page issues
* Mon Dec 17 2012 Kamil Dudka <kdudka at redhat.com> - 1:1.4.0-7
More information about the scm-commits
mailing list