Location service crashes when receiving unexpected method call

Bug #1353557 reported by Pete Woods
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dbus-cpp
Confirmed
High
Thomas Voß

Bug Description

Just run:

dbus-send --system --dest=com.ubuntu.location.Service /com/ubuntu/location/Service org.freedesktop.DBus.Properties.Get string:foo

and the system service will crash.

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

Crash happens inside the dbus-cpp worker thread with:

terminate called after throwing an instance of 'std::runtime_error'
  what(): Mismatch between expected and actual type reported by iterator:
  Expected: string
  Actual: invalid

Probably whatever is handling the Get() for the service is not checking the number of arguments when it tries to read the second string it throws an exception.

Changed in dbus-cpp:
status: New → Confirmed
Changed in dbus-cpp:
importance: Undecided → High
assignee: nobody → Thomas Voß (thomas-voss)
Changed in location-service:
assignee: nobody → Thomas Voß (thomas-voss)
affects: location-service → location-service (Ubuntu)
no longer affects: location-service (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.