gnokii - Bugs: bug #30441, gnokii crashes trying to write...
You are not allowed to post comments on this tracker with your current authentication level.
bug #30441: gnokii crashes trying to write phonebook to phone
Submitter: | Alex Dusty <dusty> | ||
Submitted: | Wed 14 Jul 2010 10:41:21 AM UTC | ||
Category: | gnokii | Severity: | 3 - Normal |
Item Group: | major malfunction | Status: | Need Info |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open |
Tue 14 Sep 2010 06:45:07 PM UTC, comment #3: |
LluĂs Batlle <viric> |
Sun 18 Jul 2010 08:26:40 AM UTC, comment #2: My goal is to copy the addressbook from a Ericsson phone. I dumped it with wammu but the .vcf file generate are incompatible with gnokii (that's saaad!). I'll try to manipulate it with a script once I'm able to make gnokii work.
|
Alex Dusty <dusty> |
Thu 15 Jul 2010 09:06:37 AM UTC, comment #1: Can you please provide vCard file that causes the problem? It would be useful if you provide information about your locale as well. Additionally debug output might be useful. |
Pawel Kot <pkot> |
Wed 14 Jul 2010 10:41:21 AM UTC, original submission:
System used is kubuntu 10.04
|
Alex Dusty <dusty> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2010-09-14 | viric | Attached File | - | Added gnokii-wchar_t-trouble.patch, #21458 | |
2010-07-15 | pkot | Status | None | Need Info |
Powered by Savane 3.13-0329.
Corresponding source code
I just submitted a patch for the problem, I think.
I was hitting a segfault trying to upload my phonebook into my phone (Sony Ericsson). I had downloaded the phonebook previously from the phone into vcard format.
The routines for the UCS2 conversion had a trouble, trying to write 'maxlen*sizeof(wchar_t)' bytes into an output buffer that came from a pointer to an automatic wchar_t variable up in the stack.
I limited the output of the function to 1*sizeof(wchar_t) so it matches the expectations of the callers for ucs2 conversion about "one character at a time".
This did the trick to upload the phonebook, which for me was enough; I don't know if it's good enough for upstream, because I have not investigated the problem further and I know little about the purpose of all the functions in gsm-encoding.c