Package: scmxx
Version: 0.8.2-1
Severity: normal
Tags: patch

scmxx segfaults when a memory type is chosen via the --mem option
instead of leaving at the default MT.  It's referencing a NULL pointer
in src/s35_sms.c, simple fix:


--- s35_sms.c   2005-10-30 16:22:33.000000000 +0100
+++ s35_sms.c.fixed     2006-01-13 05:02:21.880993446 +0100
@@ -96,7 +96,9 @@
   if (!sms_select_mem(storetype,&range,&current_fill)) {
     errexit(_("SMS storage type \"%s\" could not be selected.\n"),storetype);
   }
-  mem_realloc(*memlist,0);
+  if (memlist != NULL) {
+    mem_realloc(*memlist,0);
+  }
   mem_realloc(memlist,0);
 
   if (str_len(outfile) == 0 && str_len(pipe) == 0) {


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.15-1-k7
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages scmxx depends on:
ii  libc6                         2.3.5-11   GNU C Library: Shared libraries an

scmxx recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to