Ticket #1989 (new defect)

Opened 5 years ago

Last modified 5 years ago

addressbook not handling vCard 2.1 with multiline records correctly on importing, often leading to crash (wild memory leak)

Reported by: kavol Owned by: zecke
Priority: highest Milestone:
Component: Qtopia Version:
Severity: blocker Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible: always

Description

Hi.

I've exported my contacts from kaddressbook using vCard 2.1 format (cannot use v 3.0, see ticket #1988) into a single file. I've copied the file onto Freerunner and run "DISPLAY=:0 addressbook addressbook.vcf" from the console.

The FreeRunner? got stuck then.

Trying to find the cause:

  • FreeRunner? got stuck because oom killer killed some system processes
  • oom killer kicked in because the addressbook greedily allocated memory
  • the addressbook does this only on some vCard records
  • the thing which these have in common is that there are multiline records

The other problem is, if "quoted printable" encoding is used and the line ends in the middle of encoded character, the program does not crash, but the character is decoded incorrectly.

I attach test case vCards for both problems.

I am using packages from testing:
Package: qtopia-phone-x11-addressbook
Version: 1:4.3.2+gitr3+906a00fdcb89fdcc8252f84a76625eb42c8fe302-r41

Attachments

9.vcf (457 bytes) - added by kavol 5 years ago.
the crasher vCard
x.vcf (179 bytes) - added by kavol 5 years ago.
wrong character imported from this vCard

Change History

Changed 5 years ago by kavol

the crasher vCard

Changed 5 years ago by kavol

wrong character imported from this vCard

comment:1 Changed 5 years ago by kavol

Priority:

highest

Severity:

blocker

huh? - I did not set these ...

comment:2 Changed 5 years ago by zecke

  • Version Om2008.9-dev deleted
  • Milestone Om2008.9 deleted

Remove milestone.

Note: See TracTickets for help on using tickets.