Package: fish
Version: 1.19.0-1
Severity: important
Tags: patch

Our automated buildd log filter[1] detected a problem that will cause
your package to segfault on architectures where the size of a pointer is
greater than the size of an integer, such as ia64.

[1]http://people.debian.org/~dannf/check-implicit-pointer-functions

diff -urN fish-1.19.0.orig/builtin.c fish-1.19.0/builtin.c
--- fish-1.19.0.orig/builtin.c  2005-12-25 15:05:34.000000000 -0700
+++ fish-1.19.0/builtin.c       2006-01-17 19:07:55.000000000 -0700
@@ -23,6 +23,7 @@
 
 */
 
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <wchar.h>
diff -urN fish-1.19.0.orig/common.c fish-1.19.0/common.c
--- fish-1.19.0.orig/common.c   2005-12-25 15:05:34.000000000 -0700
+++ fish-1.19.0/common.c        2006-01-17 19:08:21.000000000 -0700
@@ -4,6 +4,7 @@
 parts of fish.
 */
 
+#define _GNU_SOURCE
 #include "config.h"
 
 #include <stdlib.h>
diff -urN fish-1.19.0.orig/complete.c fish-1.19.0/complete.c
--- fish-1.19.0.orig/complete.c 2005-12-25 15:05:34.000000000 -0700
+++ fish-1.19.0/complete.c      2006-01-17 19:08:30.000000000 -0700
@@ -3,6 +3,7 @@
 
        These functions are used for storing and retrieving tab-completion 
data, as well as for performing tab-completion.
 */
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <limits.h>
diff -urN fish-1.19.0.orig/env.c fish-1.19.0/env.c
--- fish-1.19.0.orig/env.c      2005-12-25 15:05:34.000000000 -0700
+++ fish-1.19.0/env.c   2006-01-17 19:08:37.000000000 -0700
@@ -2,6 +2,7 @@
        Functions for setting and getting environment variables.
 */
 
+#define _GNU_SOURCE
 #include "config.h"
 
 #include <stdlib.h>
diff -urN fish-1.19.0.orig/event.c fish-1.19.0/event.c
--- fish-1.19.0.orig/event.c    2005-12-25 15:05:35.000000000 -0700
+++ fish-1.19.0/event.c 2006-01-17 19:09:39.000000000 -0700
@@ -3,6 +3,7 @@
        Functions for handling event triggers
 
 */
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <wchar.h>
diff -urN fish-1.19.0.orig/expand.c fish-1.19.0/expand.c
--- fish-1.19.0.orig/expand.c   2005-12-25 15:05:35.000000000 -0700
+++ fish-1.19.0/expand.c        2006-01-17 19:08:45.000000000 -0700
@@ -5,6 +5,7 @@
 
 */
 
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <wchar.h>
diff -urN fish-1.19.0.orig/function.c fish-1.19.0/function.c
--- fish-1.19.0.orig/function.c 2005-12-25 15:05:34.000000000 -0700
+++ fish-1.19.0/function.c      2006-01-17 17:19:03.000000000 -0700
@@ -1,6 +1,7 @@
 /** \file function.c
   Functions for storing and retrieving function information.
 */
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <wchar.h>
diff -urN fish-1.19.0.orig/history.c fish-1.19.0/history.c
--- fish-1.19.0.orig/history.c  2005-12-25 15:05:35.000000000 -0700
+++ fish-1.19.0/history.c       2006-01-17 19:08:55.000000000 -0700
@@ -1,6 +1,7 @@
 /** \file history.c
   History functions, part of the user interface.
 */
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <wchar.h>
diff -urN fish-1.19.0.orig/intern.c fish-1.19.0/intern.c
--- fish-1.19.0.orig/intern.c   2005-12-25 15:05:35.000000000 -0700
+++ fish-1.19.0/intern.c        2006-01-17 19:09:34.000000000 -0700
@@ -3,6 +3,7 @@
     Library for pooling common strings
 
 */
+#define _GNU_SOURCE
 #include "config.h"
 
 #include <stdlib.h>
diff -urN fish-1.19.0.orig/kill.c fish-1.19.0/kill.c
--- fish-1.19.0.orig/kill.c     2005-12-25 15:05:35.000000000 -0700
+++ fish-1.19.0/kill.c  2006-01-17 19:09:03.000000000 -0700
@@ -6,6 +6,7 @@
        with the X clipboard.
 */
 
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <wchar.h>
diff -urN fish-1.19.0.orig/parser.c fish-1.19.0/parser.c
--- fish-1.19.0.orig/parser.c   2005-12-25 15:05:35.000000000 -0700
+++ fish-1.19.0/parser.c        2006-01-17 19:09:14.000000000 -0700
@@ -4,6 +4,7 @@
 
 */
 
+#define _GNU_SOURCE
 #include <stdlib.h>
 #include <stdio.h>
 #include <wchar.h>
diff -urN fish-1.19.0.orig/reader.c fish-1.19.0/reader.c
--- fish-1.19.0.orig/reader.c   2005-12-25 15:05:35.000000000 -0700
+++ fish-1.19.0/reader.c        2006-01-17 19:09:19.000000000 -0700
@@ -19,6 +19,7 @@
 
 */
 
+#define _GNU_SOURCE
 #include "config.h"
 
 #include <stdlib.h>
diff -urN fish-1.19.0.orig/tokenizer.c fish-1.19.0/tokenizer.c
--- fish-1.19.0.orig/tokenizer.c        2005-12-25 15:05:35.000000000 -0700
+++ fish-1.19.0/tokenizer.c     2006-01-17 19:09:25.000000000 -0700
@@ -6,6 +6,7 @@
     segments.
 */
 
+#define _GNU_SOURCE
 #include "config.h"
 
 #include <stdlib.h>
diff -urN fish-1.19.0.orig/wildcard.c fish-1.19.0/wildcard.c
--- fish-1.19.0.orig/wildcard.c 2005-12-25 15:05:35.000000000 -0700
+++ fish-1.19.0/wildcard.c      2006-01-17 19:09:29.000000000 -0700
@@ -6,6 +6,7 @@
 
 */
 
+#define _GNU_SOURCE
 #include "config.h"
 
 #include <stdlib.h>

--- Begin Message ---
Function `wcsdup' implicitly converted to pointer at function.c:76
Function `wcsdup' implicitly converted to pointer at builtin.c:1116
Function `wcsdup' implicitly converted to pointer at common.c:984
Function `wcsdup' implicitly converted to pointer at complete.c:395
Function `wcsdup' implicitly converted to pointer at env.c:561
Function `wcsdup' implicitly converted to pointer at expand.c:141
Function `wcsdup' implicitly converted to pointer at history.c:142
Function `wcsdup' implicitly converted to pointer at kill.c:72
Function `wcsdup' implicitly converted to pointer at parser.c:540
Function `wcsdup' implicitly converted to pointer at reader.c:1382
Function `wcsdup' implicitly converted to pointer at tokenizer.c:148
Function `wcsdup' implicitly converted to pointer at wildcard.c:148
Function `wcsdup' implicitly converted to pointer at intern.c:59
Function `wcsdup' implicitly converted to pointer at event.c:137

--- End Message ---

Reply via email to