[SCM] libgig/master: debian/patches/03-deletechuncklist.patch: fix riftree segfault (closes: #716265)

piem at users.alioth.debian.org piem at users.alioth.debian.org
Fri Apr 4 17:40:12 UTC 2014


The following commit has been merged in the master branch:
commit 3e8d9ea5cd7ae46306eaf6a39eb2f7a87cb2b6ab
Author: Paul Brossier <piem at piem.org>
Date:   Fri Apr 4 14:36:50 2014 -0300

    debian/patches/03-deletechuncklist.patch: fix riftree segfault (closes: #716265)

diff --git a/debian/patches/03-deletechuncklist.patch b/debian/patches/03-deletechuncklist.patch
new file mode 100644
index 0000000..9f5dc08
--- /dev/null
+++ b/debian/patches/03-deletechuncklist.patch
@@ -0,0 +1,19 @@
+diff --git a/src/RIFF.cpp b/src/RIFF.cpp
+index b92988c..883c145 100644
+--- a/src/RIFF.cpp
++++ b/src/RIFF.cpp
+@@ -956,13 +956,7 @@ namespace RIFF {
+ 
+     void List::DeleteChunkList() {
+         if (pSubChunks) {
+-            ChunkList::iterator iter = pSubChunks->begin();
+-            ChunkList::iterator end  = pSubChunks->end();
+-            while (iter != end) {
+-                delete *iter;
+-                iter++;
+-            }
+-            delete pSubChunks;
++            pSubChunks->clear();
+             pSubChunks = NULL;
+         }
+         if (pSubChunksMap) {
diff --git a/debian/patches/series b/debian/patches/series
index 9adf968..83ce80f 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 01-Makefile.patch
 02-manpages.patch
+03-deletechuncklist.patch

-- 
libgig packaging



More information about the pkg-multimedia-commits mailing list