[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#173618: --status-fd causes segfault



Package: dpkg
Version: 1.10.9

Using the --status-fd command line option of dpkg occasionally leads to
segmentation fault. This random behaviour is caused by an uninitialized
pointer. Here's the fix:


diff -urN dpkg-1.10.9.orig/main/main.c dpkg-1.10.9/main/main.c
--- dpkg-1.10.9.orig/main/main.c	2002-09-01 06:47:05.000000000 +0200
+++ dpkg-1.10.9/main/main.c	2002-12-19 00:15:23.000000000 +0100
@@ -281,6 +281,7 @@
     *lastpipe= nfmalloc(sizeof(struct pipef));
   }
   (*lastpipe)->fd= v;
+  (*lastpipe)->next= NULL;
 }

 static void setforce(const struct cmdinfo *cip, const char *value) {




cheers,
Egmont




Reply to: