Ticket #1989 (new defect)
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|
|Blocking:||Estimated Completion (week):|
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: