Hello community,

here is the log from the commit of package peek for openSUSE:Factory checked in 
at 2019-07-22 12:21:42
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/peek (Old)
 and      /work/SRC/openSUSE:Factory/.peek.new.4126 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "peek"

Mon Jul 22 12:21:42 2019 rev:4 rq:717474 version:1.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/peek/peek.changes        2018-09-11 
17:19:20.263222476 +0200
+++ /work/SRC/openSUSE:Factory/.peek.new.4126/peek.changes      2019-07-22 
12:21:43.583643335 +0200
@@ -1,0 +2,7 @@
+Sat Jul 20 03:37:44 UTC 2019 - Marguerite Su <i...@marguerite.su>
+
+- add peek-1.3.1-fix-double-free-tcache2.patch
+  * avoid double free when passing string array to async functions
+  * should be removed next release
+
+-------------------------------------------------------------------

New:
----
  peek-1.3.1-fix-double-free-tcache2.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ peek.spec ++++++
--- /var/tmp/diff_new_pack.9q7I6q/_old  2019-07-22 12:21:44.371643128 +0200
+++ /var/tmp/diff_new_pack.9q7I6q/_new  2019-07-22 12:21:44.371643128 +0200
@@ -24,6 +24,8 @@
 Group:          Productivity/Graphics/Other
 Url:            https://github.com/phw/peek
 Source:         
https://github.com/phw/peek/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+#PATCH-FIX-UPSTREAM phw - Avoid double free when passing string array to async 
function
+Patch:          peek-1.3.1-fix-double-free-tcache2.patch
 BuildRequires:  cmake >= 2.8.8
 BuildRequires:  gcc-c++
 BuildRequires:  hicolor-icon-theme
@@ -46,6 +48,7 @@
 
 %prep
 %setup -q
+%patch -p1
 
 %build
 %cmake -DGSETTINGS_COMPILE=OFF

++++++ peek-1.3.1-fix-double-free-tcache2.patch ++++++
Index: peek-1.3.1/src/post-processing/ffmpeg-post-processor.vala
===================================================================
--- peek-1.3.1.orig/src/post-processing/ffmpeg-post-processor.vala
+++ peek-1.3.1/src/post-processing/ffmpeg-post-processor.vala
@@ -79,15 +79,19 @@ namespace Peek.PostProcessing {
         var extension = Utils.get_file_extension_for_format 
(config.output_format);
         var output_file = Utils.create_temp_file (extension);
 
-        string[] args = {
-          "ffmpeg", "-y",
-          "-i", input_file.get_path (),
-          "-i", palette_file.get_path (),
-          "-filter_complex", "fps=%d,paletteuse".printf (config.framerate)
-        };
-
         var argv = new Array<string> ();
-        argv.append_vals (args, args.length);
+
+        argv.append_val ("ffmpeg");
+        argv.append_val ("-y");
+
+        argv.append_val ("-i");
+        argv.append_val (input_file.get_path ());
+
+        argv.append_val ("-i");
+        argv.append_val (palette_file.get_path ());
+
+        argv.append_val ("-filter_complex");
+        argv.append_val ("fps=%d,paletteuse".printf (config.framerate));
 
         if (config.output_format == OutputFormat.APNG) {
           argv.append_val ("-plays");

Reply via email to