After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709674 - Ignore non-phonebook-enabled modems in ofono backend
Ignore non-phonebook-enabled modems in ofono backend
Status: RESOLVED FIXED
Product: folks
Classification: Platform
Component: oFono backend
git master
Other All
: Normal major
: Unset
Assigned To: folks-maint
folks-maint
Depends on:
Blocks:
 
 
Reported: 2013-10-08 18:50 UTC by Philip Withnall
Modified: 2013-10-14 17:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ofono: Work around a Vala bug causing a double-free when adding a modem (1.38 KB, patch)
2013-10-08 18:54 UTC, Philip Withnall
committed Details | Review

Description Philip Withnall 2013-10-08 18:50:46 UTC
The ofono backend currently doesn’t check whether a modem supports the org.ofono.Phonebook interface before trying to create a persona store for the it. Persona stores can’t work without a phone book to back them.

Patch coming to check whether the phone book interface is supported before creating a persona store.
Comment 1 Philip Withnall 2013-10-08 18:54:23 UTC
Created attachment 256753 [details] [review]
ofono: Work around a Vala bug causing a double-free when adding a modem

Work around Vala bug #709665:
	https://bugzilla.gnome.org/show_bug.cgi?id=709665
which allowed an assignment of a string*[] value to a string[] variable.
string*[] values need the container freeing, but not the members of the
array. However, since the variable was a string[], Vala generated C code to
free both the container and the members, resulting in a double-free of each
member.
Comment 2 Travis Reitter 2013-10-14 17:14:52 UTC
Review of attachment 256753 [details] [review]:

Looks good
Comment 3 Philip Withnall 2013-10-14 17:15:32 UTC
Comment on attachment 256753 [details] [review]
ofono: Work around a Vala bug causing a double-free when adding a modem

commit 6f332795b9162fb7c8393a96848c8ff5ab35340b
Author: Philip Withnall <philip.withnall@collabora.co.uk>
Date:   Tue Oct 8 19:51:30 2013 +0100

    Bug 709674 — Ignore non-phonebook-enabled modems in ofono backend
    
    Ignore ofono modems which don’t support the org.ofono.Phonebook interface,
    which is needed for accessing contacts stored on the SIM.
    
    Closes: https://bugzilla.gnome.org/show_bug.cgi?id=709674

 NEWS                              |  1 +
 backends/ofono/ofono-backend.vala | 39 ++++++++++++++++++++++++++++++++++-----
 2 files changed, 35 insertions(+), 5 deletions(-)