[SCM] csound/master: Pick patch from upstream preventing a csladspa crash.

fsateler at users.alioth.debian.org fsateler at users.alioth.debian.org
Thu May 14 02:52:36 UTC 2015


The following commit has been merged in the master branch:
commit e7284451677efaf6a829258e2199954626eda52a
Author: Felipe Sateler <fsateler at debian.org>
Date:   Wed May 13 23:08:47 2015 -0300

    Pick patch from upstream preventing a csladspa crash.
    
    Closes: #785186

diff --git a/debian/patches/0001-Do-not-pass-a-null-pointer-to-strdup.-Fixes-466.patch b/debian/patches/0001-Do-not-pass-a-null-pointer-to-strdup.-Fixes-466.patch
new file mode 100644
index 0000000..b0caa2d
--- /dev/null
+++ b/debian/patches/0001-Do-not-pass-a-null-pointer-to-strdup.-Fixes-466.patch
@@ -0,0 +1,27 @@
+From e7d5030f53e016dd85c2f8fcd3c6607ca06404ed Mon Sep 17 00:00:00 2001
+From: Felipe Sateler <fsateler at debian.org>
+Date: Wed, 13 May 2015 21:43:09 -0300
+Subject: [PATCH] Do not pass a null pointer to strdup. Fixes #466
+
+---
+ frontends/csladspa/csladspa.cpp | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/frontends/csladspa/csladspa.cpp b/frontends/csladspa/csladspa.cpp
+index f6beff6..a37212c 100644
+--- a/frontends/csladspa/csladspa.cpp
++++ b/frontends/csladspa/csladspa.cpp
+@@ -427,7 +427,9 @@ unsigned int CountCSD(char **csdnames)
+ #ifdef MACOSX
+   src = strdup("/Library/Audio/Plug-Ins/LADSPA");
+ #else
+-  src = strdup(getenv("LADSPA_PATH"));
++  src = getenv("LADSPA_PATH");
++  if (src)
++    src = strdup(src);
+ #endif
+ 
+   if (src) {
+-- 
+2.1.4
+
diff --git a/debian/patches/series b/debian/patches/series
index 64ec691..6448511 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+0001-Do-not-pass-a-null-pointer-to-strdup.-Fixes-466.patch
 2000-avoid-nonfree-scansyn-plugin.diff
 2001-lua-link.diff
 2007-apidoc-dotpath.patch

-- 
csound packaging



More information about the pkg-multimedia-commits mailing list