[oggvideotools] 01/01: Added oggThumb-zero-getopt-long.patch to fix crash when given unknown command line arguments (Closes: #716525). Thanks to Alexandre Rebert and the Mayhem project for discovering this.

Petter Reinholdtsen pere at moszumanska.debian.org
Wed Oct 22 10:54:58 UTC 2014


This is an automated email from the git hooks/post-receive script.

pere pushed a commit to branch master
in repository oggvideotools.

commit caa3c9bc029c1a437f778a9ca3fa3d55d42cce2d
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Wed Oct 22 12:54:55 2014 +0200

    Added oggThumb-zero-getopt-long.patch to fix crash when given unknown command line arguments (Closes: #716525).  Thanks to Alexandre Rebert and the Mayhem project for discovering this.
---
 debian/patches/oggThumb-zero-getopt-long.patch | 22 ++++++++++++++++++++++
 debian/patches/series                          |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/oggThumb-zero-getopt-long.patch b/debian/patches/oggThumb-zero-getopt-long.patch
new file mode 100644
index 0000000..b8bb971
--- /dev/null
+++ b/debian/patches/oggThumb-zero-getopt-long.patch
@@ -0,0 +1,22 @@
+Description: zero terminate getopt_long() argument
+ Avoid crash on unknown command line arguments by
+ making sure the array passed to getopt_long is null
+ terminated.
+Author: Petter Reinholdtsen <pere at hungry.com>
+Bug-Debian: http://bugs.debian.org/716525
+Forwarded: no
+Reviewed-By: Petter Reinholdtsen <pere at hungry.com>
+Last-Update: 2014-10-22
+
+--- oggvideotools-0.8a.orig/src/oggThumb.cpp
++++ oggvideotools-0.8a/src/oggThumb.cpp
+@@ -260,7 +260,8 @@ NULL, val:
+ {name: "verbose"
+  , has_arg: 1, flag:
+  NULL, val:
+-     opt_verbose}
++     opt_verbose},
++{0},
+   };
+ //#endif
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 0692acb..428a7fd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 version-0.8a-1.patch
 mayhem-crash-oggjoin.patch
 manual-typos.patch
+oggThumb-zero-getopt-long.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xiph/oggvideotools.git



More information about the pkg-xiph-commits mailing list