Package: lbdb
Version: 0.33
Severity: normal
Tags: patch

Hi,

I've tried the VCF backend with a vcf file exported to an iPod by Apple
Software. Apple does not include the FN property. Instead it uses a multi
value N property.

This causes the fullname pointer to be not initialised so that the
free() fails. You could either apply the patch or use
strdupa() and omit the free() completely.

Thanks,
Gregor

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages lbdb depends on:
ii  libc6                         2.5-0exp2  GNU C Library: Shared libraries
ii  libvformat1                   1.13-4     Library to read and write vcard fi
ii  perl                          5.8.8-6.1  Larry Wall's Practical Extraction 

lbdb recommends no packages.

-- no debconf information
--- vcquery.orig	2005-10-30 00:30:26.000000000 +0200
+++ vcquery.c	2006-10-26 23:37:18.000000000 +0200
@@ -48,6 +48,8 @@
   }
 
   while (vf_get_next_object(&vfobj)) {
+    fullname = 0;
+
     /* First extract name */
     if (vf_get_property(&prop, vfobj, VFGP_FIND, NULL, "FN", NULL))
       if ((fullname = vf_get_prop_value_string(prop, 0)))

Reply via email to