Package: python-vobject
Version: 0.8.1c-1
Severity: normal

Long lines may be encoded in quoted-printable by a trailing equals sign.
vobject attempts to parse the continuation line separately and raises a
ParseError.

The attached one-line patch modifies an existing quoted-printable test
case to expose the bug.


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-vobject depends on:
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-dateutil               1.4.1-3    powerful extensions to the standar
ii  python-support                1.0.3      automated rebuilding support for P

python-vobject recommends no packages.

python-vobject suggests no packages.

-- no debconf information

-- 
Sam Couter         |  mailto:s...@couter.id.au
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C
--- python-vobject-0.8.1c.orig/test_files/more_tests.txt
+++ python-vobject-0.8.1c/test_files/more_tests.txt
@@ -71,14 +71,14 @@
 quoted-printable
 ................
 
->>> vcf = 'BEGIN:VCARD\nVERSION:2.1\nN;ENCODING=QUOTED-PRINTABLE:;=E9\nFN;ENCODING=QUOTED-PRINTABLE:=E9\nTEL;HOME:0111111111\nEND:VCARD\n\n'
+>>> vcf = 'BEGIN:VCARD\nVERSION:2.1\nN;ENCODING=QUOTED-PRINTABLE:;=E9\nFN;ENCODING=QUOTED-PRINTABLE:=E9long=\nline\nTEL;HOME:0111111111\nEND:VCARD\n\n'
 >>> vcf = vobject.readOne(vcf)
 >>> vcf.n.value
 <Name:  ?   >
 >>> vcf.n.value.given
 u'\xe9'
 >>> vcf.serialize()
-'BEGIN:VCARD\r\nVERSION:2.1\r\nFN:\xc3\xa9\r\nN:;\xc3\xa9;;;\r\nTEL:0111111111\r\nEND:VCARD\r\n'
+'BEGIN:VCARD\r\nVERSION:2.1\r\nFN:\xc3\xa9longline\r\nN:;\xc3\xa9;;;\r\nTEL:0111111111\r\nEND:VCARD\r\n'
 
 >>> vcs = 'BEGIN:VCALENDAR\r\nPRODID:-//OpenSync//NONSGML OpenSync vformat 0.3//EN\r\nVERSION:1.0\r\nBEGIN:VEVENT\r\nDESCRIPTION;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:foo =C3=A5=0Abar =C3=A4=\r\n=0Abaz =C3=B6\r\nUID:20080406T152030Z-7822\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n'
 >>> vcs = vobject.readOne(vcs, allowQP = True)

Attachment: signature.asc
Description: Digital signature

Reply via email to