[cpl-plugin-uves] 02/02: Replace exit() by abort() in shared libs

Ole Streicher olebole-guest at moszumanska.debian.org
Sun Dec 8 13:24:05 UTC 2013


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

olebole-guest pushed a commit to branch debian
in repository cpl-plugin-uves.

commit 2b2c728743d3cf6746f6a9b31a240b84c9d29385
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Sun Dec 8 14:23:57 2013 +0100

    Replace exit() by abort() in shared libs
---
 debian/patches/series                 |  1 +
 debian/patches/shlib-calls-exit.patch | 76 +++++++++++++++++++++++++++++++++++
 2 files changed, 77 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
index 256e13f..edfdeb9 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ set_plugindir.patch
 use-std-paths-for-cpl.patch
 use_system_qfits.patch
 fix_compiler_errors.patch
+shlib-calls-exit.patch
diff --git a/debian/patches/shlib-calls-exit.patch b/debian/patches/shlib-calls-exit.patch
new file mode 100644
index 0000000..c33a7eb
--- /dev/null
+++ b/debian/patches/shlib-calls-exit.patch
@@ -0,0 +1,76 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Replace exit() by abort() in shared libs.
+--- a/flames/flames_fileutils.c
++++ b/flames/flames_fileutils.c
+@@ -180,7 +180,7 @@
+       if (len > (PATHSET_MAX-1))
+ 	{
+ 	  cpl_msg_error (cpl_func, "Buffer overflow in filename '%s' - fatal error", name);
+-	  exit (EXIT_FAILURE);
++	  abort();
+ 	}
+       (void) strcpy (str, name);
+     }
+@@ -191,7 +191,7 @@
+       if (cpp == NULL)
+ 	{
+ 	  cpl_msg_error (cpl_func, "Env. variable HOME not set, could not replace `~'");
+-	  exit (EXIT_FAILURE);
++	  abort();
+ 	}
+        
+       (void) strcpy (str,cpp);
+@@ -199,7 +199,7 @@
+       if (len > PATHSET_MAX)                /* -1 for (name+1) below */
+ 	{
+ 	  cpl_msg_error (cpl_func, "Buffer overflow in filename '%s' - fatal error", name);
+-	  exit (EXIT_FAILURE);
++	  abort();
+ 	}
+ 
+       (void) strcat (str, name + 1);
+@@ -274,7 +274,7 @@
+       if (len > (PATHSET_MAX-1))
+ 	{
+ 	  cpl_msg_error (cpl_func, "Buffer overflow in filename '%s' - fatal error", name);
+-	  exit (EXIT_FAILURE);
++	  abort();
+ 	}
+ 
+       (void) strcpy (str, name);
+@@ -291,7 +291,7 @@
+       if (len > (PATHSET_MAX-1))
+ 	{
+ 	  cpl_msg_error (cpl_func, "Buffer overflow in filename '%s' - fatal error", name);
+-	  exit (EXIT_FAILURE);
++	  abort();
+ 	}
+ 
+       (void) strcpy (str,cpp);
+@@ -299,7 +299,7 @@
+   else
+     {
+       cpl_msg_error (cpl_func, "Env. variable PWD not set - fatal errorn");
+-      exit (EXIT_FAILURE);
++      abort();
+     }
+ 
+ 
+@@ -310,7 +310,7 @@
+       if ((len+2) > (PATHSET_MAX-1))
+ 	{
+ 	  cpl_msg_error (cpl_func, "Buffer overflow in filename '%s' - fatal error", name);
+-	  exit (EXIT_FAILURE);
++	  abort();
+ 	}
+       (void) strcat (str, "/.");
+       len += 2;
+@@ -322,7 +322,7 @@
+       cpl_msg_error (cpl_func, "Buffer overflow in filename '%s'", name);
+       cpl_msg_error (cpl_func, "Fatal error replacing current working "
+ 		     "directory symbol due to buffer overflow");
+-      exit (EXIT_FAILURE);
++      abort();
+     }
+   (void) strcat(str, name + 1);        /* Add the rest of the file name */
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/cpl-plugin-uves.git



More information about the debian-science-commits mailing list